Thanks for the reply. Indeed not ideal, so I think you might like to know how to set this up in linux also. And as you know, I won't be telling you. (atm)
For the SDL I found a neat trick:
CODE
#if defined(_MSC_VER)
#include "SDL.h"
#else
#include "SDL/SDL.h"
#endif
Still, I got something wrong..
I have these errors with the GNU GCC profile:
QUOTE
obj/Debug/main.o||In function `drawSprite(SDL_Surface*, SDL_Surface*, int, int, int, int, int, int)'
/main.cpp|35|undefined reference to `SDL_UpperBlit'|
obj/Debug/main.o||In function `main'
/main.cpp|58|undefined reference to `SDL_Init'|
/main.cpp|65|undefined reference to `SDL_SetVideoMode'|
/main.cpp|74|undefined reference to `SDL_GetError'|
/main.cpp|79|undefined reference to `SDL_JoystickOpen'|
/main.cpp|82|undefined reference to `SDL_GetError'|
/main.cpp|86|undefined reference to `SDL_ShowCursor'|
/main.cpp|88|undefined reference to `SDL_RWFromFile'|
/main.cpp|88|undefined reference to `SDL_LoadBMP_RW'|
/main.cpp|96|undefined reference to `SDL_Flip'|
/main.cpp|106|undefined reference to `SDL_PollEvent'|
/main.cpp|113|undefined reference to `SDL_WaitEvent'|
/main.cpp|135|undefined reference to `SDL_Quit'|
||=== Build finished: 13 errors, 0 warnings ===|
I tried setting up the Open2x profile as said in the WIKI, but I got an
invalid compiler error.
Then I created the devkitGP2X profile using:
Searchpath:
/usr/local/gp2x/devkitGP2X/include
/usr/local/gp2x/devkitGP2X/include/SDL
/usr/local/gp2x/devkitGP2X/lib/gcc/arm-linux/4.0.2/include
Linker:
/usr/local/gp2x/devkitGP2X/lib
Toolchain:
/usr/local/gp2x/devkitGP2X
using arm-linux-gcc.exe
using arm-linux-g++.exe
using arm-linux-ar.exe
I almost felt stupid entering this, because we all know what OS uses .exe. Yet to my surprise, no invalid compiler error.
However on build, exact same errors as quoted above.