Unsolved shiboken failing with analog clock QtWidget example
-
I'm using Shiboken on the Analog Clock QtWidget example seen here:
http://doc.qt.io/qt-5/qtwidgets-widgets-analogclock-example.html
with a handwritten typesystem xml file:
---- SNIP ----
<?xml version="1.0"?>
<typesystem package="AnalogClock">
<load-typesystem name="typesystem_core.xml" generate="no" />
<load-typesystem name="typesystem_gui.xml" generate="no"/>
<load-typesystem name="typesystem_templates.xml" generate="no"/>
</typesystem>
---- SNIP ----I'm using Shiboken like this:
shiboken2.exe analogclock.h typesystem_analogclock.xml
and I'm getting this error:
qt.shiboken: Can't find typesystem_core.xml, typesystem paths:
Cannot parse file: typesystem_analogclock.xmlshiboken: Error running ApiExtractor.
Command line: analogclock.h typesystem_analogclock.xmlAny ideas how I can fix this?
-
Hi
Can i ask what you are trying ?
Making a python version of the clock plugin?
or just try to use the clock in own python app? -
@mrjj Hi there, I'm trying to make a Python version of the clock widget to use in another app like Houdini or Maya.
-
@easythrees Is your question really related to Qt?
Would it make more sence to ask Shiboken project? -
@jsulm You're probably right. This is all very new to me, I'm still learning. Thank you.
-
@easythrees said in shiboken failing with analog clock QtWidget example:
I'm using Shiboken on the Analog Clock QtWidget example seen here:
Shiboken is used to generate language bindings. This means it produces a Python library that wraps a C++ library, so that you can write Python code that calls the C++ library.
Note: A library file is a *.dll, *.so, or *.dylib file.
The AnalogClock class is not inside a library, so Shiboken won't work on it. You cannot use Shiboken to convert a C++ app into a Python app.
@jsulm said in shiboken failing with analog clock QtWidget example:
Would it make more sence to ask Shiboken project?
Shiboken is part of the official Qt for Python: http://blog.qt.io/blog/2018/05/31/write-python-bindings/
-
@JKSH said in shiboken failing with analog clock QtWidget example:
Shiboken is part of the official Qt for Python
Didn't know that. Thanks for the info!