Error reporting during QT operation under Ubuntu / usr / bin / LD: cannot find – LGL

Problem description

Error when running QT program under Ubuntu:

/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status

Solution

GL library needs to be installed:
execute the following command

sudo apt-get install libgl1-mesa-dev


Read More: