Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt: can't find -lGL error

I just reinstalled QtCreator, created new project (Qt Application) an got this after compilation:

/usr/bin/ld: **cannot find -lGL**
collect2: error: ld returned 1 exit status
make: *** [untitled1] Error 1
18:07:41: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled1 (kit: Desktop Qt 5.1.0 GCC 32bit)
When executing step 'Make'

(Project is empty, I did'n commit any changes)

Qt Creator 2.7.2
Based on Qt 5.1.0 (32 bit)
Ubuntu 13.04

How do I solve this problem?

like image 394
Hofmn Avatar asked Oct 13 '22 17:10

Hofmn


1 Answers

You should install package "libgl1-mesa-dev":

sudo apt install libgl1-mesa-dev
like image 120
Sayyed Hassan Amiri Avatar answered Oct 16 '22 16:10

Sayyed Hassan Amiri