<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jun 12, 2013 at 10:27 AM, 董 瑞涛 <span dir="ltr"><<a href="mailto:donreason@gmail.com" target="_blank">donreason@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">HI,<br>
<br>
when I cross-compile libx264, there are some error. I have to changed the MakeFile to proceed:<br>
<br>
1. add a space after each $(LD) and $(AR)<br>
2. add "-r" after each $(AR)<br>
3. delete $@ after each $(LD)<br>
<br>
when make, I cannot use LD=/dir/powerpc-linux-ld, but only LD=/dir/powerpc-linux-gcc. Or other wise it cannot pass.<br>
here is the message, will someone help me?<br>
<br>
#./configure --enable-static --host=ppc-linux --disable-asm --prefix=/usr/local/powerpc-none-linux-gnuspe<br>
platform: PPC<br>
system: LINUX<br>
cli: yes<br>
libx264: internal<br>
shared: no<br>
static: yes<br>
asm: no<br>
interlaced: yes<br>
avs: avxsynth<br>
lavf: no<br>
ffms: no<br>
gpac: no<br>
gpl: yes<br>
thread: posix<br>
opencl: yes<br>
filters: crop select_every<br>
debug: no<br>
gprof: no<br>
strip: no<br>
PIC: no<br>
visualize: no<br>
bit depth: 8<br>
chroma format: all<br>
<br>
#make CC=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-gcc RANLIB=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ranlib LD=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ld AR=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-ar STRIP=/usr/local/powerpc-none-linux-gnuspe/bin/powerpc-none-linux-gnuspe-strip<br>
<br></blockquote><div><br><div><div>You should not be specifying any of CC, RANLIB, LD, AR, or STRIP to make.<br></div></div>this would explain why you're encountering the errors you've listed above to
where you're modifying the makefile to work around them.<br><br>Utilize the --cross-prefix option in ./configure<br><br></div><div>since gcc is used to link with by default in this fashion as well, you are likely to no longer encounter the link issues you've listed as well.<br>
</div><div><br></div></div><br></div></div>