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. Can't find -lGL
QtWS25 Last Chance

Can't find -lGL

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 553 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.
  • L Offline
    L Offline
    Leway Previs
    wrote on last edited by
    #1

    If this has already been asked, just direct me to the post with the answer.

    I'm using Qt 5.5 32-bit on Fedora 19 (also 32-bit). When I try to build my program, this is what I get:

    /usr/bin/ld: cannot find -lGL
    collect2: error: ld returned 1 exit status
    

    I looked in Qt's lib directory, and the file in question doesn't seem to be there. Moreover, as far as I know, I'm not using OpenGL. How do I sort this out? (Additionally, since -lpthread is also given, I fear it will do the same for it, so solutions for both will be helpful here.)

    aha_1980A 1 Reply Last reply
    0
    • L Leway Previs

      If this has already been asked, just direct me to the post with the answer.

      I'm using Qt 5.5 32-bit on Fedora 19 (also 32-bit). When I try to build my program, this is what I get:

      /usr/bin/ld: cannot find -lGL
      collect2: error: ld returned 1 exit status
      

      I looked in Qt's lib directory, and the file in question doesn't seem to be there. Moreover, as far as I know, I'm not using OpenGL. How do I sort this out? (Additionally, since -lpthread is also given, I fear it will do the same for it, so solutions for both will be helpful here.)

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi @Leway-Previs, welcome!

      that is indeed a often asked question. please see https://stackoverflow.com/questions/18406369/qt-cant-find-lgl-error for reference.

      regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      2
      • L Offline
        L Offline
        Leway Previs
        wrote on last edited by
        #3

        Thanks for that. Problem is solved.

        1 Reply Last reply
        1

        • Login

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