Hi,<div><br></div><div>Thanks for your reply Phil. </div><div><br></div><div>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 : <a href="http://pastebin.com/apSq180u">http://pastebin.com/apSq180u</a> </div>

<div><div><br></div><div>Kindly help.</div><div><br></div><div>Thanks and regards,</div><div>Vipul Raheja</div><div><br></div><br><div class="gmail_quote">On Sat, Aug 6, 2011 at 9:19 PM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On Sat, 6 Aug 2011 20:45:19 +0530, Vipul Raheja <<a href="mailto:vipul.iiith@gmail.com">vipul.iiith@gmail.com</a>><br>


wrote:<br>
<div><div></div><div class="h5">> Hi all,<br>
><br>
> I am trying to wrap the Qt module of OSSIM, an image-processing tool. I<br>
was<br>
> just beginning to dive into the wrapping process and created a .sip file<br>
to<br>
> wrap a class, ossimPlanetQtAboutDialog. But I am getting the following<br>
> error<br>
> on executing the sip command:<br>
><br>
> vipul@vipul-laptop:~/ossim-svn/src/pyossim/sip$ sip -I /usr/include/qt4<br>
-c<br>
> .<br>
> pyossim.sip<br>
> sip: /usr/include/qt4/QtGui/QWidget:1: syntax error<br>
><br>
> Here is the file ossimPlanetAboutDialog.h that I am trying to wrap:<br>
><br>
------------------------------------------------------------------------------------------------<br>
> #ifndef ossimPlanetAboutDialog_HEADER<br>
> #define ossimPlanetAboutDialog_HEADER<br>
> #include <QtGui/QDialog><br>
> #include <ossimPlanetQt/ui_ossimPlanetQtAboutDialog.h><br>
> #include <ossimPlanetQt/ossimPlanetQtExport.h><br>
><br>
> class OSSIMPLANETQT_DLL ossimPlanetQtAboutDialog :  public QDialog,<br>
public<br>
> Ui::ossimPlanetQtAboutDialog<br>
> {<br>
> public:<br>
>     ossimPlanetQtAboutDialog(QWidget* parent);<br>
> };<br>
><br>
> #endif<br>
><br>
------------------------------------------------------------------------------------------------<br>
><br>
><br>
> Here is the file pyossim.sip that I am trying to compile:<br>
><br>
------------------------------------------------------------------------------------------------<br>
> %Module pyossim 0<br>
><br>
> %Import QtGui/QWidget<br>
> %Import QtGui/QDialog<br>
<br>
</div></div>These are Qt .h files not .sip files.<br>
<br>
Do something like...<br>
<br>
%Import QtGui/QtGuimod.sip<br>
<font color="#888888"><br>
Phil<br>
</font></blockquote></div><br></div>