[PyQt] pyqt installation error

Ben George bentech4you at gmail.com
Tue Sep 21 11:15:56 BST 2010


when i tried to compile configure.py,i got this error

me using redhat 5.5



[root at server PyQt-x11-gpl-4.7.7]# python configure.py --verbose
Determining the layout of your Qt installation...
/usr/lib/qt-3.3/bin/qmake -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables  -DQT_NO_DEBUG -DQT_SHARED
-DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I.
-I/usr/lib/qt-3.3/include -o qtdirs.o qtdirs.cpp
qtdirs.cpp:1:17: error: QFile: No such file or directory
qtdirs.cpp:2:24: error: QLibraryInfo: No such file or directory
qtdirs.cpp:3:23: error: QTextStream: No such file or directory
qtdirs.cpp: In function ‘int main(int, char**)’:
qtdirs.cpp:7: error: ‘QFile’ was not declared in this scope
qtdirs.cpp:7: error: expected `;' before ‘outf’
qtdirs.cpp:9: error: ‘outf’ was not declared in this scope
qtdirs.cpp:9: error: ‘QIODevice’ has not been declared
qtdirs.cpp:9: error: ‘QIODevice’ has not been declared
qtdirs.cpp:9: error: ‘QIODevice’ has not been declared
qtdirs.cpp:12: error: ‘QTextStream’ was not declared in this scope
qtdirs.cpp:12: error: expected `;' before ‘out’
qtdirs.cpp:14: error: ‘out’ was not declared in this scope
qtdirs.cpp:14: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:14: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:15: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:15: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:16: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:16: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:17: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:17: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:18: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:18: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:19: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:19: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:21: error: ‘QT_VERSION’ was not declared in this scope
qtdirs.cpp:22: error: ‘QT_EDITION’ was not declared in this scope
qtdirs.cpp:24: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:90: error: ‘qreal’ was not declared in this scope
make: *** [qtdirs.o] Error 1
Error: Failed to determine the layout of your Qt installation. Try again
using
the --verbose flag to see more detail about the problem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100921/dbc73538/attachment.html>


More information about the PyQt mailing list