Hello,
I am trying to integrate libmad into my MP3 player project - I am trying to presuade make to compile using arm-elf-gcc & co instead of normal gcc - however if I do
./configure --target=arm-elf --enable-fpm=arm
The autoconf script didn't change the compiler used by make therefore I can't compile it...
How can I change the libmad so that it will use arm-elf-gcc, etc instead of normal gcc?
Thanks!
On Wed, 28 Feb 2001, Sunny Chan wrote:
Hello,
I am trying to integrate libmad into my MP3 player project - I am trying to presuade make to compile using arm-elf-gcc & co instead of normal gcc
however if I do
./configure --target=arm-elf --enable-fpm=arm
The autoconf script didn't change the compiler used by make therefore I can't compile it...
What you should do is:
CC=arm-elf-gcc RANLIB=arm-elf-ranlib ./configure arm-elf --enable-fpm=arm
Nicolas
Hello Nicolas,
At 17:22 28/02/2001, Nicolas Pitre wrote:
On Wed, 28 Feb 2001, Sunny Chan wrote:
Hello,
I am trying to integrate libmad into my MP3 player project - I am trying to presuade make to compile using arm-elf-gcc & co instead of normal gcc
however if I do
./configure --target=arm-elf --enable-fpm=arm
The autoconf script didn't change the compiler used by make therefore I can't compile it...
What you should do is:
CC=arm-elf-gcc RANLIB=arm-elf-ranlib ./configure arm-elf --enable-fpm=arm
Nicolas
Tried that but then it says:
configure: error: installation of configuration problem: C compiler cannot create executables.
Maybe we should actually modify the autoconf files to take care of cross compiling directly?
+---------------------------+---------------------------------+ |Sunny Chan also Sunny Computer Laboratory | |Computing (MEng) Year 4 | "Power of Computing is yours" | |Imperial College, London | http://www.sunnycomputer.co.uk | +-------------------------------------------------------------+ email: sunny_chan@usa.net ICQ UIN: 2110678 mobile: 07887 704088
On Wed, 28 Feb 2001, Sunny Chan wrote:
What you should do is:
CC=arm-elf-gcc RANLIB=arm-elf-ranlib ./configure arm-elf --enable-fpm=arm
Tried that but then it says:
configure: error: installation of configuration problem: C compiler cannot create executables.
So you should investigate your cross compiler installation. At this point you might see the autoconf script for the test it's trying to perform and why it doesn't work for you.
Maybe we should actually modify the autoconf files to take care of cross compiling directly?
It's already made for that. The above is the standard usage, except maybe for ranlib which add to be added in this case.
Nicolas