I am trying to create python binding for a simple C++ example shown here: http://lynxline.com/superhybrids-part-2-now-qt-pyside/
When I run generatorrunner to create wrapper classes, I get a number of warnings, which don't make sense. In particular, I get numerous warnings such as these: " type 'QAbstractPageSetupDialog' is specified in typesystem, but not defined. This could potentially lead to compilation errors. type 'QSortFilterProxyModel' is specified in typesystem, but not defined. This could potentially lead to compilation errors. type 'QSpacerItem' is specified in typesystem, but not defined. This could potentially lead to compilation errors. type 'QStackedLayout' is specified in typesystem, but not defined. This could potentially lead to compilation errors. ------" I am sure the include-paths and typesystem-paths are correctly specified. This is strange because Shiboken is able to find other classes such as QString, QObject, QMainWindow etc, but not others. Here are the typesystem.xml and global.h files I am using: ---------- typesystem.xml ---------------- <?xml version="1.0"?> <typesystem package="PyHybrid"> <load-typesystem name="typesystem_core.xml" generate="no"/> <load-typesystem name="typesystem_gui_common.xml" generate="no"/> <object-type name="MainWindow"/> </typesystem> -------- global.h --------------- #undef QT_NO_STL #undef QT_NO_STL_WCHAR #ifndef NULL #define NULL 0 #endif #include <MainWindow.h> Here is the generatorrunner command set QT_INC1="../../../../../../Qt/4.7.1" set QT_INC="../../../../../../Qt/4.7.1/include" set QTGUI_INC="../../../../../../Qt/4.7.1/include/QtGui" set QTCORE_INC="../../../../../../Qt/4.7.1/include/QtCore" set QTTYPESYSTEM="../3rdparty/include/pyside/PySide;../3rdparty/include/pyside/PySide/QtCore;../3rdparty/include/pyside/PySide/QtGui" generatorrunner --generatorSet=shiboken --debug-level=Full --no-suppress-warnings ../data/global.h --include-paths="%QTGUI_INC%;%QTCORE_INC%;%QT_INC%;%QT_INC1%;../hybrid" --typesystem-paths="../HybridApp/data;%QTTYPESYSTEM%" --output_directory=. ../data/typesystem.xml Am I missing something? Any comments/ideas will be much appreciated. Thanks.
_______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
