Error while building/deploying project 2dpainting (kit: Desktop Qt 5.0.2 GCC 64bit
I have installed Qt 5.0.2 on Ubuntu 13.04. While building i am getting this error
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [2dpainting] Error 1
13:07:06: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project 2dpainting (kit: Desktop Qt 5.0.2 GCC 64bit)
When executing step 'Make'
even examples are also showing this error.
Manoj kumar Panwar
my Pro file is
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = MSTheoreticalCalculation
TEMPLATE = app
SOURCES += main.cpp
HEADERS += MSTheoreticalCalculationGUI.h
FORMS += MSTheoreticalCalculationGUI.ui
Make sure you have all "dependencies":http://qt-project.org/wiki/Qt5_dependencies.
Seems like a linker problem due to missing library. Check the solutions proposed at "this Ubuntu thread":http://ubuntuforums.org/showthread.php?t=1480282.
Thanks Sierdzio, Thanks Leon.anavi
Solution given by Sierdzio works for me :)
I am also getting this warning
@(MSTheoreticalCalculation:6596): IBUS-WARNING **: The owner of /home/manoj/.config/ibus/bus is not root!@
Will i ignore this and keep working or run Qt creator in "sudo" mode .
Manoj Kumar Panwar
Better remain in user space, don't run QtC as root.
Bittoo: Ibus is some input method framework. So if you do use a normal US/european style keyboard you can most likely just ignore the issue.
Earlier i have installed Qt in sudo mode "sudo ./qt...". Later I reinstall it without sudo and it solved this issue.
Thank you, Tobias Hunger for you help :).