PDA

View Full Version : problem with qt creator



hmiersch
February 4th, 2017, 06:41 PM
hi.
after installing 16.04 (i know, several months late) i installed qt creator. the problem is that when i create a new project and then try to build it, i get an error: :-1: error: cannot find -lGL. when i right-click on it and select show output, i get this:



17:36:32: Running steps for project test...

17:36:32: Configuration unchanged, skipping qmake step.
17:36:32: Starting: "/usr/bin/make"
g++ -Wl,-rpath,/home/harry/Qt/5.7/gcc_64/lib -o test main.o mainwindow.o moc_mainwindow.o -L/home/harry/Qt/5.7/gcc_64/lib -lQt5Widgets -L/usr/lib64 -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status

Makefile:220: recipe for target 'test' failed
make: *** [test] Error 1
17:36:34: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project test (kit: Desktop Qt 5.7.1 GCC 64bit)
When executing step "Make"
17:36:34: Elapsed time: 00:03.


the thing is that i haven't made any changes to the project, and still i get this error. what is wrong here, and what can i do about it?

dragonfly41
February 4th, 2017, 06:51 PM
You should find plenty of links if you search ..
Here is just one I found ...


http://stackoverflow.com/questions/30321980/usr-bin-ld-cannot-find-lgl


run
ldconfig -p | grep libGL.so


This is what I see (mind you I have older setup, Ubuntu 14.04 32 bit with Qt 5.7 Creator)




libGL.so.1 (libc6) => /usr/lib/nvidia-340/libGL.so.1
libGL.so (libc6) => /usr/lib/nvidia-340/libGL.so
libGL.so (libc6) => /usr/lib/i386-linux-gnu/libGL.so


Also browse the Qt forum.

cariboo
February 4th, 2017, 09:18 PM
Moved

aurquiel
February 6th, 2017, 03:51 PM
Install mesa-dev and other mesa packet i can't remember