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 > Compiling SMAN

#46749 - bob ross - Thu Jun 30, 2005 3:06 am

I just downloaded NDS Dev Env and I get this error when compiling SMAN (The source code that came with the env.)


> "make"
rm -rf arm9/arm9.bin
rm -rf arm7/arm7.bin
make -C arm7 -I /c/ndsdev/projects/sman
make[1]: Entering directory `/c/ndsdev/projects/sman/arm7'
mv: missing file argument
Try `mv --help' for more information.
make[2]: [all] Error 1 (ignored)
built ... arm7.bin
make[1]: Leaving directory `/c/ndsdev/projects/sman/arm7'
make -C arm9 -I /c/ndsdev/projects/sman
make[1]: Entering directory `/c/ndsdev/projects/sman/arm9'
processing resources/bg.h
processing resources/gh0.h
processing resources/pac0.h
processing resources/pal.h
main.cpp
In file included from c:/ndsdev/projects/sman/arm9/main.cpp:21:
c:/ndsdev/projects/sman/arm9/resources/bg.h:4:1: warning: "/*" within comment
c:/ndsdev/projects/sman/arm9/main.cpp: In function `void updateOAM()':
c:/ndsdev/projects/sman/arm9/main.cpp:74: warning: comparison between signed and unsigned integer expressions
built ... arm9.bin
make[1]: Leaving directory `/c/ndsdev/projects/sman/arm9'
cp arm9/arm9.bin boot/resources/arm9.bin
cp arm7/arm7.bin boot/resources/arm7.bin
make -C boot -I /c/ndsdev/projects/sman
make[1]: Entering directory `/c/ndsdev/projects/sman/boot'
files: resources/arm7.bin resources/arm9.bin
objects: arm7.bin.o arm9.bin.o
processing resources/arm7.bin
processing resources/arm9.bin
main.cpp
arm-elf-g++.exe: ds_arm7cart.specs: No such file or directory
make[2]: *** [/c/ndsdev/projects/sman/boot/boot.elf] Error 1
make[1]: *** [build] Error 2
make[1]: Leaving directory `/c/ndsdev/projects/sman/boot'
"make": *** [all] Error 2

> Process Exit Code: 2




Also doublec's tutorials gave me errors and wouldn't compile, is there something wrong with my setup?

#46750 - doublec - Thu Jun 30, 2005 3:36 am

For my tutorials you are probably using 'ndslib' instead of 'libnds'. 'libnds' is part of the setup of 'devkitpro'. See http://devkitpro.sourceforge.net for details.

It should be as simple as unpacking the libnds archive to be a subdirectory of 'devkitpro' and 'make' should then just work.

#46752 - arog - Thu Jun 30, 2005 5:12 am

Quote:
I just downloaded NDS Dev Env


From where? What version?

- Aaron Rogers
http://www.aaronrogers.com/nintendods/

#46774 - strager - Thu Jun 30, 2005 2:24 pm

Did you set your msys binary dir in PATH? Do as such for DOS:
set PATH=/drive/path/to/msys/bin;%PATH%

It seems that you (or the template) are using an invalid argument for mv. You are probably using an old Makefile/template from what I see. Get the latest from examples in the DevKitPro CVS.

#46816 - bob ross - Fri Jul 01, 2005 2:35 am

arog wrote:
Quote:
I just downloaded NDS Dev Env


From where? What version?

- Aaron Rogers
http://www.aaronrogers.com/nintendods/


a couple days ago, and I don't know the verson. How can i tell?