GP2X Trouble Compiling Using Dev-cpp And Sdl (with Hw Accell)


MattPurland

Still Fresh
Joined
Jun 26, 2006
Messages
38
Hey everyone,

I'm about to buy myself a lovely GP2X and wanting to start coding for it. I've gone the bloodshed route using the tutorial on the gp2x wiki and installed devkitgp2x with paeryn's hw SDL (I'm guessing you just replace the specific SDL headers and libs with paeryns?). Anyway, when I go to compile any code with the gp2x compilers I get the following errors:

Code:
File format not recognized 
G:\My Documents\Work\AirFighterSDL\Makefile.win [Build Error]  [AirFighter2X.gpe] Error 1

With the default compilers (Windows) the code compiles fine. Afaik I've setup Dev-Cpp correctly :S Any ideas? (I'm sure you've guessed I'm a noob at this :p)

Thanks!
 
Ok, gotten a bit closer... found I hadn't added the SDL stuff properly in dev-cpp, whoops! But now I'm getting the following:

Code:
cannot find -lSDLmain
G:\My Documents\Work\AirFighterSDL\Makefile.win [Build Error]  [AirFighter2X.gpe] Error 1

Any ideas? Thanks!
 
It looks like it cant find the libraries. Are you directories correct for the GP2X build or have you put the libraries in the wrong place?
 
Back
Top