Important: Please read the Qt Code of Conduct -

Ubuntu 14 QT Creator 3.1.1 compilation error “ cannot find -lGL” [SOLVED]

  • I'm trying to build a default (Hello World) project in QT Creator 3.1.1 and this is the error I'm getting:

    bq. /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status make: *** [App1] Error 1
    14:35:44: The process "/usr/bin/make" exited with code 2. Error while
    building/deploying project App1 (kit: Desktop Qt 5.3.0 GCC 64bit) When
    executing step 'Make'

    What am I missing ? Thanks much.

  • Hi, you need to install the OpenGL utility library:

    sudo apt-get install libglu1-mesa-dev

  • Fantastic, thank you so much, Mr. Herder. I'll try that, and I'll let you know if I don't succeed.

Log in to reply