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?
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?