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

Phil Thompson phil at riverbankcomputing.com
Mon Jul 15 11:23:50 BST 2013


On Mon, 15 Jul 2013 18:09:47 +0800, "levinie" <levinie at qq.com> wrote:
> 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

Looks like you haven't got OpenGL installed.

Phil


More information about the PyQt mailing list