#94523 - skullmaster1000 - Tue Jul 25, 2006 4:29 am
i've been following ds homebrew development for quite some time, and i thought that it's time that i gave back to the community and developed some things of my own. i've been using this tutorial: http://www.double.co.nz/nintendo_ds/index.html. i should say that i don't really know much about c++ but w/e. so it says to compile the arm7.cpp and the arm9.cpp with "make" but when i do it with devkitpro it gives me the following error message:
C:\Users\Jake\Documents\Unzipped\demo1\demo1>make
arm-elf-g++ -g -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ff
ast-math -mthumb-interwork -I/c/devkitPro/libnds/include -DARM7 -c arm7_main.cpp
-oarm7_main.o
make: arm-elf-g++: Command not found
make: *** [arm7_main.o] Error 127
i'm not really sure what to do. if someone could say what the heck i'm dong wrong here, i would be very grateful.
#94532 - josath - Tue Jul 25, 2006 5:23 am
Not 100% sure, but it looks like you are trying to use makefiles designed for an older version of devkitarm.
Try playing with the included examples in devkitarm, see if those work (they should)
#94538 - freemaan - Tue Jul 25, 2006 6:50 am
Just replace every "arm-elf-" with "arm-eabi-" in every makefile.
#94633 - skullmaster1000 - Tue Jul 25, 2006 4:18 pm
so the arm-elf command doesn't work with the current version? yeah i tohught of that because it kept saying that the command didn't exist. i'll try replacing it with arm-eabi's and see what happens.
#94686 - skullmaster1000 - Tue Jul 25, 2006 8:30 pm
hmmmm it says that arm-eabi-g++ isn't a command. weird.
#94709 - Sausage Boy - Tue Jul 25, 2006 9:57 pm
Try copying the both template in the examples, and just move the code there.
_________________
"no offense, but this is the gayest game ever"
#94734 - skullmaster1000 - Tue Jul 25, 2006 11:42 pm
Quote: |
Try copying the both template in the examples, and just move the code there. |
ummm.......what? sorry but can you explain what you just said?
#94786 - josath - Wed Jul 26, 2006 3:31 am
Can you compile the devkitarm examples? I would try those first.
If they work, then Sausage Boy's suggestion should help: Make a copy of on e of the devkitarm example directories, but delete the source code from it (.cpp, .c, .h), then copy the source code from your project, into that folder. Thus you will be using the Makefile from devkitarm examples, and NOT the makefile from double.co.
#95076 - DynamicStability - Thu Jul 27, 2006 6:48 pm
Check environment variables.... DEVKITPRO and DEVKITARM should be set and/or DEVKITARM/Bin should be in your path..
_________________
Framebuffer is dead.
DynaStab.DrunkenCoders.com
#95498 - Optihut - Sat Jul 29, 2006 10:02 pm
I fear devkitpro is not my friend either... I renamend the makefiles to makefile.bat and then executed them just to find out that all the commands are not recognized.
So, is there a tutorial on makefiles somewhere? It's quite embarrassing that I failed to compile the examples even :(
#95500 - Sausage Boy - Sat Jul 29, 2006 10:43 pm
Do not rename the makefiles! Just open a terminal (start->run->cmd), cd to the right directory and type "make".
Or, if you choose to install Programmer's Notepad, open the .pnproj file and hit ALT-1. That runs make for you.
_________________
"no offense, but this is the gayest game ever"
#95502 - Optihut - Sat Jul 29, 2006 10:48 pm
Sausage Boy wrote: |
Do not rename the makefiles! Just open a terminal (start->run->cmd), cd to the right directory and type "make".
Or, if you choose to install Programmer's Notepad, open the .pnproj file and hit ALT-1. That runs make for you. |
Ah, right - strange enough, I executed the batch files by using "cmd" as the text was scrolling too fast... Now that I have renamed the example back to "makefile" and did as you said, it compiles just fine.
Still, since the code from the tutorial the original poster mentioned won't compile, even after renaming elf to eabi, a tutorial for those makefiles would come in handy (or maybe I just need to sober up, will keep you posted). Thanks for the help, though! Great that the examples are working now!
#95503 - Sausage Boy - Sat Jul 29, 2006 11:28 pm
How to compile doublec's stuff:
1. Look in the devkitPro->examples->nds->templates
2. Copy 'Combined' to demoX (where X is the demo you're compiling)
3. Look in doublec's zip file. You should see two .cpp files, one called something with arm7 and one called something with arm9.
4. Change into your demoX folder, arm7->source.
5. Delete template.c
6. Copy your arm7_main.cpp file to that directory.
7. Do the same for arm9.
Now it gets a little tricky...
8. Open the pnproj file.
9. Hit ALT-1
10. ERROR!
Change the row
DISP_SR = DISP_VBLANK_IRQ;
to
irqEnable(IRQ_VBLANK);
(The interrupt handler is ancient...)
11. Hit ALT-1 again.
12. ???
13. PROFIT!
_________________
"no offense, but this is the gayest game ever"
#95512 - Optihut - Sun Jul 30, 2006 12:18 am
Magic! Thanks a bunch!
#95513 - Sausage Boy - Sun Jul 30, 2006 12:29 am
No problem :)
_________________
"no offense, but this is the gayest game ever"
#95517 - wintermute - Sun Jul 30, 2006 1:12 am
Unfortunately Doublec's tutorials are majorly out of date & will become more so. Currently the best resource for NDS coders is the set of examples provided by devkitPro.
The DS shares a lot in common with the GBA so the Tonc tutorials will give you a good grounding.
And I can't help laughing at the subject of this thread :)
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog