title: OpenGL Ubuntu 13.10 QtCreator - undefined reference to `glutMainLoop`
body: <p>If I try to execute the code from <a href="http://openglbook.com/the-book/chapter-1-getting-started/" rel="nofollow">here, the OpenGLBook</a>, I get this error messages:</p>
  
  <pre><code>undefined reference to glutMainLoop
  undefined reference to glGetString
  undefined reference to glClearColor
  </code></pre>
  
  <p>and so on ... I installed the following packages:</p>
  
  <p><code>libglew-dev</code>, <code>liblglew1.8</code>, <code>freeglut3-dev</code> and <code>freeglut3</code>.</p>
  
  <p>I am running on Ubuntu 13.10 with Qt Creator v3.0.0.</p>
  
  <p>My <code>.pro</code> file looks like this:</p>
  
  <pre><code>TEMPLATE = app
  CONFIG += console
  CONFIG -= app_bundle
  CONFIG -= qt
  
  SOURCES += main.cpp
  </code></pre>
  
  <p>Build step for debugging is <code>qmake Project.pro -r -spec linux-g++ CONFIG += debug</code></p>
  
  <p>How can I fix my project?</p>