Hi, Thanks for your reply Phil.
I had earlier installed SIP and PyQt4 through apt-get in Ubuntu, but was still getting the same problem since there was no QtGuimod.sip file present on my system. I removed them and tried installing SIP and PyQt4 again from their sources. I am getting the following error now while building PyQt4 and cannot find any answers over the web : http://pastebin.com/apSq180u Kindly help. Thanks and regards, Vipul Raheja On Sat, Aug 6, 2011 at 9:19 PM, Phil Thompson <p...@riverbankcomputing.com>wrote: > On Sat, 6 Aug 2011 20:45:19 +0530, Vipul Raheja <vipul.ii...@gmail.com> > wrote: > > 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 > > These are Qt .h files not .sip files. > > Do something like... > > %Import QtGui/QtGuimod.sip > > Phil >
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt