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] Qt5 under Ubuntu cannot find -lGL
QtWS25 Last Chance

[solved] Qt5 under Ubuntu cannot find -lGL

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 33.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.
  • U Offline
    U Offline
    utcenter
    wrote on last edited by
    #1

    Just installed a copy of Ubuntu 12.04 and a "latest successful" build of the offline package of 5.0.1 and trying to run a simple test project I got this error message:

    bq. /usr/bin/ld: cannot find -lGL

    The "solution" I found on the Ubuntu forums was in Ubuntu/Linux specific terminology of which I, a Windows user, couldn't make anything useful, something about linkage being broken or the symbolic link being bad and having to remove the broken .so and associate the right files, without any ideas which are the broken ones, which are the right ones and so forth. There are plenty of libGL varying in sizes and versions.

    So explaining it in a more understandable way will be appreciated.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Could be that you just miss Mesa package. Take a look at XCB dependencies listed "here":http://qt-project.org/wiki/Building_Qt_5_from_Git and install what's missing.

      I've seen this error also mentioned in a different case, but I don't remember the solution there.

      (Z(:^

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lilian.moraru
        wrote on last edited by
        #3

        [quote author="sierdzio" date="1358412105"]Could be that you just miss Mesa package. Take a look at XCB dependencies listed "here":http://qt-project.org/wiki/Building_Qt_5_from_Git and install what's missing.

        I've seen this error also mentioned in a different case, but I don't remember the solution there.[/quote]

        I mentioned the same problem on the digia blog when the Qt 5 was released.
        Solved the problem by installing the “libglu1-mesa-dev” package.
        @sudo apt-get install libglu1-mesa-dev -y@

        1 Reply Last reply
        1
        • U Offline
          U Offline
          utcenter
          wrote on last edited by
          #4

          I think I had this package installed, there were several mesa packages pre-installed, but will take a look later anyway.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nmabhinandan
            wrote on last edited by
            #5

            Thanks bro! You saved my day.

            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