Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Linking error: cannot find -lGL

Linking error: cannot find -lGL

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    waspinator
    wrote on last edited by
    #1

    Hi,

    I installed Qt 5.3.1 using the linux 64 bit online installer on Ubuntu 14.04 to my home directory. I tried to create a new project using File->New File or Project, selecting Qt Quick Application, and clicking next a few times. Then, when I try to build it using the green play button I get the following error:

    @g++ -Wl,-rpath,/home/waspinator/Qt/5.3/gcc_64 -Wl,-rpath,/home/waspinator/Qt/5.3/gcc_64/lib -o qt_test main.o qrc_qml.o -L/home/waspinator/Qt/5.3/gcc_64/lib -lQt5Quick -lQt5Qml -lQt5Widgets -lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL
    collect2: error: ld returned 1 exit status
    make: *** [qt_test] Error 1
    12:20:12: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project qt_test (kit: Desktop Qt 5.3 GCC 64bit)
    When executing step 'Make'@

    I tried to find libGL but only have libGLSL

    @$ locate libGL
    /home/waspinator/Qt/Tools/QtCreator/lib/qtcreator/libGLSL.so
    /home/waspinator/Qt/Tools/QtCreator/lib/qtcreator/libGLSL.so.1
    /home/waspinator/Qt/Tools/QtCreator/lib/qtcreator/libGLSL.so.1.0
    /home/waspinator/Qt/Tools/QtCreator/lib/qtcreator/libGLSL.so.1.0.0
    /home/waspinator/Qt/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libGLSLEditor.so
    /usr/lib/x86_64-linux-gnu/libGLEW.so.1.10
    /usr/lib/x86_64-linux-gnu/libGLEW.so.1.10.0
    /usr/lib/x86_64-linux-gnu/libGLEWmx.so.1.10
    /usr/lib/x86_64-linux-gnu/libGLEWmx.so.1.10.0
    /usr/lib/x86_64-linux-gnu/libGLU.so.1
    /usr/lib/x86_64-linux-gnu/libGLU.so.1.3.1
    /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
    /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0
    /usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so.2
    /usr/lib/x86_64-linux-gnu/mesa-egl/libGLESv2.so.2.0.0@

    Did I miss a step during installation?

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi, and welcome to the Qt Dev Net!

      This is a common question: http://qt-project.org/forums/viewthread/36399

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • W Offline
        W Offline
        waspinator
        wrote on last edited by
        #3

        oh. thanks.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved