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. Ubuntu QT5 "cannot find -lGL"
Qt 6.11 is out! See what's new in the release blog

Ubuntu QT5 "cannot find -lGL"

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

    Help!

    I have been using qt5 for a while on WIN7 and now wish to use it on my Ubuntu partition.
    I downloaded the LINUX 64 QT5 and initially got the error something like' no compiler in kit'
    I then installed gcc but now get the following compiler output;

    09:56:25: Starting: "/usr/bin/make"
    g++ -Wl,-rpath,/home/bill/Qt5.2.0/5.2.0/gcc_64 -Wl,-rpath,/home/bill/Qt5.2.0/5.2.0/gcc_64/lib -o test001 main.o mainwindow.o moc_mainwindow.o -L/home/bill/Qt5.2.0/5.2.0/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL

    WIth the errors listed as;

    Cannot find -lGL
    collect2: ld returned 1 exit status

    Many for reading & even more if you can help!

    uB

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      That is a issue being discussed already. Please the "-lgl" "tag":http://qt-project.org/search/tag/-lgl and you will find those threads. There is one particular "post":http://qt-project.org/forums/viewthread/36866/ on this.

      Vote the answer(s) that helped you to solve your issue(s)

      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