PDA

View Full Version : Qt5



Viper666
26th December 2012, 19:17
Hi,
I just downloaded Qt5 i have setup the compiler and so but when i try compile GUI app it don't work

19:05:50: Running steps for project untitled6...
19:05:50: Configuration unchanged, skipping qmake step.
19:05:50: Starting: "/usr/bin/make" -w
make: Entering directory `/home/igor/untitled6-build-Desktop_Qt_5_0_0_GCC_64bit_SDK-Release'
/home/igor/Qt5.0.0/5.0.0/gcc_64/bin/qmake -spec linux-g++-64 -o Makefile ../untitled6/untitled6.pro
make: Leaving directory `/home/igor/untitled6-build-Desktop_Qt_5_0_0_GCC_64bit_SDK-Release'
make: Entering directory `/home/igor/untitled6-build-Desktop_Qt_5_0_0_GCC_64bit_SDK-Release'
/home/igor/Qt5.0.0/5.0.0/gcc_64/bin/uic ../untitled6/widget.ui -o ui_widget.h
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Qt5.0.0/5.0.0/gcc_64/mkspecs/linux-g++-64 -I../untitled6 -I../Qt5.0.0/5.0.0/gcc_64/include -I../Qt5.0.0/5.0.0/gcc_64/include/QtWidgets -I../Qt5.0.0/5.0.0/gcc_64/include/QtGui -I../Qt5.0.0/5.0.0/gcc_64/include/QtCore -I. -I. -I. -o main.o ../untitled6/main.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Qt5.0.0/5.0.0/gcc_64/mkspecs/linux-g++-64 -I../untitled6 -I../Qt5.0.0/5.0.0/gcc_64/include -I../Qt5.0.0/5.0.0/gcc_64/include/QtWidgets -I../Qt5.0.0/5.0.0/gcc_64/include/QtGui -I../Qt5.0.0/5.0.0/gcc_64/include/QtCore -I. -I. -I. -o widget.o ../untitled6/widget.cpp
/home/igor/Qt5.0.0/5.0.0/gcc_64/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Qt5.0.0/5.0.0/gcc_64/mkspecs/linux-g++-64 -I../untitled6 -I../Qt5.0.0/5.0.0/gcc_64/include -I../Qt5.0.0/5.0.0/gcc_64/include/QtWidgets -I../Qt5.0.0/5.0.0/gcc_64/include/QtGui -I../Qt5.0.0/5.0.0/gcc_64/include/QtCore -I. -I. -I. ../untitled6/widget.h -o moc_widget.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Qt5.0.0/5.0.0/gcc_64/mkspecs/linux-g++-64 -I../untitled6 -I../Qt5.0.0/5.0.0/gcc_64/include -I../Qt5.0.0/5.0.0/gcc_64/include/QtWidgets -I../Qt5.0.0/5.0.0/gcc_64/include/QtGui -I../Qt5.0.0/5.0.0/gcc_64/include/QtCore -I. -I. -I. -o moc_widget.o moc_widget.cpp
g++ -m64 -Wl,-O1 -Wl,-rpath,/home/igor/Qt5.0.0/5.0.0/gcc_64 -Wl,-rpath,/home/igor/Qt5.0.0/5.0.0/gcc_64/lib -o untitled6 main.o widget.o moc_widget.o -L/usr/X11R6/lib64 -L/home/igor/Qt5.0.0/5.0.0/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/ld: cannot find -lGL
make: Leaving directory `/home/igor/untitled6-build-Desktop_Qt_5_0_0_GCC_64bit_SDK-Release'
collect2: error: ld returned 1 exit status
make: *** [untitled6] Error 1
19:05:52: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled6 (kit: Desktop Qt 5.0.0 GCC 64bit (SDK))
When executing step 'Make'

My system Linux 64-bit
Thanks

anda_skoa
26th December 2012, 21:53
Sounds similar to this question: http://www.qtcentre.org/threads/52540-Error-usr-bin-ld-cannot-find-lGL

Viper666
26th December 2012, 22:17
thanks i try it