c++ - /usr/bin/ld: cannot find -lGL (Ubuntu 14.04) -


i'm trying build project created in qt creator , unfortunately every time try compile error. here compiler output:

23:02:20: running steps project wallpaperappqt... 23:02:20: configuration unchanged, skipping qmake step. 23:02:20: starting: "/usr/bin/make"  g++ -m64 -o wallpaperappqt main.o mainwindow.o moc_mainwindow.o   -l/usr/x11r6/lib64 -lqt5widgets -l/usr/lib/x86_64-linux-gnu -lqt5gui -lqt5core -lgl -lpthread  /usr/bin/ld: cannot find -lgl collect2: error: ld returned 1 exit status make: *** [wallpaperappqt] error 1 23:02:20: process "/usr/bin/make" exited code 2. error while building/deploying project wallpaperappqt (kit: desktop) when executing step 'make' 23:02:20: elapsed time: 00:00. 

you need package provides libgl.so (no version suffix) symlink. in ubuntu, it's in libgl1-mesa-dev package. do:

sudo apt install libgl1-mesa-dev 

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -