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. Qt error: cannot find -lGL
QtWS25 Last Chance

Qt error: cannot find -lGL

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.7k 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
    mhetac
    wrote on last edited by
    #1

    Hi, I'm trying to make a QWidget for a university project, and I started from the most basic stuff following qt's official tutorials. However I' m encountering a compile problem: I keep getting this error:

    /usr/bin/ld: cannot find -lGL
    Makefile:251: recipe for target 'Test1' failed
    collect2: error: ld returned 1 exit status
    make: *** [Test1] Error 1
    00:05:55: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project Test1 (kit: Desktop Qt 5.10.0 GCC 64bit)
    The kit Desktop Qt 5.10.0 GCC 64bit has configuration issues which might be the root cause for this problem.
    When executing step "Make"

    Any suggestion?
    OS: Debian Stretch 9.5
    Kernek: 4.9.0-6-amd64
    Qt Creator 4.5.0
    Based on Qt 5.10.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
    Built on Dec 4 2017 04:11:21

    0_1535494097131_Screenshot from 2018-08-29 00-07-45.png

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      @mhetac said in Qt error: cannot find -lGL:

      : cannot find -lGL

      Hi and welcome to the forums
      can you try
      sudo apt-get install mesa-common-dev
      sudo apt-get install libglu1-mesa-dev -y
      https://wiki.qt.io/Install_Qt_5_on_Ubuntu

      maybe it has slightly differnt names on debian.
      it seems to miss the gl libs/headers

      1 Reply Last reply
      5
      • M Offline
        M Offline
        mhetac
        wrote on last edited by
        #3

        That actually worked, thanks a lot

        1 Reply Last reply
        2

        • Login

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