On Tuesday 15 August 2006 9:00 am, Sebastian Sauer wrote: > Hi dear devels, users, * :) > > Compiling the latest PyQt-snapshot fails for me cause the include-path is > somewhat wrong; > > kde4@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@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 ", etc. rather then > "#include " only. Not according to the Qt docs. > 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 :) The g++ command line above is missing lots of arguments - particularly the -I flags. I'd look to see if your mkspecs/default points to something sensible. Also, obviously any Qt snapshot isn't supported. Phil _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde