Help please!

Hello all:

if I do this

sdl-config --cflags

-I/data/omap_development/a0271087/2430fs_L8.8/target/include/SDL
-D_REENTRANT

sdl-config --libs
-L/data/omap_development/a0271087/2430fs_L8.8/target/lib
-Wl,-rpath,/data/omap_development/a0271087/2430fs_L8.8/target/lib -lSDL
-lpthread -lm -ldl -L/data/omap_development/a0271087/2430fs_L8.8/target/lib
-lX11 -lXext

however when I compile a simple test named sdltest.c this

arm_v6_vfp_le-gcc sdltest.c -o sdltest sdl-config --cflags --static-libs

it gives me an error saying it can’t find
skipping incompatible
/data/omap_development/a0271087/2430fs_L8.8/target/lib/libSDL.a when
searching for -lSDL

when searching for -lSDL
/data/omapts/linux/arm-tc/mv-v6_vfp_le-001/bin/…/lib/gcc/armv6fl-montavista-linuxeabi/3.4.3/…/…/…/…/armv6fl-montavista-linuxeabi/bin/ld:
cannot find -lSDL

any ideas??

thanks,

“Carlos Santa” <santa.cm at gmail.com> wrote:

-L/data/omap_development/a0271087/2430fs_L8.8/target/lib

!=

/data/omapts/linux/arm-tc/mv-v6_vfp_le-001/bin/…/lib/gcc/armv6fl-montavista-linuxeabi/3.4.3/…/…/…/…/armv6fl-montavista-linuxeabi/bin/

for me this looks as your cross devel-libs have been moved away from
their original install location. you could try to hack your sdl-config
script or pass the correct -L path to gcc by hand, instead of using
sdl-config --(static-)libs

hope this helps …
clemens