[PyKDE] Basic sip problem

Jahn Otto Næsgaard Andersen jotto at jotto.no
Sun Jan 18 20:59:01 GMT 2004


>Leave the PyQt .sip files where you installed them and pass use sip's
-I flag 
>to point to them.

Ok, that makes more sense :-) Actually I *should* have figured out that
myself based on the documentation :-O

After including -t Qt_3_2_0 -t WS_X11 on the command line, a lot of
files were generated in the sipcode directory. The sip part seems to be
successful.

The sip command I finally used was thus

/usr/local/bin/sip -s ".cpp" -c sipcode -I /usr/local/share/sip/qt -t
Qt_3_2_0 -t WS_X11 examinerwidget.sip


I then tried to build the generated .cpp files and create a Makefile
based on the Makefile located in [PyQt-x11-gpl-3.10 source
directory]/qt. The Makefile tries to build sipHoloLibcmodule.cpp with:

g++ -c -I.. -I. -I/usr/local/include/python2.3
-I/home/jotto/work/hololib/src -I/usr/lib/qt-x11-free-3.2.3/include
-I/usr/local/include/vtk -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -pipe -fPIC
-O2 -Wall -W -D_REENTRANT  sipHoloLibcmodule.cpp

This ends in the following compiler error:

In file included from /usr/local/share/sip/qt/qvariant.sip:201,
                 from sipHoloLibExaminerWidget.h:55,
                 from sipHoloLibcmodule.cpp:9:
/usr/lib/qt-x11-free-3.2.3/include/qvariant.h:104: parse error before
`int'
/usr/lib/qt-x11-free-3.2.3/include/qvariant.h:121: missing ';' before
right 
   brace
/usr/lib/qt-x11-free-3.2.3/include/qvariant.h:123: parse error before
`)' token
[...]


By the way, I am using gcc 3.2.


Any more hints?


Regards,
Jahn Otto





More information about the PyQt mailing list