PDA

View Full Version : Qt5 cannot find -lGL



Viper666
28th December 2012, 11:59
Hi i just download Qt5 and when i try compile GUI app i get this output:

11:45:18: Running steps for project untitled3...
11:45:18: Starting: "/home/igor/Qt5.0.0/5.0.0/gcc_64/bin/qmake" /home/igor/untitled3/untitled3.pro -r -spec linux-g++-64
11:45:18: The process "/home/igor/Qt5.0.0/5.0.0/gcc_64/bin/qmake" exited normally.
11:45:18: Starting: "/usr/bin/make" -w
make: Entering directory `/home/igor/untitled3-build-Desktop_Qt_5_0_0_GCC_64bit_SDK-Release'
/home/igor/Qt5.0.0/5.0.0/gcc_64/bin/uic ../untitled3/mainwindow.ui -o ui_mainwindow.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../untitled3 -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 ../untitled3/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../untitled3 -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 mainwindow.o ../untitled3/mainwindow.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../untitled3 -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. ../untitled3/mainwindow.h -o moc_mainwindow.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../untitled3 -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_mainwindow.o moc_mainwindow.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 untitled3 main.o mainwindow.o moc_mainwindow.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/untitled3-build-Desktop_Qt_5_0_0_GCC_64bit_SDK-Release'
collect2: error: ld returned 1 exit status
make: *** [untitled3] Error 1
11:45:22: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled3 (kit: Desktop Qt 5.0.0 GCC 64bit (SDK))
When executing step 'Make'
and my .pro

#-------------------------------------------------
#
# Project created by QtCreator 2012-12-28T11:45:08
#
#-------------------------------------------------

QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = untitled3
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp

HEADERS += mainwindow.h

FORMS += mainwindow.ui

System: Linux Ubuntu 12.10
i hace in system libGL.so.1 and libGL.so.1.2.0

Added after 11 minutes:

ok solved :D

metRo_
20th February 2013, 23:46
do you have a solution for that?