[spook-l] how to cross compile spook

=?gb2312?B?1twgw/c=?= yannizm at hotmail.com
Thu Mar 2 21:21:31 EST 2006




>From: Leopold Palomo Avellaneda <lepalom at wol.es>
>Reply-To: lepalom at wol.es, spook-l at litech.org
>To: spook-l at litech.org
>Subject: Re: [spook-l] how to cross compile spook
>Date: Thu, 2 Mar 2006 21:06:46 +0100
>
>A Dijous 02 Març 2006 16:49, ��va escriure:
> > >for example:
> > >
> > >System types:
> > >   --build=BUILD     configure for building on BUILD [guessed]
> > >   --host=HOST       cross-compile to build programs to run on HOST
> >
> > [BUILD]
> >
> > >./configure --host=arm-linux
> >
> > I tried ,I typed ./configure --host=arm-linux (--build=arm),but there 
is a
> > wrong message when it is checking:
> >
> > "checking XviD version 1.0.0... configure: error: cannot run test 
program
> > while cross compiling
> > See `config.log' for more details.
> > "
> > what is the problem?
> >
> > by the way ,I use
> >
> > "./configure --build=arm --host=localhost CC=arm-linux-gcc
> > CFLAGS=-I/usr/local/arm/2.95.3/arm-linux/include -fPIC 
-I/kernel/include
> > LDFLAGS=-L/usr/local/arm/2.95.3/arm-linux/lib"
> >
> > to cross-compile xvidcore-1.1.0 to produce libxvidcore.so.4.1 with
> > arm-linux-gcc 2.95.3
> >
>That's look good. So now, you have the xvid library compiled for arm with
>2.95. So, the you must tell to spook, that in the configure script, search
>the xvid lib whereas the libxvidcore.so.4.1 with arm-linux-gcc 2.95.3 is
>located. Think in midn, that you will need to move also this lib to the 
arm
>box.
>
you are right!actually,I do the same as you say,after generate the 
libxvidcore.so.4.1,I put it into two place,one is put into 
/../arm-linux/lib ,the other is put into arm box,then I use
 
"make CC=arm-linux-gcc CFLAGS=-I/arm/kernel/include 
-I/usr/local/arm/2.95.3/arm-linux/include 
LDFLAGS=-L/usr/local/arm/2.95.3/arm-linux/lib"

to cross-compile,but it doesn't work,the wrong message is "arm-linux-gcc£º
cannot specify -o with -c or -S and multiple compilations" 

I think the main problem is the inappropriate makefile

_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£  http://www.hotmail.com  




More information about the spook-l mailing list