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