gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > DS Development on the mac?

#40174 - jstart - Fri Apr 15, 2005 6:12 pm

I know im so annoying with all these questions and this may be a lost cause but....
I have been trying to compile dovoto's hello_world template on my mac
By editing the make file to tell where devkitarm and ndslib are i have made some progress but by editing the prefix for it at the top it does not work i have to manually edit each one but it is still not finding ndstool
It might just be that its an exe file :)
but i have the source from darkfader's site but i dont know how to compile it. heres what I got... Any ideas?
Update: Ok i kept working and got this (look at the bottom)
64-121-22-28:~/ndsdev/Projects/hello_world nathan$ make
main.cpp
make[1]: MM: Command not found
make[1]: [main.o] Error 127 (ignored)
make[1]: g: Command not found
make[1]: [main.o] Error 127 (ignored)
linking binary
make[1]: g: Command not found
make[1]: [/Users/nathan/ndsdev/Projects/hello_world/demo.elf] Error 127 (ignored)
built ... demo.bin
make[1]: O: Command not found
make[1]: [/Users/nathan/ndsdev/Projects/hello_world/demo.bin] Error 127 (ignored)
built ... demo.nds
/ndstool.exe -c /Users/nathan/ndsdev/Projects/hello_world/demo.nds -9 demo.bin -7 /arm7.bin -t /default_icon.bin
make[1]: /ndstool.exe: Command not found
make[1]: *** [/Users/nathan/ndsdev/Projects/hello_world/demo.nds] Error 127
make: *** [build] Error 2

2nd Try
64-121-22-28:~/ndsdev/Projects/hello_world nathan$ make
main.cpp
make[1]: MM: Command not found
make[1]: [main.o] Error 127 (ignored)
make[1]: g: Command not found
make[1]: [main.o] Error 127 (ignored)
linking binary
make[1]: g: Command not found
make[1]: [/Users/nathan/ndsdev/Projects/hello_world/demo.elf] Error 127 (ignored)
built ... demo.bin
make[1]: O: Command not found
make[1]: [/Users/nathan/ndsdev/Projects/hello_world/demo.bin] Error 127 (ignored)
built ... demo.nds
c /Users/nathan/ndsdev/Projects/hello_world/demo.nds -9 demo.bin -7 /arm7.bin -t /default_icon.bin
make[1]: c: Command not found
make[1]: [/Users/nathan/ndsdev/Projects/hello_world/demo.nds] Error 127 (ignored)
built ... demo.nds.gba
/Users/nathan/ndsdev/Projects/hello_world/demo.nds /Users/nathan/ndsdev/Projects/hello_world/demo.nds.gba /loader.bin
make[1]: /Users/nathan/ndsdev/Projects/hello_world/demo.nds: Command not found
make[1]: *** [/Users/nathan/ndsdev/Projects/hello_world/demo.nds.gba] Error 127
make: *** [build] Error 2

#40182 - ecurtz - Fri Apr 15, 2005 7:05 pm

I'm at work, so I can't check this, but basically this is what I do when making the examples.

A) Change any hard coded stuff in the makefiles (remember there is a separate one in each subfolder) to fix paths and remove things like the call to gbafix (which you don't need.)

B) I don't even know what ndstool is. I'd yank that build step out of your makefile. It looks like it's adding an icon and stuff to build an "official" header, which you don't need.

C) Rather than hardcoding the path for tools I specify them from the command line.
i.e.
env PATH=PATH_TO_devkitARM/bin:PATH_TO_otherTools/bin:$PATH make

I can mail you a working project tonight if you want - just PM me.