"/usr/bin/ld: cannot find -lGL" impossible to compile a Qt project
-
Hi
On ubuntu i had to do
sudo apt-get install mesa-common-dev
to get the actual headers. -
wrote on 10 Jun 2018, 14:58 last edited by
The package mesa-common-dev is already install on my computer.
And I installed Qt trough the installer for linux qt-unified-linux-x64-3.0.4-online.run -
The package mesa-common-dev is already install on my computer.
And I installed Qt trough the installer for linux qt-unified-linux-x64-3.0.4-online.run@Wotan See here: https://doc.qt.io/qt-5/linux.html
You need to installsudo apt-get install build-essential libgl1-mesa-dev
-
wrote on 11 Jun 2018, 13:59 last edited by
jsulm : it is already installed ...
-
What graphic stack do you have on your machine ?
-
wrote on 12 Jun 2018, 12:16 last edited by
SGaist : What do you mean ? What is a graphic stack ?
-
Graphics card, driver, etc.
-
wrote on 13 Jun 2018, 17:01 last edited by
My graphic card is a "GeForce GTX 1060 6GB"
The driver I installed is "NVIDIA-Linux-x86_64-390.42.run"
I hope it helped ... -
Did you check the related libraries ? Where are they installed ?
-
wrote on 19 Jun 2018, 17:02 last edited by
@Wotan said in "/usr/bin/ld: cannot find -lGL" impossible to compile a Qt project:
GL
Run the following command in shell and see if the libraries installed or not in your computer
ldconfig -v | grep -i GL
The library you are looking will be libGL.so . If it is not there install it as follows,
sudo apt-get install libgl1 -y
That will probably fix this issue.
-
@Wotan See here: https://doc.qt.io/qt-5/linux.html
You need to installsudo apt-get install build-essential libgl1-mesa-dev
-
wrote on 14 Aug 2019, 13:51 last edited by
@monolith said in "/usr/bin/ld: cannot find -lGL" impossible to compile a Qt project:
Problem solved
so please mark your post as such! Thanks.