I installed qt, and when I run the application on qt, I get this error.
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make: *** [test3] Error 1
14:05:48: The process "/usr/bin/make" exited with code 2.
I think this error is related to OpenGL.
I executed all these commands, but nothing happened.
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libgl1-mesa-glx libgl1-mesa-dev
My pro file:
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = test19
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
source
share