Important: Please read the Qt Code of Conduct -

Debugger Error (ld) Linux Mint

  • Hey guys,

    i get this error if i try to compile:

    make: Entering directory /home/hbo/build-simulation-Desktop_Qt_5_5_1_GCC_64bit-Debug' g++ -Wl,-rpath,/home/hbo/Qt/5.5/gcc_64 -Wl,-rpath,/home/hbo/Qt/5.5/gcc_64/lib -o simulation main.o mainwindow.o moc_mainwindow.o -L/home/hbo/Qt/5.5/gcc_64/lib -lQt5Widgets -L/usr/lib64 -lQt5Gui -lQt5Core -lGL -lpthread make: Leaving directory/home/hbo/build-simulation-Desktop_Qt_5_5_1_GCC_64bit-Debug'
    /usr/bin/ld: cannot find -lGL
    collect2: error: ld returned 1 exit status
    make: *** [simulation] Error 1

    Any1 got some ideas how to fix that?

  • Lifetime Qt Champion

    Hi! It is not related to the debugger. You need OpenGL development package installed.
    This question was already asked many times here.
    Install libgl1-mesa-dev package (on Ubuntu).

  • @jsulm wow, thanks dude. thought its a other problem. anyways same package for linux mint ;)

Log in to reply