Unsolved Ubuntu 16.04 - Qt 5.6 : Cannot find -lGL
-
Hi; I installed Qt 5.6 on Ubuntu 16.04. I created a Qt.Labs Controls Application and I run this application but I am getting this code:
/usr/bin/ld: cannot find -lGL Thanks. -
@Ibrahim
Have you installed the GL development package? If not, do that. -
@kshegunov How I can?
-
@Ibrahim
Through the package manager. I don't know what exactly you're using on Ubuntu, but I suppose Synaptic should be available. Run it and install the appropriate package. -
Hi,
sudo apt-get install libgl1-mesa-dev
and you have GL package in your Ubuntu.
-
@Salapirkko
Fix this issue after install "libgl1-mesa-dev".
Thanks. -
also worked for me for Qt 5.12 on Ubuntu 18.04.