[PyQt] 回复: 回复: PyQt5.QtGui can't be imported

levinie levinie at qq.com
Mon Jul 15 11:09:47 BST 2013


Really cool. some error output, how can i fix them?


levi at c15:~/Downloads/PyQt-gpl-5.0$  /opt/python/bin/python configure.py --qmake /home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake --sip /opt/python/bin/sip --verbose
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o qtdetail.mk qtdetail.pro
make -f qtdetail.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o qtdetail.o qtdetail.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o qtdetail qtdetail.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5Core -lpthread 
./qtdetail
This is the GPL version of PyQt 5.0 (licensed under the GNU General Public
License) for Python 3.3.2 on linux.


Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.


Do you accept the terms of the license? yes
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtGui.mk cfgtest_QtGui.pro
make -f cfgtest_QtGui.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtGui.o cfgtest_QtGui.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtGui cfgtest_QtGui.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtGui] Error 1
Checking to see if the QtHelp module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtHelp.mk cfgtest_QtHelp.pro
make -f cfgtest_QtHelp.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_HELP_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtHelp -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWidgets -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtHelp.o cfgtest_QtHelp.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -Wl,-rpath-link,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtHelp cfgtest_QtHelp.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5Help -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtHelp] Error 1
Checking to see if the QtMultimedia module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtMultimedia.mk cfgtest_QtMultimedia.pro
make -f cfgtest_QtMultimedia.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtMultimedia -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtNetwork -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtMultimedia.o cfgtest_QtMultimedia.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtMultimedia cfgtest_QtMultimedia.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5Multimedia -lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtMultimedia] Error 1
Checking to see if the QtNetwork module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtNetwork.mk cfgtest_QtNetwork.pro
make -f cfgtest_QtNetwork.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtNetwork -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtNetwork.o cfgtest_QtNetwork.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtNetwork cfgtest_QtNetwork.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5Network -lQt5Core -lpthread 
Checking to see if the QtOpenGL module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtOpenGL.mk cfgtest_QtOpenGL.pro
make -f cfgtest_QtOpenGL.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtOpenGL -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWidgets -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtOpenGL.o cfgtest_QtOpenGL.cpp
In file included from ../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtOpenGL/qgl.h:47:0,
                 from cfgtest_QtOpenGL.cpp:1:
