title: Installing Qt on linux, cannot find -lGL
body: <p>I'm having a hard time trying to install Qt on linux. I downloaded the .run file on the website and installed Qt. However, when I try to compile the default Hello World project using Qtcreator, I get the following :</p>
  
  <pre><code>error cannot find -lGL
  </code></pre>
  
  <p>I was able to solve the problem by issuing the command :</p>
  
  <pre><code>sudo apt-get install libqt4-dev
  </code></pre>
  
  <p>But, I'm not satisfied with the solution as I want to use Qt5 and the name of the lib I downloaded implies version 4. Can someone explain what is going on and tell me if my solution is correct? If not, what should I do to get a working Qt on Linux.</p>
  
  <p><strong>Additional question</strong></p>
  
  <p>The correct answer, as provided by <em>LtWorf</em>, was to install <strong>libgl-dev</strong>. For future problems of this sort, can someone tell me how I should have guessed that I had to download this particular library? And why are there some libs with <strong>-dev</strong> at the end? What do they provide?</p>