Compiling DevKit Advance?

Started by
8 comments, last by kusma 17 years, 11 months ago
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! ;-)
Advertisement
I would say use DevKitArm, DevKitAdvance is REALLY old. You should be able to compile the GBA programs in the same way.
Also GBA tutorials which are more 'correct' then GBA junkies
Tonc
The Pern Project
GBA Dev.org

To your actual question, sorry but I cant can't help you there (Windows User).

Steven Yau
[Blog] [Portfolio]

Hmm... Can I integrate SGADE with devkitPRO (or devkitARM, they seem to be the same thing)? SGADE really seemed easy to use... Thanks! ;-)
Don't see why not, SGADE just seems to be a library for GCC.

Steven Yau
[Blog] [Portfolio]

Yay! :-D
So which files do I download? Thanks! ;-)

http://sourceforge.net/project/showfiles.php?group_id=114505&package_id=124207
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.

Steven Yau
[Blog] [Portfolio]

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]$ makeXbooLoad.carm-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.olinking multibootbuilt ... XbooLoad_mb.gbaROM 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! ;-)
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.

Steven Yau
[Blog] [Portfolio]

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! ;-)
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.

This topic is closed to new replies.

Advertisement