PDA

View Full Version : Qt Creator Qt5



Viper666
26th December 2012, 18:15
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

jbache
29th December 2012, 09:57
Looks like you are missing mesa opengl dependencies. Go to http://qt-project.org/wiki/Building_Qt_5_from_Git and make sure you install all the dependencies for your distribution. I would also suggest atspi2 which should really be mandatory.
Those are actually dependencies for building Qt5 but it seems you are using the precompiled version. In this case perhaps mesa development packages are enough. Adding all of the above would certainly solve your problem though.

Viper666
2nd January 2013, 13:16
opengl now work. My laptop need some libraries and restarts and it work.
But now i want to make some android app so i downloaded Android SDK/NDK and configure Qt Creator android but now i don't know how compile somethink for it i need ad android to Qt version but how need inecessitas?