PDA

View Full Version : QT + SDL, No such file or directory



szotyacid
17th September 2013, 11:51
SOLVED! I made the silly mistake of moving my SDL directory at some point.

I have this simple code using SDL:



#include "SDL/SDL.h"

int main( int argc, char* args[] )
{
//Start SDL
SDL_Init( SDL_INIT_EVERYTHING );

//Quit SDL
SDL_Quit();

return 0;
}


in my pro file:


TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt

SOURCES += main.cpp

LIBS += -L C:/SDL-1.2.15/lib -lmingw32 -lSDLmain -lSDL -mwindows
INCLUDEPATH += C:/SDL-1.2.15/include


And get this error: SDL/SDL.h: No such file or directory
However if I put the SDL includes and lib files within the mingw in QT, and change the LIBS and INCLUDEPATH accordingly it works.
I've rerun qmake every time I modified the pro file, with no change in the outcome.

What should I do to have them found at this location?