Hello, Is it possible to generate bindings for C libraries with shiboken?
I understand that C is a subset of C++, but I can't generate anything from C header file. For example, I want to create binding for avbin_get_version() function available from https://github.com/AVbin/AVbin/blob/master/include/avbin.h I do: $ shiboken lib/AVbin/include/avbin.h typesystem.xml Where typesystem.xml is the following: <?xml version="1.0"?> <!-- the name of the module as it will be imported from Python--> <typesystem package='AVbin'> <function signature='int avbin_get_version()' rename='version'/> </typesystem> First of all it always complains about "No C++ classes found!" Then I see the message: Global function 'int avbin_get_version()' is specified in typesystem, but not defined. This could potentially lead to compilation errors. If I modify the <function> with signature='avbin_get_version()' I get another error: skipping function '::avbin_get_version', unmatched return type 'int' So, obviously, shiboken is able to parse avbin.h and find avbin_get_version() function with 'int' return type, but why it complains that the function is not defined when the typesystem is fixed? -- anatoly t.
_______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