../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui/qopengl.h:110:21: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make: *** [cfgtest_QtOpenGL.o] Error 1
Checking to see if the QtPrintSupport module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtPrintSupport.mk cfgtest_QtPrintSupport.pro
make -f cfgtest_QtPrintSupport.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtPrintSupport -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWidgets -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtPrintSupport.o cfgtest_QtPrintSupport.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtPrintSupport cfgtest_QtPrintSupport.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5PrintSupport -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtPrintSupport] Error 1
Checking to see if the QtSql module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtSql.mk cfgtest_QtSql.pro
make -f cfgtest_QtSql.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWidgets -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtSql -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtSql.o cfgtest_QtSql.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtSql cfgtest_QtSql.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5Widgets -lQt5Sql -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtSql] Error 1
Checking to see if the QtSvg module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtSvg.mk cfgtest_QtSvg.pro
make -f cfgtest_QtSvg.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtSvg -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWidgets -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtSvg.o cfgtest_QtSvg.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtSvg cfgtest_QtSvg.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5Svg -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtSvg] Error 1
Checking to see if the QtTest module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtTest.mk cfgtest_QtTest.pro
make -f cfgtest_QtTest.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_TESTLIB_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR=\"/home/levi/Downloads/PyQt-gpl-5.0\" -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWidgets -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtTest -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtTest.o cfgtest_QtTest.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtTest cfgtest_QtTest.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5Widgets -lQt5Test -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtTest] Error 1
Checking to see if the QtWebKit module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtWebKit.mk cfgtest_QtWebKit.pro
make -f cfgtest_QtWebKit.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWebKit -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtNetwork -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtWebKit.o cfgtest_QtWebKit.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -Wl,-rpath-link,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtWebKit cfgtest_QtWebKit.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5WebKit -lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtWebKit] Error 1
Checking to see if the QtWebKitWidgets module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtWebKitWidgets.mk cfgtest_QtWebKitWidgets.pro
make -f cfgtest_QtWebKitWidgets.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_WEBKIT_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_SENSORS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWebKitWidgets -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtQuick -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtOpenGL -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtPrintSupport -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWebKit -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtQml -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWidgets -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtNetwork -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtSensors -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtWebKitWidgets.o cfgtest_QtWebKitWidgets.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -Wl,-rpath-link,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtWebKitWidgets cfgtest_QtWebKitWidgets.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5WebKitWidgets -lQt5Quick -lQt5OpenGL -lQt5PrintSupport -lQt5WebKit -lQt5Qml -lQt5Widgets -lQt5Network -lQt5Sensors -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtWebKitWidgets] Error 1
Checking to see if the QtWidgets module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtWidgets.mk cfgtest_QtWidgets.pro
make -f cfgtest_QtWidgets.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWidgets -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtWidgets.o cfgtest_QtWidgets.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtWidgets cfgtest_QtWidgets.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtWidgets] Error 1
Checking to see if the QtXmlPatterns module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtXmlPatterns.mk cfgtest_QtXmlPatterns.pro
make -f cfgtest_QtXmlPatterns.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtXmlPatterns -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtNetwork -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtXmlPatterns.o cfgtest_QtXmlPatterns.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtXmlPatterns cfgtest_QtXmlPatterns.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5XmlPatterns -lQt5Network -lQt5Core -lpthread 
Checking to see if the QtDesigner module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtDesigner.mk cfgtest_QtDesigner.pro
make -f cfgtest_QtDesigner.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_DESIGNER_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtDesigner -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtWidgets -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtXml -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtGui -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtDesigner.o cfgtest_QtDesigner.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtDesigner cfgtest_QtDesigner.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5Designer -lQt5Widgets -lQt5Xml -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [cfgtest_QtDesigner] Error 1
Checking to see if the QAxContainer module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QAxContainer.mk cfgtest_QAxContainer.pro
Project ERROR: Unknown module(s) in QT: axcontainer
Checking to see if the QtDBus module should be built...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake -o cfgtest_QtDBus.mk cfgtest_QtDBus.pro
make -f cfgtest_QtDBus.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_CORE_LIB -I../../apps/Qt5.1.0/5.1.0/gcc_64/mkspecs/linux-g++ -I. -I../../apps/Qt5.1.0/5.1.0/gcc_64/include -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtDBus -I../../apps/Qt5.1.0/5.1.0/gcc_64/include/QtCore -I. -o cfgtest_QtDBus.o cfgtest_QtDBus.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64 -Wl,-rpath,/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/lib -o cfgtest_QtDBus cfgtest_QtDBus.o   -L/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/lib -lQt5DBus -lQt5Core -lpthread 
Checking to see if the dbus support module should be built...
pkg-config --cflags-only-I --libs dbus-1
DBus v1 does not seem to be installed.
Qt v5.1.0 (Open Source) is being used.
The qmake executable is /home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake.
Qt is built as a shared library.
SIP 4.14.7 is being used.
The sip executable is /opt/python/bin/sip.
These PyQt5 modules will be built: QtCore, QtNetwork, QtXmlPatterns, QtDBus.
The PyQt5 Python package will be installed in
/opt/python/lib/python3.3/site-packages.
PyQt5 is being built with generated docstrings.
PyQt5 is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in
/home/levi/apps/Qt5.1.0//5.1.0/gcc_64/plugins/designer.
The PyQt5 .sip files will be installed in /opt/python/share/sip/PyQt5.
pyuic5, pyrcc5 and pylupdate5 will be installed in /opt/python/bin.
The interpreter used by pyuic5 is /opt/python/bin/python.
Embedding sip flags...
Generating the .pro file for the QPy support library for QtCore...
Generating the Makefile for the QPy support library for QtCore...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake w_qpycore.pro
Generating the C++ source for the QtCore module...
/opt/python/bin/sip -w -x VendorID -t WS_X11 -t Qt_5_0_0 -o -P -a QtCore.api -c /home/levi/Downloads/PyQt-gpl-5.0/QtCore -I sip -I /home/levi/Downloads/PyQt-gpl-5.0/sip /home/levi/Downloads/PyQt-gpl-5.0/sip/QtCore/QtCoremod.sip
Generating the .pro file for the QtCore module...
Generating the Makefile for the QtCore module...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake QtCore.pro
Generating the C++ source for the QtNetwork module...
/opt/python/bin/sip -w -x VendorID -t WS_X11 -t Qt_5_0_0 -o -P -a QtNetwork.api -c /home/levi/Downloads/PyQt-gpl-5.0/QtNetwork -I sip -I /home/levi/Downloads/PyQt-gpl-5.0/sip /home/levi/Downloads/PyQt-gpl-5.0/sip/QtNetwork/QtNetworkmod.sip
Generating the .pro file for the QtNetwork module...
Generating the Makefile for the QtNetwork module...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake QtNetwork.pro
Generating the C++ source for the QtXmlPatterns module...
/opt/python/bin/sip -w -x VendorID -t WS_X11 -t Qt_5_0_0 -o -P -a QtXmlPatterns.api -c /home/levi/Downloads/PyQt-gpl-5.0/QtXmlPatterns -I sip -I /home/levi/Downloads/PyQt-gpl-5.0/sip /home/levi/Downloads/PyQt-gpl-5.0/sip/QtXmlPatterns/QtXmlPatternsmod.sip
Generating the .pro file for the QtXmlPatterns module...
Generating the Makefile for the QtXmlPatterns module...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake QtXmlPatterns.pro
Generating the .pro file for the QPy support library for QtDBus...
Generating the Makefile for the QPy support library for QtDBus...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake w_qpydbus.pro
Generating the C++ source for the QtDBus module...
/opt/python/bin/sip -w -x VendorID -t WS_X11 -t Qt_5_0_0 -o -P -a QtDBus.api -c /home/levi/Downloads/PyQt-gpl-5.0/QtDBus -I sip -I /home/levi/Downloads/PyQt-gpl-5.0/sip /home/levi/Downloads/PyQt-gpl-5.0/sip/QtDBus/QtDBusmod.sip
Generating the .pro file for the QtDBus module...
Generating the Makefile for the QtDBus module...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake QtDBus.pro
Generating the .pro file for the QPy support libraries...
Generating the Makefile for the QPy support libraries...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake qpy.pro
Generating the C++ source for the Qt module...
/opt/python/bin/sip -w -x VendorID -t WS_X11 -t Qt_5_0_0 -o -P -c /home/levi/Downloads/PyQt-gpl-5.0/Qt -I sip -I /home/levi/Downloads/PyQt-gpl-5.0/sip sip/Qt/Qtmod.sip
Generating the .pro file for the Qt module...
Generating the Makefile for the Qt module...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake Qt.pro
Generating the .pro file for pylupdate5...
Generating the Makefile for pylupdate5...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake pylupdate5.pro
Generating the .pro file for pyrcc5...
Generating the Makefile for pyrcc5...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake pyrcc5.pro
Generating the pyuic5 wrapper...
Generating the top-level .pro file...
Generating the top-level Makefile...
/home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake PyQt5.pro
Making the pyuic5 wrapper executable...



