cross-compile mpg123 for the DaVinci on the host

Gabriele Filosofi GabrieleF at cosmed.it
Wed Sep 24 10:43:14 CDT 2008


I need some help on how to recompile mpg123 for the DaVinci on the host.
The source code comes with a configure binary that should be executed with a lot of optional parameters.
I've choosen the following

$ ./configure
--host=i686-pc-linux-gnu
--target=armv5tl-montavista-linuxeabi
--prefix=/home/gabriele/workdir/filesy_2.6.25/usr/local
CC="${DEVKIT}/arm/v5t_le/bin/arm_v5t_le-gcc"
LDFLAGS="-L${DEVKIT}/arm/v5t_le/target/usr/lib"
CFLAGS="-O3 -mlittle-endian -march=armv5t -mtune=arm9tdmi -nostdinc -B${DEVKIT}/arm/v5t_le/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3 -isystem ${DEVKIT}/arm/v5t_le/target/usr/include -isystem ${DEVKIT}/arm/v5t_le/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/include -I${DEVKIT}/arm/v5t_le/target/usr/include -I${DEVKIT}/arm/v5t_le/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/include"

where
EXPORT = /opt/dm644x/mv_pro_4.0.1/montavista/pro/devkit/

The above configure run creates a Makefile with the right cross-compiler references. But when I do

$ make

Making all in libltdl
make[1]: Entering directory `/home/gabriele/workdir/filesys_2.6.25/opt/mpg123/mpg123-1.5.1/libltdl'
make  all-am
make[2]: Entering directory `/home/gabriele/workdir/filesys_2.6.25/opt/mpg123/mpg123-1.5.1/libltdl'
make[2]: Leaving directory `/home/gabriele/workdir/filesys_2.6.25/opt/mpg123/mpg123-1.5.1/libltdl'
make[1]: Leaving directory `/home/gabriele/workdir/filesys_2.6.25/opt/mpg123/mpg123-1.5.1/libltdl'
Making all in src
make[1]: Entering directory `/home/gabriele/workdir/filesys_2.6.25/opt/mpg123/mpg123-1.5.1/src'
make  all-recursive
make[2]: Entering directory `/home/gabriele/workdir/filesys_2.6.25/opt/mpg123/mpg123-1.5.1/src'
Making all in output
make[3]: Entering directory `/home/gabriele/workdir/filesys_2.6.25/opt/mpg123/mpg123-1.5.1/src/output'
/bin/sh ../../libtool --tag=CC --mode=link /opt/dm644x/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc  -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math  -O3 -mlittle-endian -march=armv5t -mtune=arm9tdmi -nostdinc -B/opt/dm644x/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3 -isystem /opt/dm644x/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/usr/include -isystem /opt/dm644x/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/include -I/opt/dm644x/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/target/usr/include -I/opt/dm644x/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/include   -o output_alsa.la -rpath /opt/dm644x/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/lib/mpg123 -module -avoid-version -export-dynamic  output_alsa_la-alsa.lo -lasound  -lm
/opt/dm644x/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc -shared  .libs/output_alsa_la-alsa.o  /usr/lib/libasound.so -lm  -mlittle-endian -march=armv5t -mtune=arm9tdmi -Wl,-soname -Wl,output_alsa.so -o .libs/output_alsa.so
make[3]: Leaving directory `/home/gabriele/workdir/filesys_2.6.25/opt/mpg123/mpg123-1.5.1/src/output'
make[2]: Leaving directory `/home/gabriele/workdir/filesys_2.6.25/opt/mpg123/mpg123-1.5.1/src'
make[1]: Leaving directory `/home/gabriele/workdir/filesys_2.6.25/opt/mpg123/mpg123-1.5.1/src'
/usr/lib/libasound.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [output_alsa.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Can anyone please give me some tips? Where is the problem?

Thanks and regards!

Gabriele

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
  Ing. Gabriele Filosofi
  GabrieleF at cosmed.it<mailto:GabrieleF at cosmed.it>
  COSMED srl, R&D Department
  Via dei Piani di Monte Savello, 37
  00041 - Pavona di Albano, Rome - ITALY
  Voice: +39-06 931 5492, Fax: +39-06 931 4580
  http://www.cosmed.it<http://www.cosmed.it/>
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/20080924/0a8ace65/attachment-0001.htm


More information about the Davinci-linux-open-source mailing list