How to solve Issue- "cannot find -lGL" in Qt5 installed in ubuntu
-
wrote on 19 Apr 2013, 13:52 last edited by
I run my project from one system. It run verry well. It is simple addition with GUI. (GUI consist of 3 LineEdit and one pushButton).
After compling from one system. then i try to run project on another system then it gives following error (issues):-1: error: cannot find -lGL
:-1: error: collect2: ld returned 1 exit statusHow to solve this problem?? Help me..........
thank you......... -
wrote on 19 Apr 2013, 14:21 last edited by
Install the OpenGL development libraries for your system. Probably something along the lines of mesa-devel or gl-devel.
-
wrote on 20 Apr 2013, 12:11 last edited by
For future reference, installing libglu1-mesa-dev worked for me (Ubuntu 12.04)
-
wrote on 11 Aug 2013, 11:28 last edited by
My OS is Linux Mint 15 32 bit and it is running as a guest using virtual box on windows 7 64 bit
-
wrote on 11 Aug 2013, 11:53 last edited by
OK then, in that case you need to ensure that the runtime linker, ldd, can find libraries in that directory.
-
wrote on 11 Aug 2013, 13:23 last edited by
yes exactly but how can I do that using qmake can u tell me?
-
wrote on 11 Aug 2013, 13:59 last edited by
It's probably best to fix this at the system level instead. One way would be to symlink libGL.so.1 within /usr/lib. This may go against your distro's recommended approach for switching between OpenGL implementations, I don't know though.