Cannot find -lGL [solved]
-
I created a very simple test application to verify my Qt Creator env. When I go to build and run the test app I receive the following link error -> cannot find -lGL. I realize this is some library on my link line but I am not sure of what it is. Can I turn this off? Can I fix my environment to include the lib?
-
Which OS are you using and which Qt version? Hard to tell without some context:)
-
Hi and welcome to devnet,
the only thing we can tell is: you are missing the OpenGL libraries.
-
Yeah, I installed the open GL libraries and specified by the 5.0.2 instructions. My apologies for not listing my OS. I am working on Ubuntu Linux 13.04.
-
In that case, did installing the libs solve your problem ?
-
I believe I have the OpenGL libs installed. They are still not being picked up by my build.
-
Then the basic applies: clean & rebuild your project.
IIRC, you need mesa to be installed to have libGL
-
Thank you for the information. I just found a web page that showed how to install all the OpenGL dev packages on Linux. I followed that and now I build. Thank you both for your input!
-
You're welcome !
Don't forget to update the thread's title by prepending [solved] so other forum users may know that a solution has been found :)