Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Error while executing make in Qt 5.8.0 ubuntu gcc 64-bit



  • I got this error while trying to build my application in Qt 5.8.0
    15:33:38: Running steps for project Tutor...
    15:33:38: Configuration unchanged, skipping qmake step.
    15:33:38: Starting: "/usr/bin/make"
    g++ -Wl,-rpath,/home/joshajiniran/Qt5.8.0/5.8/gcc_64/lib -o Tutor main.o imageviewer.o moc_imageviewer.o -L/home/joshajiniran/Qt5.8.0/5.8/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL
    Makefile:236: recipe for target 'Tutor' failed
    collect2: error: ld returned 1 exit status
    make: *** [Tutor] Error 1
    15:33:39: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project Tutor (kit: Desktop Qt 5.8.0 GCC 64bit)
    When executing step "Make"
    15:33:39: Elapsed time: 00:01.

    Please, help with idea to fix up the mess.![alt text](/home/joshajiniran/Pictures/Screenshot from 2017-04-01 16-00-42.png)


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Please use the search function from the forum. This question has been asked and answered many times already. You are missing the OpenGL development libraries from your distribution.


Log in to reply