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. Error: cannot find -lGL

Error: cannot find -lGL

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 953 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.
  • R Offline
    R Offline
    rogerknit
    wrote on last edited by
    #1

    Hello all,
    I am trying to build a project in Qt Creator 2.7.
    And while the build it is giving this error:
    :-1: error: cannot find -lGL

    i dont know to what library it corresponds.
    Please help.
    Thanks
    Best regards
    Avinash Singh

    1 Reply Last reply
    0
    • ZlatomirZ Offline
      ZlatomirZ Offline
      Zlatomir
      wrote on last edited by
      #2

      You need to install libgl (OpenGL API development files), check the documentation on how you do that in your system, for example in Ubuntu (most likely Debian and other derivatives have the exact package name) you do it like this:
      @sudo apt-get install libgl1-mesa-dev@

      https://forum.qt.io/category/41/romanian

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rogerknit
        wrote on last edited by
        #3

        okey. Thank you so much. it worked. i tried to get the names for the correct library for opengl but wasnt able to find that.
        Environment is Ubuntu.
        This worked.

        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