Qt 5.5.1: Cannot find -lGL
<p>I have developed an GUI application on <code>Qt 5.3.1</code>. I am using Qt Creator <code>3.1.2 (based on Qt 5.3.1)</code> to build my GUI application and am able to build and deploy my application successfully.</p>

<p>I wanted to update my qt creator and for that I have installed the latest <code>Qt Creator 3.5.1 (based on Qt 5.5.1)</code> and provided necessary changes to build my existing QT GUI application on this latest qt creator. Everything went well and just about to create the final executable, the build was terminated with below error information:</p>

<pre><code>/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
The process "/usr/bin/make" exited with code 2.
Error while building/deploying project test-app (kit: Desktop Qt 5.5.1 GCC 32bit)
</code></pre>

<p>I tried to search online and found this suggestion to update the Mesa package!. <em>[If that is the case, why is that the same application was building fine on my Qt creator 3.1.2. I want to know some details before trying the fix to update mesa package.]</em></p>

<p>Can somebody provide me some pointers to fix this issue? Thanks in advance.</p>

<p>EDIT:
When I built my GUI application on Qt 5.3.1 the below libraries are linked to my final executable:</p>

<pre><code>-lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Sql -lQt5Core -lGLESv2 -lEGL -lGAL
</code></pre>

<p>The same application when I built on Qt 5.5.1 version the below libraries are linked to my final executable:</p>

<pre><code>-lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Sql -lQt5Core -lGL
</code></pre>

<p>I had to update mesa package as suggested by @Kyrylo Polezhaiev to resolve the issue with -lGL </p>

<p><strong>I am missing a piece here: 
Was it that the OpenGL packages <code>-lGLESv2 -lEGL -lGAL</code> from older qt version (5.3.1) is just equivalent to <code>-lGL</code> on latest qt creator 5.5.1 version ?</strong> </p>