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. Cannot find -lGL

Cannot find -lGL

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtcreatorgcclgl
4 Posts 4 Posters 1.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.
  • M Offline
    M Offline
    mandruk1331
    wrote on 29 Dec 2015, 03:46 last edited by
    #1

    I have an error, which says "cannot find -lGL". I'm tryung to install QT on Ubuntu 14.04 everything is ok, but when I want to Build a GUI application I get this error, I surfed the internet for a day and could not find anything. Can someone help me?

    Mandruk1331

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Ratzz
      wrote on 29 Dec 2015, 04:19 last edited by Ratzz
      #2

      Hi and welcome.
      You need to install dev-packages

      sudo apt-get install libgl1-mesa-dev
      

      Sometimes this helps

      sudo apt-get install libglu1-mesa-dev -y

      --Alles ist gut.

      1 Reply Last reply
      1
      • C Offline
        C Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on 29 Dec 2015, 08:33 last edited by
        #3

        Usually it's already there. Just needs a symlink:

        locate libGL.so //locate the lib, in my case it's /usr/lib/x86-64-linux-gnu/mesa/libGL.so.1
        sudo ln -s /usr/lib/x86-64-linux-gnu/mesa/libGL.so.1 /usr/lib/libGL.so
        
        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 29 Dec 2015, 23:19 last edited by
          #4

          Hi and welcome to devnet,

          Installing the libgl1-mesa-dev package is the correct solution. libGL's location can change depending on whether you are using a 32 or 64 bit version of Ubuntu.

          Note that this question has already been asked many times on this forum, you should search without the minus before lGL.

          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

          1/4

          29 Dec 2015, 03:46

          • Login

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