------------------ 原始邮件 ------------------
发件人: "(PyQt)Phil Thompson"<phil at riverbankcomputing.com>;
发送时间: 2013年7月15日(星期一) 晚上6:03
收件人: "levinie"<levinie at qq.com>; 
抄送: "PyQt"<pyqt at riverbankcomputing.com>; 
主题: Re: 回复: [PyQt] PyQt5.QtGui  can't be imported



On Mon, 15 Jul 2013 17:59:01 +0800, "levinie" <levinie at qq.com> wrote:
> Thanks for your help.
> I pass this to configure.py:
> /opt/python/bin/python3 configure.py --qmake
> /home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake --sip /opt/python/bin/sip
> 
> 
> Here is the output:
> 
> 
> DBus v1 does not seem to be installed.
> Qt v5.1.0 (Open Source) is being used.
> The qmake executable is /home/levi/apps/Qt5.1.0/5.1.0/gcc_64/bin/qmake.
> Qt is built as a shared library.
> SIP 4.14.7 is being used.
> The sip executable is /opt/python/bin/sip.
> These PyQt5 modules will be built: QtCore, QtNetwork, QtXmlPatterns,
> QtDBus.

You need to run it again with the --verbose flag to see why the additional
modules are not being built - then fix your installation.

Phil
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130715/69c0594f/attachment-0001.html>


More information about the PyQt mailing list