Problems with SDL_mixer building in Mokomakefile
vloly arti
cloly at 3mhz.net
Sat Jun 7 23:01:04 CEST 2008
The Problem :
Hallo i have the following problem with building the SDL_mixer when
making openmoko-devel-image
there's a log message from the error :
| ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t
-shared .libs/load_aiff.o .libs/load_voc.o .libs/load_ogg.o
.libs/mixer.o .libs/music.o .libs/music_cmd.o .libs/music_ogg.o
.libs/wavestream.o .libs/effect_position.o .libs/effect_stereoreverse.o
.libs/effects_internal.o -Wl,--whole-archive
timidity/.libs/libtimidity.a -Wl,--no-whole-archive -Wl,--rpath
-Wl,/home/vmihaylov/devel/moko/build/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib
-pthread
-L/home/vmihaylov/devel/moko/build/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib
-L/usr/lib -ldl
/home/vmihaylov/devel/moko/build/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib/libvorbisfile.so
/home/vmihaylov/devel/moko/build/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib/libvorbis.so
/home/vmihaylov/devel/moko/build/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib/libogg.so
-lSDL -lpthread
-L/home/vmihaylov/devel/moko/build/tmp/staging/arm-angstrom-linux-gnueabi/lib
/home/vmihaylov/devel/moko/build/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib/libmikmod.so
-march=armv4t -mtune=arm920t -Wl,-rpath-link
-Wl,/home/vmihaylov/devel/moko/build/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib
-Wl,-O1 -Wl,-rpath
-Wl,/home/vmihaylov/devel/moko/build/tmp/staging/arm-angstrom-linux-gnueabi/usr/lib
-Wl,-soname -Wl,libSDL_mixer-1.2.so.0 -Wl,-version-script
-Wl,.libs/libSDL_mixer.ver -o .libs/libSDL_mixer-1.2.so.0.2.4
|
/home/vmihaylov/devel/moko/build/tmp/cross/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld:
skipping incompatible /usr/lib/libc.so when searching for -lc
| /usr/lib/libc.a: could not read symbols: File format not recognized
| collect2: ld returned 1 exit status
| make[1]: *** [libSDL_mixer.la] Error 1
| make[1]: Leaving directory
`/home/vmihaylov/devel/moko/build/tmp/work/armv4t-angstrom-linux-gnueabi/libsdl-mixer-1.2.6-r2/SDL_mixer-1.2.6'
| make: *** [all-recursive] Error 1
| FATAL: oe_runmake failed
I tried many things. I realized, that the problem comes from the env.
variable LIBS
$ cat config.log | grep LIBS
LIBS=' -L/usr/lib -lmikmod'
(I'm Attaching the whole config.log)
I tried to set the variable in the Makefile (of the program), to the
proper value, but it didn't work. I think it didn't use it.
Hardware, and OS:
There's a uname -a of my system :
Linux toblerone 2.6.22-gentoo-r8 #6 SMP Tue Jan 29 18:47:18 EET 2008
x86_64 AMD Turion(tm) 64 Mobile Technology MK-36 AuthenticAMD GNU/Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 78805 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-devel/attachments/20080608/ee4c02a6/attachment-0001.bin
More information about the openmoko-devel
mailing list