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 > Problem compiling arm example code

#170163 - shadowghost21 - Fri Sep 04, 2009 9:46 pm

I am at my wits end. I wish OSX/Unix installs were as nice as a windows double click installer :( Thanks in advance for any help I can get. I am using devKitPro r23b(I have tried 22,23,26) and libnds 1.3.1(have also tried 1.3.3) Running OSX 10.5.8 Enviroment variables are
Code:

export PATH=$PATH:"//usr/local/mysql/bin"
export EDITOR="nano"
export DEVKITPRO="//Users/shadowghost21/devkitPro"
export DEVKITARM=${DEVKITPRO}/devkitARM
export LIBNDS=${DEVKITPRO}/libnds
export LIBNDS_LIB=${LIBNDS}/lib
export LIBNDS_INCLUDE=${LIBNDS}/include


I am trying to compile the 2D/hello_world example.
These are my errors:
Code:

Graphite:hello_world shadowghost21$ make
main.cpp
arm-eabi-g++ -MMD -MP -MF /Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/build/main.d -g -Wall -O2 -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/include -I/Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/build -I//Users/shadowghost21/devkitPro/libnds/include -I//Users/shadowghost21/devkitPro/libnds/include -I/Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/source/main.cpp -o main.o
/Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/source/main.cpp: In function 'int main()':
/Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/source/main.cpp:55: error: 'SUB_BG0_CR' was not declared in this scope
/Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/source/main.cpp:60: error: 'consoleInitDefault' was not declared in this scope
/Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/source/main.cpp:69: warning: 'touchPosition touchReadXY()' is deprecated (declared at //Users/shadowghost21/devkitPro/libnds/include/nds/arm9/input.h:89)
/Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/source/main.cpp:69: warning: 'touchPosition touchReadXY()' is deprecated (declared at //Users/shadowghost21/devkitPro/libnds/include/nds/arm9/input.h:89)
/Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/source/main.cpp:73: error: 'struct touchPosition' has no member named 'x'
/Users/shadowghost21/Projects/nds-examples-20060817/Graphics/2D/hello_world/source/main.cpp:74: error: 'struct touchPosition' has no member named 'y'
make[1]: *** [main.o] Error 1
make: *** [build] Error 2
[/code]

#170170 - RyanFox - Sat Sep 05, 2009 6:54 am

Please try installing with the script at the bottom of this page: http://forum.gbadev.org/viewtopic.php?t=16818