Hi:
I have built madplay successfully. The following is building steps
libid3tag: ./configure --disable-debugging --host=arm-elf --build=arm CC=arm-elf-gcc RANLIB=/usr/local/bin/arm-elf-ranlib LD=/usr/local/bin/arm-elf-ld make make install
libmad: ./configure --enable-speed --disable-debugging --enable-aso --enable-fpm=arm --host=arm-elf --build=arm CC=arm-elf-gcc RANLIB=/usr/local/bin/arm-elf-ranlib LD=/usr/local/bin/arm-elf-ld make make install
madplay: ./configure --disable-debugging --disable-mmap --host=arm-elf --build=arm CC=arm-elf-gcc RANLIB=/usr/local/bin/arm-elf-ranlib LD=/usr/local/bin/arm-elf-ld (modify HAVE_DECL_FEOF_UNLOCKED form 1 to 0 in config.h, because 1 will lead to make error) make
Following above steps can build madplay execution file, but when putting to embedded system, it can't run.
error message on emabedded system: $>BINFMT_FLAT: bad magic/rev (0x1010161, need 0x4) $>BINFMT_FLAT: bad magic/rev (0x1010161, need 0x4) $>madplay: Exec format error
Who can tell me where I made a mistake?? Whether my building steps is right??
Thanks for any reply.
best regards, TsaiMC
----- Original Message ----- From: "Ming Chi Tsai" tsaimc@locust.csie.ncku.edu.tw To: mad-user@lists.mars.org Sent: Sunday, May 30, 2004 1:43 AM Subject: Re: [mad-user] Some make problems
Sorry for my typing error. It is really " export LDFLAGS='-L/usr/local/lib/' ".
I try many ways to assign lib path, but it is also can not find library. I am sure the lib path is correct, because I use uclibc to build madplay
has
not any error. So, I guess this problen might be related to configure setting.
----- Original Message ----- From: "Rob Leslie" rob@mars.org To: mad-user@lists.mars.org Sent: Sunday, May 30, 2004 12:48 AM Subject: Re: [mad-user] Some make problems
On May 29, 2004, at 9:35 AM, Ming Chi Tsai wrote:
I have a project that port madplay into embedded system(CPU:ARM, OS:uclinux). I know madplay can be build on uclinux using uclibc and arm cpu using arm-linux-gcc respectively. But, when I port madplay to embedded system with ARM and uclinux using arm-elf-gcc, I encountered some problems. The following is my make step:
I use cygwin and arm-elf-gcc to build my project.
export CPPFLAGS='-I/usr/local/include/' export LDFLAGS='-I/usr/local/lib/'
Try LDFLAGS='-L/usr/local/lib' instead (note -L not -I).
Where am I wrong with the configure setting?? Whether madplay can't be ported to embedded system with ARM and
uclinux
or I should use anyother corse compiler.
It should be able to work.
-- Rob Leslie rob@mars.org