Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] /usr/bin/ld: cannot find -lGL

[SOLVED] /usr/bin/ld: cannot find -lGL

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 5 Posters 5.6k 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.
  • K Offline
    K Offline
    kordax
    wrote on last edited by
    #1

    Hello everyone!
    I just did the fresh install of Qt5.3.
    I'm using Linux Mint 17 and i'm trying to make my first QT Widgets project, but i'm getting an error message:
    @/usr/bin/ld: cannot find -lGL@

    Can anyone help me, which package i must install?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kordax
      wrote on last edited by
      #2

      Sorry for bad thread.
      SOLVED by "@install build-essential libgl1-mesa-dev@" command.

      1 Reply Last reply
      0
      • hskoglundH Offline
        hskoglundH Offline
        hskoglund
        wrote on last edited by
        #3

        Hi, no need to be sorry, I think everyone who installs Qt on Ubuntu, Debian, Linux Mint etc. runs into this problem, including myself.

        On Windows and on Macs, Qt usually works "out of the box" but on Linux you have to be a bit more clever :-)

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kordax
          wrote on last edited by
          #4

          Well, yes.
          Luckily i've read "Getting started" manual.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            La marmotte
            wrote on last edited by
            #5

            @kordax: no need to be sorry, indeed. Thank you for asking and for replying. I also ran into that one, too, on LinuxMint 17.3 and Qt 5.5.1, and your answer was a great help.

            1 Reply Last reply
            0
            • O Offline
              O Offline
              otrebla
              wrote on last edited by
              #6

              I'm having the same problem and the solution didn't work with me. I'm still receiving the same error message from the compiler, though I have installed all the suggested libraries.
              I'm currently using Debian 8.2 Jessie (stable)
              Thank you very much
              Alberto

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi and welcome to devnet,

                libgl1-mesa-dev should be the right package.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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