Hi,
Can anyone guess how to resolve next problem:
When I build Qt 5.2.0 Widget application:
I get:
22:37:59: Running steps for project apptest2…
22:37:59: Configuration unchanged, skipping qmake step.
22:37:59: Starting: “/usr/bin/make”
/home/paulcoder/Qt/5.2.0/gcc/bin/uic ../apptest2/mainwindow.ui -o ui_mainwindow.h
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Qt/5.2.0/gcc/mkspecs/linux-g++ -I../apptest2 -I../Qt/5.2.0/gcc/include -I../Qt/5.2.0/gcc/include/QtWidgets -I../Qt/5.2.0/gcc/include/QtGui -I../Qt/5.2.0/gcc/include/QtCore -I. -I. -I. -o main.o ../apptest2/main.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Qt/5.2.0/gcc/mkspecs/linux-g++ -I../apptest2 -I../Qt/5.2.0/gcc/include -I../Qt/5.2.0/gcc/include/QtWidgets -I../Qt/5.2.0/gcc/include/QtGui -I../Qt/5.2.0/gcc/include/QtCore -I. -I. -I. -o mainwindow.o ../apptest2/mainwindow.cpp
/home/paulcoder/Qt/5.2.0/gcc/bin/moc -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Qt/5.2.0/gcc/mkspecs/linux-g++ -I../apptest2 -I../Qt/5.2.0/gcc/include -I../Qt/5.2.0/gcc/include/QtWidgets -I../Qt/5.2.0/gcc/include/QtGui -I../Qt/5.2.0/gcc/include/QtCore -I. -I. -I. ../apptest2/mainwindow.h -o moc_mainwindow.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../Qt/5.2.0/gcc/mkspecs/linux-g++ -I../apptest2 -I../Qt/5.2.0/gcc/include -I../Qt/5.2.0/gcc/include/QtWidgets -I../Qt/5.2.0/gcc/include/QtGui -I../Qt/5.2.0/gcc/include/QtCore -I. -I. -I. -o moc_mainwindow.o moc_mainwindow.cpp
g++ -Wl,-rpath,/home/paulcoder/Qt/5.2.0/gcc -Wl,-rpath,/home/paulcoder/Qt/5.2.0/gcc/lib -o apptest2 main.o mainwindow.o moc_mainwindow.o -L/home/paulcoder/Qt/5.2.0/gcc/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [apptest2] Error 1
22:38:01: The process “/usr/bin/make” exited with code 2.
Error while building/deploying project apptest2 (kit: Desktop Qt 5.2.0 GCC 32bit)
When executing step ‘Make’
22:38:01: Elapsed time: 00:02.
Using next Project Settings:
qmake /home/paulcoder/apptest2/apptest2.pro -r -spec linux-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug
Please point me out what is -lGL and how can I fix the linking and maybe to change/modify the linker / compiler flags.
Thank you,
http://swhweng.co.nr
↧