Compiling homebrew demos
I've had emails from people having trouble compiling the demos from my Nintendo DS homebrew tutorials.
The problem is usually not having the GCC compiler in the path and shows the following error when you run 'make'.
This error causes a 'arm-elf-g++: Command not found' to happen:
For some reason the devkitpro installer does not always add the path to the GCC compiler to the system path. It does add the path for MSYS which is why 'make' works. To fix things ensure that you add the path. If your devkitpro is installed on the C: drive this can be done with the following command from a DOS prompt:
Once that is done you can use 'make' to build the files and then use the tool for your Gameboy Advance Flash Cartridge or GBA linker software to copy it to the cartridge. Then follow the WifiMe steps to get things going. This is all covered in tutorial one.
Two new tutorials are coming up. One is a simple 3D example and the other is using wireless from the DS. Keep an eye out for them!
Categories: nintendods
The problem is usually not having the GCC compiler in the path and shows the following error when you run 'make'.
This error causes a 'arm-elf-g++: Command not found' to happen:
c:\example\demo1>make
arm-elf-g++ -g -Wall -O2 ...
make: arm-elf-g++: Command not found
make: *** [arm7_main.o] Error 127
For some reason the devkitpro installer does not always add the path to the GCC compiler to the system path. It does add the path for MSYS which is why 'make' works. To fix things ensure that you add the path. If your devkitpro is installed on the C: drive this can be done with the following command from a DOS prompt:
set PATH=c:\devkitpro\msys\bin;c:\devkitpro\devkitarm\bin
Once that is done you can use 'make' to build the files and then use the tool for your Gameboy Advance Flash Cartridge or GBA linker software to copy it to the cartridge. Then follow the WifiMe steps to get things going. This is all covered in tutorial one.
Two new tutorials are coming up. One is a simple 3D example and the other is using wireless from the DS. Keep an eye out for them!
Categories: nintendods

12 Comments:
I had this problem but the only way to fix it was to change the make file. Everywhere it said arm-elf-XXX I had to change to arm-eabi-XXX. There is probably some problem with configuration. I don't know enough about msys/gnu tools to find the real problem at this time.
It seems the new devkitARM uses arm-eabi, makes it tough when using older tutorials. Not sure what this effects or if it matters, or if it's better
It seems the new devkitARM uses arm-eabi instead of arm-elf, not sure why or if it's better or even matters, but makes it tough using old tutorials
Yes, I haven't kept up to date with the latest devkitpro. I plan to go through the tutorials this weekend and update them.
I'm torn between keeping the tutorials low level (teaching how interrupts work, the split between the two processors, primitive makesfiles) or just jumping in and using devkitpro's own makefiles, higher level library, etc which hides things.
I'm open to suggestions.
Dude, seriously, whats up with your site it keeps saying i dont have permission. I really wanna see the rest of this tutorial!
I'm working on it! My web hosting provider is having problems.
Ok, site is back up now. I've moved to a different server so it may take a few hours for the DNS to propogate.
I also converted all "elf" substrings to "eabi" in the makefile, however I'm seeing compile errors now. Is anyone else seeing this?
Yep, same problem here; I changed from elf to eabi, and now I get compiler errors.
Ex:
arm7_main.cpp:53: error: 'volatile struct sTransferRegion' has no member named 'curtime'
Daniel Loewus kindly converted the framebuffer demo for me and the source is here. Let me know if that works for you.
It compiles alright, but running the .nds seems to crash Dualis...!
Another two tutorials? That's exciting!!! but when release that two?
Post a Comment
<< Home