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. Ubuntu 16.04 - Qt 5.6 : Cannot find -lGL
Forum Updated to NodeBB v4.3 + New Features

Ubuntu 16.04 - Qt 5.6 : Cannot find -lGL

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 5 Posters 3.4k Views 1 Watching
  • 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.
  • I Offline
    I Offline
    Ibrahim
    wrote on last edited by
    #1

    Hi; I installed Qt 5.6 on Ubuntu 16.04. I created a Qt.Labs Controls Application and I run this application but I am getting this code:
    /usr/bin/ld: cannot find -lGL Thanks.

    kshegunovK 1 Reply Last reply
    0
    • I Ibrahim

      Hi; I installed Qt 5.6 on Ubuntu 16.04. I created a Qt.Labs Controls Application and I run this application but I am getting this code:
      /usr/bin/ld: cannot find -lGL Thanks.

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @Ibrahim
      Have you installed the GL development package? If not, do that.

      Read and abide by the Qt Code of Conduct

      I 1 Reply Last reply
      0
      • kshegunovK kshegunov

        @Ibrahim
        Have you installed the GL development package? If not, do that.

        I Offline
        I Offline
        Ibrahim
        wrote on last edited by
        #3

        @kshegunov How I can?

        kshegunovK 1 Reply Last reply
        0
        • I Ibrahim

          @kshegunov How I can?

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          @Ibrahim
          Through the package manager. I don't know what exactly you're using on Ubuntu, but I suppose Synaptic should be available. Run it and install the appropriate package.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          0
          • SalapirkkoS Offline
            SalapirkkoS Offline
            Salapirkko
            wrote on last edited by
            #5

            Hi,

            sudo apt-get install libgl1-mesa-dev

            and you have GL package in your Ubuntu.

            H 1 Reply Last reply
            2
            • SalapirkkoS Salapirkko

              Hi,

              sudo apt-get install libgl1-mesa-dev

              and you have GL package in your Ubuntu.

              H Offline
              H Offline
              Hugo180
              wrote on last edited by
              #6

              @Salapirkko
              Fix this issue after install "libgl1-mesa-dev".
              Thanks.

              1 Reply Last reply
              0
              • I Offline
                I Offline
                iason_z
                wrote on last edited by
                #7

                also worked for me for Qt 5.12 on Ubuntu 18.04.

                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