Building problem on Linux



  • Hello. I've just installed Qt 5.5.0 on my Ubuntu and I have a problem with building any Qt Widget project. Even standard project generated by Qt Creator doesn't work.

    I get the following problem:
    "cannot find -lGL"

    The compiler and debugger are set properly.
    Normal C++ applications work properly, just Qt don't.



  • I don't know how you installed, but make sure you have all the dependencies installed. According to this wiki I think these are the packages for this error:
    sudo apt-get install mesa-common-dev
    sudo apt-get install libglu1-mesa-dev -y
    Paul



  • Thank you very much.
    I forgot to install OpenGL libraries.
    Now it works, thanks.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.