Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
building default QT Widgets Application on a fresh setup of Qt 5.6.1. GCC64bit on OpenSuse 42.1 Leap results in following error messages:
:-1: error: skipping incompatible /usr/lib/libGL.so when searching for -lGL :-1: error: cannot find -lGL
locations of libGL.so are:
1. /usr/X11R6/lib/libGL.so 2. /usr/X11R6/lib64/libGL.so 3. /usr/lib/libGL.so 4. /usr/lib64/libGL.so
I assume the 3rd one is found first but the 4th should be found.
How to fix this in Qt-creator 4.0.1. ?
The Makefile contains:
LFLAGS = -Wl,-rpath,/opt/Qt5/5.6/gcc_64/lib LIBS = $(SUBLIBS) -L/opt/Qt5/5.6/gcc_64/lib -lQt5Widgets -L/usr/lib64 -lQt5Gui -lQt5Core -lGL -lpthread
One thing you can try is to use the linux-g++-64 mkspec when you configure your project.
Hope it helps
Thank You SGaist,
this sounds interesting, but I do not know how to use "linux-g++-64 mkspec". Can you explain a little more, please, thank you.
Since you are using Qt Creator, go to the
Build & Runpanel in the options, then
Kit, select the kit you are using. There you'll have a line name Qt mkspec. You can set there the mkspec.
works now, thanks a lot :)