Can't find -lGL
-
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.)
-
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.)
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
-
Thanks for that. Problem is solved.