Unsolved Can`t compile any projects
-
After installiation don`t compile any projects.
Here is the compile output:g++ -Wl,-rpath,/home/taras/Qt/5.11.0/gcc_64/lib -o application main.o mainwindow.o qrc_application.o moc_mainwindow.o -L/home/taras/Qt/5.11.0/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
/usr/bin/x86_64-linux-gnu-ld: cannot find -lGL
Makefile:260: recipe for target 'application' failed
collect2: error: ld returned 1 exit status
make: *** [application] Error 1
16:10:26: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project application (kit: Desktop Qt 5.11.0 GCC 64bit)
The kit Desktop Qt 5.11.0 GCC 64bit has configuration issues which might be the root cause for this problem.
When executing step "Make"
16:10:26: Elapsed time: 00:00.Thank all!
-
-
@aha_1980 said in Can`t compile any projects:
qt -lGL
I didn
t found any usefull information. Nothing don
t help. -
e.g. https://forum.qt.io/topic/67082/ubuntu-16-04-qt-5-6-cannot-find-lgl/2
seems like you need to quote "-lGL" for google...
-
This post is deleted! -
@aha_1980
I have already tried it but didn`t help. -
-
@aha_1980
Ubuntu 18.04 LTS
I tried everything that I saw in google. -
@tarasf said in Can`t compile any projects:
@aha_1980
Ubuntu 18.04 LTS
I tried everything that I saw in google.this also:
sudo apt-get install libgl1
? -
@aha_1980
Yes -
And also this one?
sudo apt-get install libgl1-mesa-dev
-
@aha_1980
Yes, this too. -
thats a tough one!
The kit Desktop Qt 5.11.0 GCC 64bit has configuration issues which might be the root cause for this problem.
please have a look at Tools > Options > Build&Run > Kits if you see anything strange. best provide a screenshot
-
@aha_1980
image url)
-
Hi @tarasf,
I just have installed Qt 5.11.1 and Creator 4.7.0 on a fresh Ubuntu 18.04.
The only things I installed beside Qt (and git) are:
sudo apt install build-essential libglu1-mesa-dev
Compiling works perfectly for me here.
Regards