Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved]Qt 5.2.0 and -lGL issue.
QtWS25 Last Chance

[Solved]Qt 5.2.0 and -lGL issue.

Scheduled Pinned Locked Moved General and Desktop
lglgl libcannot find-lglicu
4 Posts 3 Posters 4.8k 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.
  • D Offline
    D Offline
    dheerendra
    Qt Champions 2022
    wrote on 7 Jan 2014, 07:33 last edited by koahnig 1 May 2016, 11:49
    #1

    I installed Qt 5.2.0 on ubuntu 12.04 LTS. When I try to compile my first program, I see the following error

    bq. mainwindow.o moc_mainwindow.o -L/opt/Qt5.2.0/5.2.0/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL
    collect2: error: ld returned 1 exit status

    I'm sure it is telling -GL module not found. Which is this module ? OpenGL ?. I continue to troubleshoot this issue. If somebody had fixed this, please do let me know. It will save my time :)

    Dheerendra
    @Community Service
    Certified Qt Specialist
    http://www.pthinks.com

    1 Reply Last reply
    3
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 7 Jan 2014, 07:55 last edited by
      #2

      You have missing dependencies, most probably Mesa or proprietary OpenGL drivers. Check out the "build guide":http://qt-project.org/wiki/Building_Qt_5_from_Git for Ubuntu, there are detailed instructions about what needs to be installed.

      (Z(:^

      1 Reply Last reply
      1
      • D Offline
        D Offline
        dheerendra
        Qt Champions 2022
        wrote on 7 Jan 2014, 08:16 last edited by
        #3

        Thank you. This solved my problem.

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply
        1
        • K Offline
          K Offline
          koahnig
          wrote on 21 Jan 2014, 14:09 last edited by
          #4

          Just in case someone runs into the same problem and wonders what to install.

          I have started out with a fresh Ubuntu 13.10 install on VirtualBox and ran into the same problem after I had installed the pre-build of Qt 5.2.0 with Qt creator.

          In my case the libxcb was apparently missing. However, I have installed ICU first, but this did not solve the problem. Therefore, I have started these commands in a terminal:
          @
          sudo apt-get install libicu-dev
          sudo apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev
          @

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          3

          • Login

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