[PyKDE] sip fails

Sebastian Sauer mail at dipe.org
Tue Aug 15 09:00:44 BST 2006


Hi dear devels, users, * :)

Compiling the latest PyQt-snapshot fails for me cause the include-path is 
somewhat wrong;

kde4 at earth:~/PyQt-x11-gpl-4-snapshot-20060814$ python configure.py -u 
CXXFLAGS+=-fno-exceptions CXX=g++ CC=gcc LINK=g++ MOC=moc
[...]
This is the GPL version of PyQt 4-snapshot-20060814 (licensed under the GNU
General Public License) for Python 2.3.5 on linux2.
[...]
SIP snapshot-20060805 is being used.
The Qt header files are in /opt/qt4-copy/include.
The QtCore_debug Qt library is in /opt/qt4-copy/lib.
The Qt binaries are in /opt/qt4-copy/bin.
The Qt mkspecs directory is in /opt/qt4-copy.
These PyQt modules will be built: QtCore.
The PyQt modules will be installed in /usr/lib/python2.3/site-packages/PyQt4.
The PyQt .sip files will be installed in /usr/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin.
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Creating Qt consolidated module...
Creating top level Makefile...
Creating elementtree Makefile...
Creating pyuic4 wrapper...
Creating pyuic4 Makefile...
pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.
Creating pyqtconfig.py...

kde4 at earth:~/PyQt-x11-gpl-4-snapshot-20060814$ make
make[1]: Entering directory 
`/home/kde4/PyQt-x11-gpl-4-snapshot-20060814/QtCore'
g++ -c -fno-exceptions -DQT_CORE_LIB -I. -I/usr/include/python2.3 -I/opt/qt4-copy/mkspecs/default -o 
sipQtCorecmodule.o sipQtCorecmodule.cpp
In file included from sipQtCorecmodule.cpp:26:
sipAPIQtCore.h:32:21: error: QMetaType: Datei oder Verzeichnis nicht gefunden
[...]

That's because QMetaType is located in /opt/qt-copy/include/QtCore/* rather 
then in  /opt/qt-copy/include/* and imho that's the reason why the generated 
files should "#include <QtCore/QMetaType>", etc. rather then "#include 
<QMetaType>" only. Whyever it works fine for kde4 and breaks PyQt :-/

So, any hint or any idea how to fix that? py_incdir in pyqtconfig.py seems to 
be ignored if changed manualy and also the docs don't mention how to change 
the include-paths / the build-settings (or at least I didn't found that 
info :-/ )

Thanks in advance and also lot of thanks for the great PyQt-framework :)

-- 
Sebastian Sauer aka dipesh[sebsauer]
http://www.dipe.org/public_key.asc
Fingerprint: 8F1E 219B 16E6 4EC7 29CC F408 E193 65E2 9134 2221
Coder in http://www.koffice.org && http://www.kmldonkey.org




More information about the PyQt mailing list