Can't build nds examples

support for the ARM toolchain
Post Reply
Tael_
Posts: 2
Joined: Mon Jul 20, 2009 10:58 pm

Can't build nds examples

Post by Tael_ » Mon Jul 20, 2009 11:00 pm

I got some errors when trying to build the nds examples :
Last login: Mon Jul 20 23:56:22 on ttys000
Tael67:~ pierre$ cd '/opt/devkitpro/examples/nds/'
Tael67:nds pierre$ make
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/3D_Both_Screens/3D_Both_Screens.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/BoxTest/BoxTest.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Display_List/Display_List.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Display_List_2/Display_List_2.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Env_Mapping/Env_Mapping.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Mixed_Text_3D/Mixed_Text_3D.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Ortho/Ortho.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Paletted_Cube/Paletted_Cube.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Picking/Picking.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Simple_Quad/Simple_Quad.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Simple_Tri/Simple_Tri.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Textured_Cube/Textured_Cube.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Textured_Quad/Textured_Quad.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Toon_Shading/Toon_Shading.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson01/lesson01.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson02/lesson02.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson03/lesson03.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson04/lesson04.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson05/lesson05.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson06/lesson06.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson07/lesson07.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson08/lesson08.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson09/lesson09.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson10/lesson10.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson10b/lesson10b.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson11/lesson11.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Backgrounds/16bit_color_bmp/16bit_color_bmp.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Backgrounds/256_color_bmp/256_color_bmp.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Backgrounds/Double_Buffer/Double_Buffer.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Backgrounds/all_in_one/all_in_one.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Backgrounds/rotation/rotation.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Printing/ansi_console/ansi_console.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Printing/console_windows/console_windows.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Printing/custom_font/custom_font.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Printing/print_both_screens/print_both_screens.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Printing/rotscale_text/rotscale_text.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/allocation_test/allocation_test.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/animate_simple/animate_simple.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/bitmap_sprites/bitmap_sprites.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/fire_and_sprites/fire_and_sprites.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/simple/simple.nds' is up to date.
template.c
arm-eabi-gcc -MMD -MP -MF /opt/devkitpro/examples/nds/Graphics/Sprites/sprite_extended_palettes/build/template.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/opt/devkitpro/examples/nds/Graphics/Sprites/sprite_extended_palettes/include -I/opt/devkitpro/libnds/include -I/opt/devkitpro/libnds/include -I/opt/devkitpro/examples/nds/Graphics/Sprites/sprite_extended_palettes/build -DARM9 -c /opt/devkitpro/examples/nds/Graphics/Sprites/sprite_extended_palettes/source/template.c -o template.o
/opt/devkitpro/examples/nds/Graphics/Sprites/sprite_extended_palettes/source/template.c: In function 'main':
/opt/devkitpro/examples/nds/Graphics/Sprites/sprite_extended_palettes/source/template.c:42: error: incompatible types when assigning to type '_palette' from type 'int'
/opt/devkitpro/examples/nds/Graphics/Sprites/sprite_extended_palettes/source/template.c:43: error: incompatible types when assigning to type '_palette' from type 'int'
make[4]: *** [template.o] Error 1
make[3]: *** [build] Error 2
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [examples] Error 1
Tael67:nds pierre$
Is there something wrong with my install ?
(I'm using Mac OS 10.5.7)

mischan
Posts: 1
Joined: Wed Jul 22, 2009 10:37 am

Re: Can't build nds examples

Post by mischan » Wed Jul 22, 2009 10:42 am

no, this is not a problem with your setup, but a bug that slipped into the code of the sprite_extended_palette example.

to get it working you have to change two files:

/opt/devkitpro/examples/nds/Graphics/Sprites/sprite_extended_palettes/source/template.c

and

/opt/devkitpro/libnds/include/nds/arm9/video.h

you can lookup the changes here:

for video.h:
http://devkitpro.svn.sourceforge.net/vi ... 44&r2=3666

for template.c:
http://devkitpro.svn.sourceforge.net/vi ... 44&r2=3667

cheers,
m

Tael_
Posts: 2
Joined: Mon Jul 20, 2009 10:58 pm

Re: Can't build nds examples

Post by Tael_ » Wed Jul 22, 2009 1:47 pm

Thank you. It's working.
But now, there is a problem with song_events_example.nds :
Tael67:nds pierre$ make
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/3D_Both_Screens/3D_Both_Screens.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/BoxTest/BoxTest.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Display_List/Display_List.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Display_List_2/Display_List_2.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Env_Mapping/Env_Mapping.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Mixed_Text_3D/Mixed_Text_3D.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Ortho/Ortho.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Paletted_Cube/Paletted_Cube.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Picking/Picking.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Simple_Quad/Simple_Quad.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Simple_Tri/Simple_Tri.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Textured_Cube/Textured_Cube.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Textured_Quad/Textured_Quad.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/3D/Toon_Shading/Toon_Shading.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson01/lesson01.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson02/lesson02.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson03/lesson03.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson04/lesson04.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson05/lesson05.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson06/lesson06.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson07/lesson07.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson08/lesson08.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson09/lesson09.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson10/lesson10.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson10b/lesson10b.nds' is up to date.
make[5]: `/opt/devkitpro/examples/nds/Graphics/3D/nehe/lesson11/lesson11.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Backgrounds/16bit_color_bmp/16bit_color_bmp.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Backgrounds/256_color_bmp/256_color_bmp.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Backgrounds/Double_Buffer/Double_Buffer.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Backgrounds/all_in_one/all_in_one.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Backgrounds/rotation/rotation.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Printing/ansi_console/ansi_console.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Printing/console_windows/console_windows.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Printing/custom_font/custom_font.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Printing/print_both_screens/print_both_screens.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Printing/rotscale_text/rotscale_text.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/allocation_test/allocation_test.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/animate_simple/animate_simple.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/bitmap_sprites/bitmap_sprites.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/fire_and_sprites/fire_and_sprites.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/simple/simple.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/sprite_extended_palettes/sprite_extended_palettes.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/Sprites/sprite_rotate/sprite_rotate.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/Graphics/capture/ScreenShot/ScreenShot.nds' is up to date.
make[3]: `/opt/devkitpro/examples/nds/RealTimeClock/Watch/Watch.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/audio/maxmod/audio_modes/audio_modes.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/audio/maxmod/basic_sound/basic_sound.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/audio/maxmod/reverb/reverb.nds' is up to date.
grit /opt/devkitpro/examples/nds/audio/maxmod/song_events_example/gfx/ball.png -fts -oball
ball.s
arm-eabi-gcc -MMD -MP -MF /opt/devkitpro/examples/nds/audio/maxmod/song_events_example/build/ball.d -x assembler-with-cpp -g -mthumb -mthumb-interwork -c ball.s -o ball.o
template.c
arm-eabi-gcc -MMD -MP -MF /opt/devkitpro/examples/nds/audio/maxmod/song_events_example/build/template.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -iquote /opt/devkitpro/examples/nds/audio/maxmod/song_events_example/include -I/opt/devkitpro/libnds/include -I/opt/devkitpro/examples/nds/audio/maxmod/song_events_example/build -DARM9 -c /opt/devkitpro/examples/nds/audio/maxmod/song_events_example/source/template.c -o template.o
linking song_events_example.elf
built ... song_events_example.arm9

Nintendo DS rom tool 1.41 - May 1 2009
by Rafael Vuijk, Dave Murphy, Alexei Karpenko
built ... song_events_example.nds
make[4]: `/opt/devkitpro/examples/nds/audio/maxmod/song_events_example2/song_events_example2.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/audio/maxmod/streaming/streaming.nds' is up to date.
make[3]: `/opt/devkitpro/examples/nds/audio/micrecord/micrecord.nds' is up to date.
make[3]: `/opt/devkitpro/examples/nds/card/eeprom/eeprom.nds' is up to date.
make[3]: `/opt/devkitpro/examples/nds/debugging/exceptionTest/exceptionTest.nds' is up to date.
make[2]: `/opt/devkitpro/examples/nds/ds_motion/ds_motion.nds' is up to date.
make[3]: `/opt/devkitpro/examples/nds/dswifi/ap_search/ap_search.nds' is up to date.
make[3]: `/opt/devkitpro/examples/nds/dswifi/autoconnect/autoconnect.nds' is up to date.
make[3]: `/opt/devkitpro/examples/nds/dswifi/httpget/httpget.nds' is up to date.
make[3]: `/opt/devkitpro/examples/nds/filesystem/embedded_gbfs/embedded_gbfs.nds' is up to date.
make[4]: `/opt/devkitpro/examples/nds/filesystem/libfat/libfatdir/libfatdir.nds' is up to date.
linking nitrodir.elf
/opt/devkitpro/devkitARM/lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: cannot find -lfilesystem
collect2: ld returned 1 exit status
make[4]: *** [/opt/devkitpro/examples/nds/filesystem/nitrofs/nitrodir/nitrodir.elf] Error 1
make[3]: *** [build] Error 2
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [examples] Error 1

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

Re: Can't build nds examples

Post by WinterMute » Wed Jul 22, 2009 5:24 pm

That's actually the nitrodir example, the song events one is building fine.

You just need to install libfilesystem in the libnds directory - unfortunately I can't link directly after the latest set of changes at sourceforge.

http://sourceforge.net/projects/devkitpro/files/
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest