Hi all, I am trying to wrap the Qt module of OSSIM, an image-processing tool. I was just beginning to dive into the wrapping process and created a .sip file to wrap a class, ossimPlanetQtAboutDialog. But I am getting the following error on executing the sip command:
vipul@vipul-laptop:~/ossim-svn/src/pyossim/sip$ sip -I /usr/include/qt4 -c . pyossim.sip sip: /usr/include/qt4/QtGui/QWidget:1: syntax error Here is the file ossimPlanetAboutDialog.h that I am trying to wrap: ------------------------------------------------------------------------------------------------ #ifndef ossimPlanetAboutDialog_HEADER #define ossimPlanetAboutDialog_HEADER #include <QtGui/QDialog> #include <ossimPlanetQt/ui_ossimPlanetQtAboutDialog.h> #include <ossimPlanetQt/ossimPlanetQtExport.h> class OSSIMPLANETQT_DLL ossimPlanetQtAboutDialog : public QDialog, public Ui::ossimPlanetQtAboutDialog { public: ossimPlanetQtAboutDialog(QWidget* parent); }; #endif ------------------------------------------------------------------------------------------------ Here is the file pyossim.sip that I am trying to compile: ------------------------------------------------------------------------------------------------ %Module pyossim 0 %Import QtGui/QWidget %Import QtGui/QDialog class ossimPlanetQtAboutDialog : QDialog { %TypeHeaderCode #include <ossimPlanetQt/ui_ossimPlanetQtAboutDialog.h> #include <ossimPlanetQt/ossimPlanetQtAboutDialog.h> %End public: ossimPlanetQtAboutDialog (QWidget *parent /TransferThis/ = 0); }; ------------------------------------------------------------------------------------------------ Kindly help. Thanks and regards, Vipul Raheja
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt