Solved "/usr/bin/ld: cannot find -lGL" impossible to compile a Qt project
-
@Wotan See here: https://doc.qt.io/qt-5/linux.html
You need to installsudo apt-get install build-essential libgl1-mesa-dev
-
jsulm : it is already installed ...
-
What graphic stack do you have on your machine ?
-
SGaist : What do you mean ? What is a graphic stack ?
-
Graphics card, driver, etc.
-
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 ?
-
@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.
-
@jsulm Thanks your so much. Problem solved
-
@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.