I have installed qt and when I run 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 have run 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 is :
#-------------------------------------------------
#
# Project created by QtCreator 2015-05-19T17:40:19
#
#-------------------------------------------------
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