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;
}
#include "SDL/SDL.h"
int main( int argc, char* args[] )
{
//Start SDL
SDL_Init( SDL_INIT_EVERYTHING );
//Quit SDL
SDL_Quit();
return 0;
}
To copy to clipboard, switch view to plain text mode
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
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
To copy to clipboard, switch view to plain text mode
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?
Bookmarks