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

Cannot find -lGL [solved]

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 3 Posters 2.6k 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.
  • S Offline
    S Offline
    siliconplains
    wrote on last edited by
    #1

    I created a very simple test application to verify my Qt Creator env. When I go to build and run the test app I receive the following link error -> cannot find -lGL. I realize this is some library on my link line but I am not sure of what it is. Can I turn this off? Can I fix my environment to include the lib?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Which OS are you using and which Qt version? Hard to tell without some context:)

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

        Hi and welcome to devnet,

        the only thing we can tell is: you are missing the OpenGL libraries.

        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
        • S Offline
          S Offline
          siliconplains
          wrote on last edited by
          #4

          Yeah, I installed the open GL libraries and specified by the 5.0.2 instructions. My apologies for not listing my OS. I am working on Ubuntu Linux 13.04.

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

            In that case, did installing the libs solve your problem ?

            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
            • S Offline
              S Offline
              siliconplains
              wrote on last edited by
              #6

              I believe I have the OpenGL libs installed. They are still not being picked up by my build.

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

                Then the basic applies: clean & rebuild your project.

                IIRC, you need mesa to be installed to have libGL

                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
                • S Offline
                  S Offline
                  siliconplains
                  wrote on last edited by
                  #8

                  Thank you for the information. I just found a web page that showed how to install all the OpenGL dev packages on Linux. I followed that and now I build. Thank you both for your input!

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

                    You're welcome !

                    Don't forget to update the thread's title by prepending [solved] so other forum users may know that a solution has been found :)

                    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