Sign in to follow this  
Kixdemp

Compiling DevKit Advance?

Recommended Posts

Hello everyone! :-D A long time ago, I asked something similar here, and someone told me to get DevKit Pro instead... But I couldn't find any GBA tutorials for Pro, only for Nintendo DS... :-/ I've found this cool tutorial series: http://gbajunkie.co.uk/ And this one: http://www.suddenpresence.com/bbatutorial/ The second one seems easier, since it uses SGADE... Which one should I use? But anyways... How do I compile the DKA in Linux? It compiled, but I don't have the program cc1plus, and I couldn't find the Linux version... Anyone know where to get it? Thanks! ;-)

Share this post


Link to post
Share on other sites
Hmm... Can I integrate SGADE with devkitPRO (or devkitARM, they seem to be the same thing)? SGADE really seemed easy to use... Thanks! ;-)

Share this post


Link to post
Share on other sites
Yay! :-D
So which files do I download? Thanks! ;-)

http://sourceforge.net/project/showfiles.php?group_id=114505&package_id=124207

Share this post


Link to post
Share on other sites
I am on windows so I would download:
DevkitArm 18
Codeblocks 1.0RC2
(maybe)SGGADE libs
And then go through the standard installs and setting up the compiler in Codeblocks and run a test project to check. The alternative is to use cygwin and make files instead.

Share this post


Link to post
Share on other sites
OH CRAP... I can't believe devkitPro installed w/o problems... :-|
However... when I try to run any of the GBA samples (tried mbv2 and xboo), VisualBoy Advance only gives me a white screen with like 250% usage in the title bar...
I get this output:


[kixdemp@localhost XbooLoad]$ make
XbooLoad.c
arm-elf-gcc -MMD -MP -MF /home/kixdemp/gbaexamples/xboo/XbooLoad/build/XbooLoad.d -g -Wall -O3 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/home/kixdemp/progs/devkitpro/libgba/include -I/home/kixdemp/gbaexamples/xboo/XbooLoad/build -c /home/kixdemp/gbaexamples/xboo/XbooLoad/src/XbooLoad.c -o XbooLoad.o
linking multiboot
built ... XbooLoad_mb.gba
ROM fixed!



:-( I only downloaded the main devkitARM program, and the libgba... (No SGADE yet) Did you face this same problem on Windows, or no? Do you know what it could be? I setted the environment variables and everything... I even copied the libgba files into the devkitARM folder... What should I try next? Thanks! ;-)

Share this post


Link to post
Share on other sites
Try changing the flag from -03 to -o

I rememeber a problem like this before but is been a while since I last programmed for it so I can't actually remember. Have you tried a non multiboot demo? Have you also checked the the emualtor works with a normal ROM? Also you may get more luck at gbadev.org forums and also more advice then I could ever give at this point.

Share this post


Link to post
Share on other sites
The -o thing didn't work... :-S
How do you make it non-multiboot?
I asked on GBADev:

http://forum.gbadev.org/viewtopic.php?p=81570#81570

Thanks very much for your help! ;-)

Share this post


Link to post
Share on other sites
you need to set the specs-file. this sets up various linker-settings for gba. use either -specs=gba.specs or -specs=gba_mb.specs to link normal or multiboot gba programs.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this