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
Forum Updated to NodeBB v4.3 + New Features

Error: cannot find -lGL

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 1.0k 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.
  • R Offline
    R Offline
    rogerknit
    wrote on 22 Feb 2014, 07:02 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
    • Z Offline
      Z Offline
      Zlatomir
      wrote on 22 Feb 2014, 07:14 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 22 Feb 2014, 07:47 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

        1/3

        22 Feb 2014, 07:02

        • Login

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