Making SDL-GP32 Develop Enviroment
1.- Install CYGWIN (unzip, bzip2 and develop modules required). SeeYa!
2.- Download precompiled arm-cross GCC, BINUTILS and NEWLIB from Dreamcast Quake Port
3.- Copy downloaded arm-elf-*.tar.bz2 files at cygwin /tmp (c:\cygwin\tmp).
4.- Execute cygwin.bat.
5.- Cygwin command: cd /usr
6.- Cygwin command: tar xjvf /tmp/arm-elf-binutils-2.12.tar.bz2
7.- Cygwin command: tar xjvf /tmp/arm-elf-gcc-3.3.tar.bz2
8.- Cygwin command: tar xjvf /tmp/arm-elf-newlib-1.10.0.tar.bz2
9.- Download libgcc.a.bz2 (software FP + interwork).
10.- Copy downloaded libgcc.a.bz2 file at cygwin /tmp
11.- Cygwin command: cd /usr/lib/gcc-lib/arm-elf/3.3
12.- Cygwin command: rm libgcc.a
13.- Cygwin command: mv /tmp/libgcc.a.bz2 .
14.- Cygwin command: bunzip2 libgcc.a.bz2
15.- Download b2fxec from Mr.Spiv's GP32 Development Page .
16.- Unzip downloaded b2fxec.win.zip file to cygwin /tmp
17.- Cygwin command: mv /tmp/b2fxec.exe /usr/bin
18.- Download GPSDK+libC
19.- Copy downloaded gpsdk-libc.tar.bz2 file at cygwin /tmp
20.- Cygwin command: cd /usr/arm-elf
21.- Cygwin command: tar xjvf /tmp/gpsdk-libc.tar.bz2
22.- Test develop enviroment without SDL: Download Test program.
23.- Copy downloaded test.tar.bz2 file at cygwin /tmp
24.- Cygwin command: cd
25.- Cygwin command: mkdir gp32
26.- Cygwin command: cd gp32
27.- Cygwin command: tar xjvf /tmp/test.tar.bz2
28.- Cygwin command: cd test
29.- Cygwin command: make
30.- You must have test.fxe (cygwin command: ls -l test.fxe)
31.- Download precompiled libSDL, libSDL_image and libSDL_mixer.
32.- Unzip downloaded packages at cygwin /tmp directory.
33.- Cygwin command: cd /tmp
34.- Cygwin command: mv include /usr/arm-elf/include/SDL
35.- Cygwin command: mv lib/* /usr/arm-elf/lib
36.- Test develop GP32-SDL enviroment: Download SDL Test program.
37.- Copy downloaded sdltest-beta2.tar.bz2 file at cygwin /tmp
38.- Cygwin command: cd
39.- Cygwin command: cd gp32
40.- Cygwin command: tar xjvf /tmp/sdltest-beta2.tar.bz2
41.- Cygwin command: cd sdltest
42.- Cygwin command: make -f Makefile.gp32
43.- You must have sdltest.fxe (cygwin command: ls -l sdltest.fxe)
44.- Download and Install Geepee32 emulator from FireFly's Homepage
45.- Load and run your test.fxe and sdltest.fxe (c:\cygwin\home\*\gp32\sdltest\sdltest.fxe) with Geepee32.
46.- Download SDL Windows Development Libraries.
47.- Copy downloaded SDL-devel-1.2.5a-mingw32.tar.gz file at cygwin /tmp.
48.- Cygwin command: cd /tmp
49.- Cygwin command: tar xzvf SDL-devel-1.2.5a-mingw32.tar.gz
48.- Cygwin command: cd SDL-1.2.5
48.- Cygwin command: tar xzvf i386-mingw32msvc.tar.gz
49.- Cygwin command: cd i386-mingw32msvc
50.- Cygwin command: mv bin/* /usr/bin/
51.- Cygwin command: mv include/SDL /usr/include/SDL
52.- Cygwin command: mv lib/* /usr/lib/
53.- Cygwin command: mv share/aclocal/* /usr/share/aclocal/
54.- Download SDL_Mixer for Windows Development Library.
55.- Unzip downloaded SDL_mixer-devel-1.2.5-VC6.zip at cygwin /tmp directory.
56.- Cygwin command: cd /tmp/SDL_mixer-1.2.5
57.- Cygwin command: mv include/* /usr/include/SDL/
58.- Cygwin command: mv lib/SDL_mixer.lib /usr/lib/libSDL_mixer.a
59.- Cygwin command: mv lib/* usr/lib/
60.- Download SDL_Image for Windows Development Library
61.- Unzip downloaded SDL_image-devel.1.2.3-VC6.zip at cygwin /tmp directory.
62.- Cygwin command: cd /tmp/SDL_image-1.2.3
63.- Cygwin command: mv lib/SDL_image.lib /usr/lib/libSDL_image.a
64.- Cygwin command: mv lib/* /usr/lib/
65.- Cygwin command: mv include/* /usr/include/SDL/
66.- Compile and run SDL Test Program for Windows:
67.- Cygwin command: cd
68.- Cygwin command: cd gp32/sdltest
69.- Cygwin command: make -f Makefile.pc
70.- Cygwin command: cp /usr/lib/*.dll .
71.- Cygwin command: ./sdltest.exe
NOTES:
a) New project:
-a1) Create directory project:
--a1-1) Cygwin command: cd
--a1-2) Cygwin command: cd gp32
--a1-3) Cygwin command: mkdir mynewproject
--a1-4) Cygwin command: cd mynewproject
-a2) Copy Makefiles:
--a2-1) Cygwin command: cp ../sdltest/Makefile .
--a2-2) Cygwin command: cp ../sdltest/Makefile.pc .
-a3) Copy crt0.s, gpstart.c, lnkscript and user_init.o:
--a3-1) Cygwin command: cp ../sdltest/crt0.s .
--a3-2) Cygwin command: cp ../sdltest/gpstart.c .
--a3-3) Cygwin command: cp ../sdltest/lnkscript .
--a3-4) Cygwin command: cp ../sdltest/user_init.o .
-a3) Edit Makefiles and ajust filenames, etc.
-a4) Programing: Use the force! Documents, tutorials and samples at SDL Homepage
b) use the Sourceforge Project Forum for questions.