title: Using SDL in Qt Creator on Mac OSX
body: <p>My friend and I are porting our software to Mac OSX. The application is heavily built on SDL and we are having a hard time getting SDL linked and compiling in Qt5. We are not using any part of Qt in our code other then using the IDE for cross-platform ease.</p>
  
  <p>Currently, I have SDL framework inside <code>/Library/Frameworks/</code></p>
  
  <p>Inside application.pro I have:</p>
  
  <pre><code>TEMPLATE = app
  CONFIG += console
  CONFIG -= app_bundle
  CONFIG -= qt
  
  SOURCES += main.cpp
  
  macx {
     INCLUDEPATH += "/Library/Frameworks/SDL.framework/headers/"
  }
  </code></pre>
  
  <p>In <code>main.cpp</code> I obviously have <code>#include "SDL.h"</code> and if I ctrl Click on the <code>SDL.h</code> it shows that it is linking to the framework...</p>
  
  <p>When I go to build/compile I get this error:</p>
  
  <pre><code>14:21:24: Running steps for project BDGame...
  14:21:24: Configuration unchanged, skipping qmake step.
  14:21:24: Starting: "/usr/bin/make" -w
  make: Entering directory `/Users/Kite/Dropbox/Wizardry Games/BDGame/BDGame-build-Desktop_Qt_5_0_0_clang_64bit_SDK-Release'
  g++ -headerpad_max_install_names -mmacosx-version-min=10.6 -o BDGame main.o    
  Undefined symbols for architecture x86_64:
    "_main", referenced from:
        start in crt1.10.6.o
       (maybe you meant: _SDL_main)
  ld: symbol(s) not found for architecture x86_64
  collect2: ld returned 1 exit status
  make: *** [BDGame] Error 1
  make: Leaving directory `/Users/Kite/Dropbox/Wizardry Games/BDGame/BDGame-build-Desktop_Qt_5_0_0_clang_64bit_SDK-Release'
  14:21:24: The process "/usr/bin/make" exited with code 2.
  Error while building/deploying project BDGame (kit: Desktop Qt 5.0.0 clang 64bit (SDK))
  When executing step 'Make'
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/7eP7M.png" alt="enter image description here"></p>
  
  <p>What am I doing incorrect that is stopping Qt from using SDL?</p>