<div>Hi all,</div><div><br></div><div>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:</div>

<div><br></div><div><div>vipul@vipul-laptop:~/ossim-svn/src/pyossim/sip$ sip -I /usr/include/qt4 -c . pyossim.sip </div><div>sip: /usr/include/qt4/QtGui/QWidget:1: syntax error</div></div><div><br></div><div>Here is the file ossimPlanetAboutDialog.h that I am trying to wrap:</div>

<div>------------------------------------------------------------------------------------------------</div><div><div>#ifndef ossimPlanetAboutDialog_HEADER</div><div>#define ossimPlanetAboutDialog_HEADER</div><div>#include <QtGui/QDialog></div>

<div>#include <ossimPlanetQt/ui_ossimPlanetQtAboutDialog.h></div><div>#include <ossimPlanetQt/ossimPlanetQtExport.h></div><div><br></div><div>class OSSIMPLANETQT_DLL ossimPlanetQtAboutDialog :  public QDialog, public Ui::ossimPlanetQtAboutDialog</div>

<div>{</div><div>public:</div><div>    ossimPlanetQtAboutDialog(QWidget* parent);</div><div>};</div><div> </div><div>#endif</div></div><div>------------------------------------------------------------------------------------------------</div>

<div><br></div><div><br></div><div>Here is the file pyossim.sip that I am trying to compile:</div><div>------------------------------------------------------------------------------------------------</div><div>%Module pyossim 0</div>

<div> </div><div>%Import QtGui/QWidget</div><div>%Import QtGui/QDialog</div><div> </div><div>class ossimPlanetQtAboutDialog : QDialog</div><div>{</div><div> </div><div>%TypeHeaderCode</div><div>#include <ossimPlanetQt/ui_ossimPlanetQtAboutDialog.h></div>

<div>#include <ossimPlanetQt/ossimPlanetQtAboutDialog.h></div><div>%End</div><div><br></div><div>public:</div><div>        ossimPlanetQtAboutDialog (QWidget *parent /TransferThis/ = 0);</div><div>};</div><div>------------------------------------------------------------------------------------------------</div>

<div><br></div><div>Kindly help.</div><div><br></div><div>Thanks and regards,</div><div>Vipul Raheja</div>