Developing for the GP2X introduction
Note: Things are always changing in the development scene so this guide may not be
fully accurate or even useful.
First download DevkitGP2X from http://archive.gp2x.de/ in the Development Utilities
section. Run the file that was downloaded and install it to c:\devkitgp2x\. You will also
need MinSys installed which you can download from http://www.devkitpro.org/. Don’t
forget to include the PATHs for your devkitgp2x/bin/, devkitgp2x/include and MinSys
folders.
Next download theoddbot’s GP2X SDL libraries from
http://www.emuholic.com/theoddbot-libs-open2x-soft-float-beta2.tar.gz. Extract this file
to a temporary location on your PC. Now locate the extracted folder and follow the
folders until you get to the \theoddbot-libs-open2x-soft-float\usr\ folder. Now select and
copy all the folders as follows:
bin
etc
include
info
lib
main
share
Now go to your c:\devkitgp2x\ folder and paste the above folders. You will be asked if it
is OK to overwrite some folders, choose Yes for all of these prompts.
Now download http://www.emuholic.com/arm-linux-sdl-config.rar and extract this file to
the c:\devkitgp2x\bin\ folder.
I have provided a SDL Test Program project for you to test your development setup; you
can download it at http://archive.gp2x.de/cgi-bin/cfiles.cgi?0,0,0,0,46,1047. Extract this
file to a folder on your PC and from the command prompt type ‘make’ and press return.
The demo project should now start to compile and after a few seconds will finish. You
should now have a new file named sdltest.gpe, copy this file and the /sdltest/ folder the
root folder of your GP2X and from the Game menu select ‘sdltest’. After a few seconds
while the program loads a menu containing the tests should appear.
If you have problems relating to executables not being found you may need to update
your PATHS list. You will need paths to c:\devkitGP2x\bin\ and c:\msys\bin\. You can
find information on how to do this at http://www.devkitpro.org/setup.shtml.