Hello Wookey,
have u tried to compile this? any success?
first i could not get the configure scripts to recognize the compiler to
be a cross-compiler. now that it does, i get a error msg saying that the
compiler cannot produce excutables on account of installation or
configuration error. i checked the configure.in and configure files -
the macro AC_TRY_COMPILE and AC_TRY_LINK seem to be the culprits. but i
dont seem to be able to bypass them for it will entail changing a lot of
code in the configure and makefile scripts.
this is the output:
hd-dec:/home/mgc/src/mpeg4ip-0.9.1# CC=arm-linux-gcc ./configure
--build=i386-linux --host=arm-linux --target=arm-linux
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for gcc... arm-linux-gcc
checking whether the C compiler (arm-linux-gcc ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
this is the config.log:
configure:592: checking for a BSD compatible install
configure:645: checking whether build environment is sane
configure:702: checking whether make sets ${MAKE}
configure:748: checking for working aclocal
configure:761: checking for working autoconf
configure:774: checking for working automake
configure:787: checking for working autoheader
configure:800: checking for working makeinfo
configure:821: checking host system type
configure:842: checking target system type
configure:864: checking for gcc
configure:977: checking whether the C compiler (arm-linux-gcc ) works
configure:993: arm-linux-gcc -o conftest conftest.c 1>&5
/usr/arm-linux/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 988 "configure"
#include "confdefs.h"
any suggestions? thanx in advance,
[EMAIL PROTECTED] wrote:
> On Wed 21 Nov, TheMaverickMind wrote:
>
>>We desprately need help:
>>
>>We are working on an application to distribute MP4 video on the Compaq
>>iPAQ. We want to install the mp4player [available on
>>mpeg4ip.sourceforge.net] on the iPAQ which is running arm-linux. We
>>decided to cross-compile the application from our Debian Potato hosts
>>[kernel version 2.2.17 and kernel version 2.2.19Pre17 both available].
>>
>>We have set up the toolchain available from Debian including the glibc,
>>gcc, and binutils.
>>
>
> Which toolchain exactly? personally I favour the emdebian (x86->arm)
> toolchain (http://www.emdebian.org/ ) which is apt-gettable and reliable. See
> http://www.aleph1.co.uk/armlinux/book/x1768.html for details of this. I
> assume your host is an x86 machine?
>
>
>>we have also downloaded the kernel headers and libraries. but we are
>>unable to compile mp4player for arm-linux.
>>
>
> You understand that you need the kernel headers and libraries that match the
> _arm_ environment you are compiling for, not the host machine? ie you need
> 2.4.whatever kernel headers, not the 2.2.x that matches your (x86?) potato
> box.
>
> The debian tool dpkg-cross is useful for stripping the libraries and headers
> out of a binary-arm package to make a package with just those in which can be
> installed and deinstalled in the usual way. This lets you control the
> available headers and libs using the package-management system, which is
> handy if you do much of it.
>
>
>>What options are to be used while running the configure and make commands?
>>
>
> ./configure arm-linux is usually sufficient, if configure complains of unkown
> targets try: ./configure arm-unknown-linux-gnu
>
> The detailed options to get it to do what you want are:
> --build specifies the machine you want to build on
> --host specifies the machine you want the compiled program to run on
> --target (only for compilers and the like) controls the machine that the
> newly-built compiler will compile for for.
>
> The autoconf docs explain this in more detail in the 'Manual configuration'
> section.
>
>
>>in general, for applications that use autoconf and automake to configure
>>the makefiles, how do we cross compile to arm-linux?
>>
>
> Well, first you try the above options, but in many cases (where the configure
> stuff was not written with cross-compiling in mind), you will need to modify
> the makefiles to get it to do the right thing, eg to specify the directory
> where it will find your arm header files and libraries.
>
>
>>Help is reqd urgently can anyone please guide us? Is any further
>>information required?
>>
>
> Well, I was going to download this and try it myself to see what went wrong
> but it's 7MB and hasn't finished yet, so see if the above helps...
>
> Wookey
>
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.