[PyQt] SIP PyQT compilation issue

emmanuel_mayssat at lynceantech.com emmanuel_mayssat at lynceantech.com
Wed Mar 30 18:49:49 BST 2011


> 
> You should...
> 
> %Import QtCore/QtCoremod
> 

Well, I actually started with that but...

$ cat ca_framework.sip
%Module CaFramework 1

%Include QtCore/QtCoremod.sip
%Include QtGui/QtGuimod.sip

%Include QCaToolTip.sip

$ python configure.py 
/usr/bin/sip -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_6_2 -x Py_v3 -g -c
/home/cls1fs/epics/epics2//workspace/epicsqt/epicsqt-1.1.1-src//ca_framework//sip//sipcode/
-I /usr/share/sip/PyQt4 -b
/home/cls1fs/epics/epics2//workspace/epicsqt/epicsqt-1.1.1-src//ca_framework//sip//sipcode/ca_framework.sbf
ca_framework.sip

sip: No %Module has been specified for module defined in ca_framework.sip

This error is why I removed the QtCore line in the first place...

Q1: what am I doing wrong?




Now if I change the Module directive position in the sip file, it compiles, but ...
$ cat ca_framework.sip

%Include QtCore/QtCoremod.sip
%Include QtGui/QtGuimod.sip

%Module CaFramework 1

%Include QCaToolTip.sip

[... steps ommitted .. ]

$ make 
g++ -c -pipe -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2  -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DNDEBUG -DQT_NO_DEBUG
-DQT_CORE_LIB -DQT_GUI_LIB -I. -Ica_framework_includes
-I/home/cls1fs/epics/epics2//workspace/epicsqt/epicsqt-1.1.1-src//ca_framework//widgets/include
-I/home/cls1fs/epics/epics2//workspace/epicsqt/epicsqt-1.1.1-src//ca_framework//data/include
-I/home/cls1fs/epics/epics2//workspace/epicsqt/epicsqt-1.1.1-src//ca_framework//api/include
-I/home/cls1fs/epics/epics2//workspace/epicsqt/epicsqt-1.1.1-src//ca_framework//plugins/include
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/python2.6
-I/usr/lib64/qt4/mkspecs/default -I/usr/include -I/usr/X11R6/include -o sipQtGuicmodule.o
sipQtGuicmodule.cpp
In file included from sipQtGuicmodule.cpp:34:
/usr/share/sip/PyQt4/QtCore/qobject.sip:644:25: error: qpycore_api.h: No such file or
directory
sipAPIQtGui.h:9335:1: warning: "sipType_QWidget" redefined
sipAPIQtGui.h:8765:1: warning: this is the location of the previous definition
sipAPIQtGui.h:9336:1: warning: "sipClass_QWidget" redefined
sipAPIQtGui.h:8766:1: warning: this is the location of the previous definition
[...]

... but I get a similar error.

> You other problems are related to this.

I am obviously still doing something wrong here.
Q2: what is it?

Q3: Is there an archive to this mailing list?

-- 
Emmanuel


More information about the PyQt mailing list