Error on OSX
Posted: Wed Jun 10, 2009 3:10 pm
Alright, I want to do some NDS development on OSX, so I downloaded the following items:
devkitARM_r26-osx.tar.bz2
libnds-1.3.4.tar.bz2
maxmod-nds-1.0.5.tar.bz2
dswifi-0.3.8.tar.bz2
nds-examples-20090531.tar.bz2
I then unarchived each of the following files into the following directories:
devkitARM
libnds-1.3.4
maxmod-nds-1.0.5
dswifi-0.3.8
nds-examples-20090531
I then put each of these directories into a parent directory: devkitPRO
I then created two environment variables:
Then I changed to the hello_world directory of nds-examples. Here is the output of a make command:
So, how do I make it recognize nds.h? I would prefer not changing the INCLUDE variables for my entire system.
devkitARM_r26-osx.tar.bz2
libnds-1.3.4.tar.bz2
maxmod-nds-1.0.5.tar.bz2
dswifi-0.3.8.tar.bz2
nds-examples-20090531.tar.bz2
I then unarchived each of the following files into the following directories:
devkitARM
libnds-1.3.4
maxmod-nds-1.0.5
dswifi-0.3.8
nds-examples-20090531
I then put each of these directories into a parent directory: devkitPRO
I then created two environment variables:
Code: Select all
$export DEVKITPRO=~/Desktop/devkitPRO ;This is where I have my test devkit.
$export DEVKITARM=$DEVKITPRO/devkitARM
Code: Select all
$ make
main.cpp
arm-eabi-g++ -MMD -MP -MF /Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/include -I/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/build -I/Users/slithe/Desktop/devkitPRO/libnds/include -I/Users/slithe/Desktop/devkitPRO/libnds/include -I/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp -o main.o
/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp:10:17: warning: nds.h: No such file or directory
/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp: In function 'int main()':
/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp:25: error: 'touchPosition' was not declared in this scope
/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp:25: error: expected ';' before 'touchXY'
/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp:27: error: 'IRQ_VBLANK' was not declared in this scope
/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp:27: error: 'irqSet' was not declared in this scope
/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp:29: error: 'consoleDemoInit' was not declared in this scope
/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp:37: error: 'swiWaitForVBlank' was not declared in this scope
/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp:38: error: 'touchXY' was not declared in this scope
/Users/slithe/Desktop/devkitPRO/devkitARM/examples/hello_world/source/main.cpp:38: error: 'touchRead' was not declared in this scope
make[1]: *** [main.o] Error 1