title: Setting up SFML on Ubuntu 13.04 and QT-Creator
body: <p>I've been trying to get SFML to work with QT-creator (and gcc in general) but my example projects won't compile. I installed it using the command:</p>
  
  <pre><code>sudo apt-get install libsfml-dev
  </code></pre>
  
  <p>But compiling just gives me a lot of errors:</p>
  
  <pre><code>/home/jan/Documents/SFMLTest/main.cpp:5: error: undefined reference to sf::String::String(char const*, std::locale const&amp;)'
  
  /home/jan/Documents/SFMLTest/main.cpp:5: error: undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&amp;, unsigned int, sf::ContextSettings const&amp;)'
  </code></pre>
  
  <p>and etc.</p>
  
  <p>My .Pro file is setup like this:</p>
  
  <pre><code>SOURCES += main.cpp
  
  LIBS += -lsfml-system -lsfml-window -lsfml-graphics -lsfml-audio
  </code></pre>
  
  <p>and this is inside main.cpp:</p>
  
  <pre><code>#include &lt;SFML/Graphics.hpp&gt;
  
  int main()
  {
  sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
  sf::CircleShape shape(100.f);
  shape.setFillColor(sf::Color::Green);
  
  while (window.isOpen())
  {
      sf::Event event;
      while (window.pollEvent(event))
      {
          if (event.type == sf::Event::Closed)
              window.close();
      }
  
      window.clear();
      window.draw(shape);
      window.display();
  }
  
  return 0;
  }
  </code></pre>
  
  <p>I tried doing <a href="http://sfmlcoder.wordpress.com/2011/08/16/building-sfml-2-0-with-make-for-gcc/" rel="nofollow">this</a> but it doesn't seem to work.</p>
  
  <p>Any help would be great as I'm still quite new to linux/ubuntu.</p>