[PyQt] impossible to install PyQt 4.3.1 under rh5

Phil Thompson phil at riverbankcomputing.co.uk
Wed Nov 21 15:59:11 GMT 2007


On Wednesday 21 November 2007, vincent vauchey wrote:
> hello everybody,
>
> I installed Pyqt4.3.1, SIP-4.7 and QT 4.3.1 on redhat3 and now I want to
> install the same software under redhat5.
>
> I install, QT 4.3.1, SIP-4.7 without error, but when I want to  configure
> Pyqt4.3.1 (with -w flag) I obtain following error:
>
> *[root at migwood PyQt-x11-gpl-4.3.1]# python2.5 configure.py -w*
> *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*
> *make: *** [qtdirs.o] Error 1*
> *Error: Failed to create ./qtdirs using platform linux-g++. Make sure your*
> *compiler is installed correctly and you have a working make on your PATH.*
>
>
>
> The problem is involved by fact that qt-3.3 is installed by default with
> rh5 and so I try to change QTLIB, QTINC and QTDIR environment variables to
> the qt4 install directory, but the result is the same : (
> I see on the internet that I'm not only to have this problem, but I don't
> find any solution : (
> Please, help me !!!

Try the -q flag.

Phil


More information about the PyQt mailing list