Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Creator error: /usr/lib/ld: cannot find -lGL
Chel-iz-OMONa last edited by
Qt Creator gives an error message: /usr/lib/ld: cannot find -lGL
19:06:04: The steps for the 'Test' project are performed. 19:06:04: The settings was not changed, stage qmake is skipped. 19:06:04: Starting: «/usr/bin/make» -j2 g++ -Wl,-rpath,/home/chelizomona/Programs/QtCreator/5.15.0/gcc_64/lib -o Test main.o mainwindow.o moc_mainwindow.o /home/chelizomona/Programs/QtCreator/5.15.0/gcc_64/lib/libQt5Widgets.so /home/chelizomona/Programs/QtCreator/5.15.0/gcc_64/lib/libQt5Gui.so /home/chelizomona/Programs/QtCreator/5.15.0/gcc_64/lib/libQt5Core.so -lGL -lpthread /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status make: *** [Makefile:247: Test] Error 1 19:06:04: The process «/usr/bin/make» ended with code 2. Build/Deploy Error "Test" project (Kit: Desktop Qt 5.15.0 GCC 64bit) During the execution of the «Build» 19:06:04: Time passed: 00:01.
The package libgl1-mesa-dev is installed and the file libGL.so.1 in /usr/lib/, but Qt Creator doesn't see him((
P.S.: Sorry for my English, i don't know him very well
Hi and welcome to the forums
What linux is it ?
On newer ubuntu sometimes we need to use ln create a soft link
the destan asnwer
sudo ln -s /usr/lib/libEGL1.so /usr/lib/libGL.so
I hope its readable you :)
Hi and welcome to devnet,
You are still missing libGl.so
Depending on your version of Debian, you should also install libglvnd-dev.