problem with devkitARM 23b on OSX

Post Reply
first
Posts: 1
Joined: Thu Jun 12, 2008 6:56 am

problem with devkitARM 23b on OSX

Post by first » Thu Jun 12, 2008 7:03 am

First of all i have all the exports in the profile and such.

Code: Select all

# FOR DEVKITARM
DEVKITPRO=/usr/local/devkitpro
DEVKITARM=${DEVKITPRO}/devkitARM
LIBNDS=${DEVKITPRO}/libnds
LIBNDS_LIB=${LIBNDS}/lib
LIBNDS_INCLUDE=${LIBNDS}/include
export DEVKITARM
export DEVKITPRO
export LIBNDS
export LIBNDS_LIB
export LIBNDS_INCLUDE
And the problem is "ld" cant find the libraries.

Here the output trying to compile the nds-examples:

Code: Select all

grit /Users/iooo/Projects/nds/nds-examples/Graphics/2D/16bit_color_bmp/data/drunkenlogo.png -fts -odrunkenlogo
STATUS: ---grit v0.8 ---
STATUS: Individual runs.
STATUS: Input file /Users/iooo/Projects/nds/nds-examples/Graphics/2D/16bit_color_bmp/data/drunkenlogo.png
STATUS: Output file: 'drunkenlogo'.
STATUS: Started run at: 2008-06-12, 08:01:16
STATUS: Validatating gr.
WARNING:   No explicit symbol name. In overwrite mode, so using dst title.
STATUS: Validation succeeded.
STATUS: Preparing data.
STATUS: Work-DIB creation.
WARNING:   converting from 24 bpp to 16 bpp.
STATUS: converting to: 16bpp BGR, alpha=1.
STATUS: Work-DIB creation complete: 256x192@16.
STATUS: Tile preparation.
STATUS: Tile preparation complete.
STATUS: Graphics preparation.
STATUS: Compressing: 01
STATUS: Graphics preparation complete.
STATUS: Data preparation complete.
STATUS: Export to GNU asm: drunkenlogo into drunkenlogo.s .
STATUS: Run completed :).
STATUS: Done!
drunkenlogo.s
arm-eabi-gcc -MMD -MP -MF /Users/iooo/Projects/nds/nds-examples/Graphics/2D/16bit_color_bmp/build/drunkenlogo.d -x assembler-with-cpp -g -mthumb -mthumb-interwork -c drunkenlogo.s -o drunkenlogo.o
main.cpp
arm-eabi-g++ -MMD -MP -MF /Users/iooo/Projects/nds/nds-examples/Graphics/2D/16bit_color_bmp/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/Users/iooo/Projects/nds/nds-examples/Graphics/2D/16bit_color_bmp/include -I/usr/local/devkitpro/libnds/include -I/usr/local/devkitpro/libnds/include -I/Users/iooo/Projects/nds/nds-examples/Graphics/2D/16bit_color_bmp/build -DARM9 -fno-rtti -fno-exceptions -c /Users/iooo/Projects/nds/nds-examples/Graphics/2D/16bit_color_bmp/source/main.cpp -o main.o
linking 16bit_color_bmp.elf
/usr/local/devkitpro/devkitARM/bin/../lib/gcc/arm-eabi/4.3.0/../../../../arm-eabi/bin/ld: cannot find -lg
collect2: ld returned 1 exit status
make[4]: *** [/Users/iooo/Projects/nds/nds-examples/Graphics/2D/16bit_color_bmp/16bit_color_bmp.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: 1989
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: problem with devkitARM 23b on OSX

Post by WinterMute » Sat Jun 28, 2008 9:34 pm

How did you extract the tarball?

Problems like this usually turn out to be using something other than tar, I believe it's related to symbolic links in the archive.

See http://wiki.devkitpro.org/index.php/Get ... /devkitARM ( still a work in progress, sorry )
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest