GP2X Setting Up And Sdl And Gcc Arm Environment


chris_r

Active Member
Joined
Jun 16, 2004
Messages
745
I got my gp2x yesterday and I want to try if I can try and program something in SDL for the gp2x using the little knowledge of SDL that I have. But I have no idea how to set up a cross compiler and libs in linux.

Can anyone tell me how to compile an ARM cross compiler under linux and how to compile the sdl libs for it
 
Can anyone tell me how to compile an ARM cross compiler under linux and how to compile the sdl libs for it

I'm not sure, but I'm about to try this too. I'm just going to use crosstool for a build of libc and gcc. Wish me luck! I believe some of the devs have set up some scripts etc. to set all this up, but I'm not sure where they are.

Mark
 
Last edited by a moderator:
I'm not sure, but I'm about to try this too. I'm just going to use crosstool for a build of libc and gcc. Wish me luck! I believe some of the devs have set up some scripts etc. to set all this up, but I'm not sure where they are.

Mark

Crosstool worked:) Did a 3.4.4 build of gcc and have just run an SDL "hello rectangle"!

Mark

p.s.(edit) If you need any help let me know, but its pretty trivial. Download/untar crosstool then run demo-arm9tdmi.sh. I modified the script slightly to build a raw arm9 version, but I don't think that matters much. Sure some "properly" tweaked downloadable devkits will be done be some enterprising people soon!
 
Last edited by a moderator:
there's already some info up at

http://wiki.gp2x.org/wiki/Getting_started_with_GP2X_development

if you find something new please add it there.

we have set up the wiki to help exactly people like you.
 
I'm not sure, but I'm about to try this too. I'm just going to use crosstool for a build of libc and gcc. Wish me luck! I believe some of the devs have set up some scripts etc. to set all this up, but I'm not sure where they are.

Mark

Crosstool worked:) Did a 3.4.4 build of gcc and have just run an SDL "hello rectangle"!

Mark

p.s.(edit) If you need any help let me know, but its pretty trivial. Download/untar crosstool then run demo-arm9tdmi.sh. I modified the script slightly to build a raw arm9 version, but I don't think that matters much. Sure some "properly" tweaked downloadable devkits will be done be some enterprising people soon!
What changes did you make to the script?
 
Last edited by a moderator:
Back
Top