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 > Help compiling ndslib template [SOLVED]

#44811 - strager - Sun Jun 05, 2005 7:04 pm

!!SOLVED!! Thanks to DesktopMan, this topic is now solved.

Help!

OK, I am having trouble compiling the template that comes with ndslib. I set up my environment like www.devkit.tk said, and all I get (when I run make) is this error:
Code:

rm -rf arm9/arm9.bin
rm -rf arm7/arm7.bin
make -C arm7 -I .
make[1]: Entering directory `/cygdrive/c/devkitPRO/projects/nds/template/arm7'
make[1]: /bin/sh.exe: Command not found
make[1]: *** [build] Error 127
make[1]: Leaving directory `/cygdrive/c/devkitPRO/projects/nds/template/arm7'
make: *** [all] Error 2
Press any key to continue . . .


I really want to start developing for the DS, but this has stopped me for the last couple of days.

Thanks,
strager


Last edited by strager on Mon Jun 06, 2005 2:47 am; edited 2 times in total

#44813 - dovoto - Sun Jun 05, 2005 7:22 pm

Did you install MSYS and put its bin directory in your path? (preferably first thing in your path)
_________________
www.drunkencoders.com

#44816 - strager - Sun Jun 05, 2005 7:49 pm

Yes I did. I did put a semicolon, but I also put a slash after it. Is that OK?

Thanks.

#44838 - Ethos - Sun Jun 05, 2005 10:20 pm

Remove cygwin
_________________
Ethos' Homepage (Demos/NDS 3D Tutorial)

#44840 - tepples - Sun Jun 05, 2005 10:25 pm

Correct. It's a Bad Thing to have both MinGW-based tools (e.g. mingw native gcc, msys, devkitarm, devkitadv r5 series) and Cygwin-based tools (e.g. cygwin native gcc, older devkitadv) in the PATH where the programs might accidentally invoke each other.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#44841 - strager - Sun Jun 05, 2005 11:01 pm

I never got cygwin. I don't even know how it got there. I'll see if it's in any one of my environmental vars.

Edit: I figured out it was in DevKitAdv (forgot to remove it..). But now I'm having another problem:
Code:
rm -rf arm9/arm9.bin
rm -rf arm7/arm7.bin
make -C arm7 -I .
make[1]: Entering directory `/c/devkitPRO/projects/nds/template/arm7'
mv: missing file argument
Try `mv --help' for more information.
make[2]: [all] Error 1 (ignored)
/c/devkitPRO/projects/nds/template/arm7/Makefile:1: ../CommonMakefile.in: No such file or directory
make[2]: *** No rule to make target `../CommonMakefile.in'.  Stop.
make[1]: *** [build] Error 2
make[1]: Leaving directory `/c/devkitPRO/projects/nds/template/arm7'
make: *** [all] Error 2
Press any key to continue . . .


I have no clue why it can't find CommonMakefine.in, when it's right there in the parent directory. I don't know where the mv command is coming from, either. I removed the ../ from the include in the ARM7 Makefile and it got rid of it, but the include error is still there.

Edit: OK I fixed the little include problem, arising more as I go:
Code:
rm -rf arm9/arm9.bin
rm -rf arm7/arm7.bin
make -C arm7 -I ..
make[1]: Entering directory `/c/devkitPRO/projects/nds/template/arm7'
mv: missing file argument
Try `mv --help' for more information.
make[2]: [all] Error 1 (ignored)
C:\devkitPRO\msys\bin\make.exe: *** couldn't commit memory for cygwin heap, Win32 error 487
make[1]: *** [build] Error 1
make[1]: Leaving directory `/c/devkitPRO/projects/nds/template/arm7'
make: *** [all] Error 2
Press any key to continue . . .



Thanks for the help so far!