[Solved] build error QT 5.02 gui application
-
I have libGL.so.1 in /usr/lib/x86_64-linux-gnu/mesa. It is symbolic link to libGL.so.1.2 in the same folder. There is also ld.so.conf in the same folder. But it seams that qt don't see them.
I try to- add INCLUDEPATH += /usr/lib/x86_64-linux-gnu/mesa
- add LIBS += -L/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
to .pro file of my app. One item at a time.
That does not fix the problem. I have the same error.
How can I exclude directive -lGL from qmake command or add the path to /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1?
-
Hi,
The correct way to add a library path is:
@LIBS += -L/usr/lib/x86_64-linux-gnu/mesa/@By the way, what system are you on ? That seems an unusual folder for mesa to installed
-
How did you instal mesa ?
-
Hi SGaist,
I install it during Boot to Qt intsaltion.
http://dist.qt.digia.com/developer/download/BootToQt-installation-guide.html
1.Installing 32-bit support libraries
sudo apt-get install g++-multilib ia32-libsThere were no dependent libraries for isa32-libs. So first install libraries from which isa32-lib is dependent. During this installation I install mesa I think.
-
It has been almost a year an your suggestion about installing:
@mesa-common-dev
libgl1-mesa-dev
libglu1-mesa-dev@
works!
After installation my issue of: "error: cannot find -lGL" resolved
Thanks esers!