Very good idea. I'm working on it
Gabriele

Da: Phil Quiney [mailto:[EMAIL PROTECTED]
Inviato: giovedì 25 settembre 2008 9.31
A: Shakir Shaikh; [email protected]; Gabriele 
Filosofi
Oggetto: RE: cross-compile mpg123 for the DaVinci on the host

Hi,

As the target does not support ALSA why don't you add '--with-audio=oss' to the 
list of configure options. This should prevent it building ALSA support and 
therefore should not need to use libasound.


Regards

Phil Q

Phil Quiney, Senior Software Engineer
Trinity Convergence
Cambridge Business Park
Cowley Road
Cambridge CB4 0WZ, UK
T: +44(0)1223-435536
F: +44(0)1223-435560
www.trinityconvergence.com<http://www.trinityconvergence.com/>


________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shakir Shaikh
Sent: 24 September 2008 20:11
To: [email protected]; 'Gabriele Filosofi'
Subject: RE: cross-compile mpg123 for the DaVinci on the host
Gabriele,

See my response below.

-Shakir

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabriele Filosofi
Sent: 24 September 2008 21:13
To: [email protected]
Subject: cross-compile mpg123 for the DaVinci on the host

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
[Shakir] Problem is in the above line, "/usr/lib/libasound.so". Your Makefile 
is trying to link this library which is obviously not meant for your target. I 
think your configure script has not generated Makefile correctly.
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
  [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
  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/>
 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~




No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.7.0/1685 - Release Date: 22-09-2008 16:08
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to