[PyKDE] missing gcc include directive for PyQt4 snapshot

Patrick Stinson patrickkidd at gmail.com
Thu Feb 2 18:03:32 GMT 2006

the command line to compile pylupdate is missing an include directive
pointing to the value of the QMAKESPEC env variable. My mkspec is
linux-g++-64, but the command line has $QTDIR/mkspecs/linux-g++, which I
have not specified anywhere.

I have installed qt-4.1.0-r2 on gentoo.
If I add -I$QMAKESPEC to the command line it compiles fine, and a subsequent
make, make install works.
Am I missing a configuration directive/concept?

The error is as follows:

g++ -c -m64 -pipe -O2 -march=athlon64 -pipe -Wall -W -D_REENTRANT
-DQT_SQL_LIB -DQT_XML_LIB -I. -I/home/patrick/qtdir/include
-I/home/patrick/qtdir/include/QtCore -I/home/patrick/qtdir/include/QtGui
-I/home/patrick/qtdir/include/QtOpenGL -I/home/patrick/qtdir/include/QtSql
-I/home/patrick/qtdir/include/QtSvg -I/home/patrick/qtdir/include/QtXml
-I/home/patrick/qtdir/mkspecs/linux-g++ -I/usr/include -o translator.o
translator.cpp:22:27: qplatformdefs.h: No such file or directory
translator.cpp: In member function `bool Translator::load(const QString&,
const QString&, const QString&, const QString&)':
translator.cpp:425: error: `O_RDONLY' undeclared (first use this function)
translator.cpp:425: error: (Each undeclared identifier is reported only once
for each function it appears in.)
translator.cpp:431: error: `QT_OPEN' undeclared (first use this function)
translator.cpp:433: error: aggregate `stat st' has incomplete type and
cannot be defined
translator.cpp:434: error: `fstat' undeclared (first use this function)
make[1]: *** [translator.o] Error 1

Patrick Kidd Stinson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060202/8278fb21/attachment.html

More information about the PyQt mailing list