2011-08-02 16 views
10

Ahora estoy intentando ejecutar PyQt. Todavía estoy consiguiendo el error siguiente cuando lo haga lo siguiente:Error al instalar PyQt

[email protected]:/home/abhowmik/app/imgSeek-0.8.6# cd Py* 
[email protected]:/home/abhowmik/app/imgSeek-0.8.6/PyQt-x11-gpl-4.8.4# python configure.py --verbose 
Determining the layout of your Qt installation... 
/usr/share/qt3//bin/qmake -o qtdirs.mk qtdirs.pro 
make -f qtdirs.mk 
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -o qtdirs.o qtdirs.cpp 
qtdirs.cpp:1:17: fatal error: QFile: No such file or directory 
compilation terminated. 
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. 
[email protected]:/home/abhowmik/app/imgSeek-0.8.6/PyQt-x11-gpl-4.8.4# ^C 
[email protected]:/home/abhowmik/app/imgSeek-0.8.6/PyQt-x11-gpl-4.8.4# 

¿Puede alguien ayudarme cómo solucionar el problema?

+1

No creo que importar sea el problema que tiene aquí ... –

+0

si está tratando de instalar Qt, publique detalles sobre it, OS, python version ... y por qué estás haciendo una, b o c manera. – BrainStorm

+2

Casi todos los sistemas vienen con un paquete py-qt. Probablemente quieras instalar eso. – Carpetsmoker

Respuesta

10

El problema es que configure.py intenta usar qmake de qt3. Prueba esto:

python configure.py --qmake /usr/bin/qmake-qt4 

(Es posible que tenga qmake-Qt4 a otro lugar que no sea/usr/bin a fin de comprobar que la primera)

1

Se trata de una respuesta ligeramente modificada de @Flyte que trabajó para mí en CentOS 6,5

esto funcionó para mí espero que le ayuda también. también asegúrese de que tiene la versión correcta de qt instalada. usualmente necesita usar la versión qt> 4.7