title: How to include SDL_ttf in pro file Qt Creator with SDL2.0
body: <p>I'm trying to add a simple text to render it in a window. But I have a problem...</p>
  
  <p>Everytime the console shows me the following answer :</p>
  
  <pre><code>"Couldn't load font file"
  </code></pre>
  
  <p>I don't know what is the origin of this problem. Maybe the mistake is in the .pro file :</p>
  
  <pre><code>TEMPLATE = app
  CONFIG += console
  CONFIG -= app_bundle
  CONFIG -= qt
  
  INCLUDEPATH += /usr/include
  
  LIBS += -L/usr/lib -lSDL2 -lSDL2_image -lSDL_ttf
  
  SOURCES += main.cpp 
  </code></pre>
  
  <p>There is the other part in main.cpp :</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;SDL2/SDL.h&gt;
  #include &lt;SDL2/SDL_image.h&gt;
  #include &lt;SDL2/SDL_ttf.h&gt;
  
  using namespace std;
  
  void loop();
  
  int main()
  {
  
      SDL_Init(SDL_INIT_VIDEO);
      SDL_SetHint( SDL_HINT_RENDER_VSYNC, "1" );
      SDL_SetHint( SDL_HINT_RENDER_SCALE_QUALITY, "1" );
  
      if( TTF_Init() == -1 )
      {
          cout &lt;&lt; TTF_GetError() &lt;&lt; endl;
      }
      else {
  
          TTF_Font* font = TTF_OpenFont("lazy.ttf", 10);
  
          if( font == NULL ) {
  
              cout &lt;&lt; TTF_GetError() &lt;&lt; endl;
  
          }
          else {
  
              cout &lt;&lt; "Font loaded" &lt;&lt; endl;
  
          }
      }
  
      loop();
  
      return 0;
  }
  
  void loop() {
  
      bool quit(false);
      SDL_Event e;
  
      while( !quit ) {
  
          SDL_PollEvent(&amp;e);
  
          switch( e.type ) {
  
          case SDL_QUIT:
              quit = true;
              break;
          }
      }
  
  }
  </code></pre>
  
  <p>Further informations:</p>
  
  <ul>
  <li>Fedora 20 </li>
  <li>Qt Creator </li>
  <li>All the SDL packages installed with yum</li>
  <li>The ttf font in the same directory as the executable</li>
  </ul>
  
  <p>Thank you in advance !</p>