Qt 5.0 Build Error -> /usr/bin/ld -lGL not foud

  • Hello Guys,

    I have installed Qt 5.0 SDK on Fedora 17 (32 bit). I am trying to make small GUI's.

    The problem is when I hit "Ctrl-R" to build and have a look at the GUI application, I get a build error like this :

    make: Entering directory /home/Nisarg/Documents/Qt Projects/untitled-build-Desktop_Qt_5_0_1_GCC_32bit-Debug' g++ -Wl,-rpath,/opt/Qt/5.0.1/gcc -Wl,-rpath,/opt/Qt/5.0.1/gcc/lib -o untitled main.o mainwindow.o moc_mainwindow.o -L/opt/Qt/5.0.1/gcc/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread /usr/bin/ld: cannot find -lGL make: Leaving directory/home/Nisarg/Documents/Qt Projects/untitled-build-Desktop_Qt_5_0_1_GCC_32bit-Debug'
    collect2: error: ld returned 1 exit status
    make: *** [untitled] Error 1
    04:07:17: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project untitled (kit: Desktop Qt 5.0.1 GCC 32bit)
    When executing step 'Make'

    Any suggestions for the above warning ?

  • Hi,

    I haven't tried Qt on Linux. But did you call configure command after installing the Qt. I hope this will solve your problem.

    check this, http://qt-project.org/doc/qt-4.8/installation.html


Log in to reply