I am using Qt5 in my project, but after I reinstall my Ubuntu 15.04 today, I cannot compile my code in Qt Creator. I got two error messages as
cannot find -lGL
collect2: error: ld returned 1 exit status
Anyone has any idea? I used to solve it by install a library:
sudo apt-get install libglu1-mesa-dev
But it doesn't work for me now. This is what I got from the terminal: The following information may help to resolve the situation:
The following packages have unmet dependencies:
libglu1-mesa-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
libgl-dev
E: Unable to correct problems, you have held broken packages.