Error on OSX

support for the ARM toolchain
Post Reply
Slithe
Posts: 4
Joined: Wed Jun 10, 2009 2:50 pm

Error on OSX

Post by Slithe » 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:

Code: Select all

$export DEVKITPRO=~/Desktop/devkitPRO   ;This is where I have my test devkit.
$export DEVKITARM=$DEVKITPRO/devkitARM
Then I changed to the hello_world directory of nds-examples. Here is the output of a make command:

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
So, how do I make it recognize nds.h? I would prefer not changing the INCLUDE variables for my entire system.
Last edited by Slithe on Wed Jun 10, 2009 3:42 pm, edited 1 time in total.

Slithe
Posts: 4
Joined: Wed Jun 10, 2009 2:50 pm

Re: Error on OSX

Post by Slithe » Wed Jun 10, 2009 3:42 pm

Well, I fixed the problem by changing the directories to the following names:

Code: Select all

dswifi
libnds
maxmod
Now, I am getting the following error:

Code: Select all

make
main.cpp
arm-eabi-g++ -MMD -MP -MF /Users/slithe/Desktop/devkitPRO/nds-examples-20090531/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/nds-examples-20090531/hello_world/include -I/Users/slithe/Desktop/devkitPRO/nds-examples-20090531/hello_world/build -I/Users/slithe/Desktop/devkitPRO/libnds/include -I/Users/slithe/Desktop/devkitPRO/libnds/include -I/Users/slithe/Desktop/devkitPRO/nds-examples-20090531/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /Users/slithe/Desktop/devkitPRO/nds-examples-20090531/hello_world/source/main.cpp -o main.o
linking hello_world.elf
built ... hello_world.arm9

make[1]: *** [/Users/slithe/Desktop/devkitPRO/nds-examples-20090531/hello_world/hello_world.nds] Bus error

DarkShadow44
Posts: 19
Joined: Wed Apr 15, 2009 3:17 pm

Re: Error on OSX

Post by DarkShadow44 » Wed Jun 10, 2009 8:38 pm

Look here, maybe it helps you.

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Error on OSX

Post by WinterMute » Thu Jun 11, 2009 12:34 am

See the instructions at http://wiki.devkitpro.org/index.php/Get ... /devkitARM

dswifi, maxmod & filesystem all go in the devkitpro/libnds folder, you'll also need the default.arm7.

As for the bus error, is this OSX Tiger running on a G5 by any chance?
Help keep devkitPro toolchains free, Donate today

Personal Blog

Slithe
Posts: 4
Joined: Wed Jun 10, 2009 2:50 pm

Re: Error on OSX

Post by Slithe » Thu Jun 11, 2009 1:10 am

Wintermute wrote:As for the bus error, is this OSX Tiger running on a G5 by any chance?
Nope. It is a plain-old Core-Duo Macbook with OSX 10.4.

Slithe
Posts: 4
Joined: Wed Jun 10, 2009 2:50 pm

Re: Error on OSX

Post by Slithe » Thu Jun 11, 2009 1:11 am

Also, I tried that ndstool that was linked to, and it still did not help.

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Error on OSX

Post by WinterMute » Sat Jun 13, 2009 4:09 am

Try this binary - http://sourceforge.net/project/download ... a=80434670

If that still crashes then try running it through gdb & let me know what it says. A backtrace might be useful.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest