[Ffmpeg-devel] Re: Cross compiling for ARM--Problem with ffmpeg

Bo Liu platinum.liu
Wed Feb 7 12:08:22 CET 2007


>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 6 Feb 2007 17:51:20 +0100
> From: "Guillaume POIRIER" <poirierg at gmail.com>
> Subject: Re: [Ffmpeg-devel] [Help]Cross compiling for ARM--Problem
>        with ffmpeg
> To: "FFmpeg development discussions and patches"
>        <ffmpeg-devel at mplayerhq.hu>
> Message-ID:
>        <4e03026a0702060851j1ec58620p440f326c873b97dd at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hi,
>
> On 2/6/07, Bo Liu <platinum.liu at gmail.com> wrote:
> > I'm trying to cross-compile ffmpeg for a S3C2410, I downloaded ffmpeg
> > sources from the web. The version number is 0.4.9.
>
> This is too old. Please use latest SVN sources.
>
>
> > The cross-compiler I've
> > got is arm-linux-gcc 2.95.3.
> > When I run make,appears this error:
> >
> > /usr/local/arm/2.95.3/bin/arm-linux-gcc -I"/ffmpeg"/libswscale
> > -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> > -D_ISOC9X_SOURCE -I"/ffmpeg" -I"/ffmpeg" -I"/ffmpeg"/libavutil
> > -fomit-frame-pointer -g -Wall -Wno-switch -Wpointer-arith
> -Wredundant-decls
> > -O3 -c -o huffyuv.o huffyuv.c
> > cc1: warning: -g with -fomit-frame-pointer may not give sensible
> debugging
> > huffyuv.c: In function `encode_422_bitstream':
> > huffyuv.c:688: internal error--unrecognizable insn:
> > (insn 207 203 211 (set (reg:SI 118)
> > (zero_extend:SI (mem:QI (plus:SI (reg:SI 116)
> > (subreg:SI (reg:DI 84) 0)) 0))) -1 (insn_list 203 (nil))
> > (expr_list:REG_DEAD (reg:SI 116)
> > (nil)))
> > make[1]: *** [huffyuv.o] Error 1
> > make[1]: Leaving directory `/ffmpeg/libavcodec'
> > make: *** [lib] Error 2
> >
> > I don't know what caused this error. Is this because the version of
> > cross-compiler is too old??
>
> Though it's probably not a problem, I think you'd be better off using
> a more recent compiler. I heard 4.0.x or 4.1.x work well.


I finally fixed this problem. The toolchain I got is arm-linux-gcc2.95.3, I
use version3.3.2 instead now, and everything is all right now.
But here comes another problem:
I gotta use arm-linux-gcc3.3.2 to compile the old embedded kernel-2.4.18 in
order to use ffplay on my borad. When I executed "make zImage", the errors
came like this:

blkpg.c: In function 'blk_ioctl':
blkpg.c:250: error: asm-specofoer fpr variable '__r1' conflicts with asm
clobber list
blkpg.c:250: confused by earlier errors, bailing out
make[3]: *** [blkpg.o] Error 1
make[3]: Leaving directory '/armsys2410/kernel/drivers/block'
make[2]: ***[first_rule] Error 2
make[2]: Leaving directory '/armsys2410/kernel/drivers/block'
make[1]: ***[_subdir_block2] Error 2
make[1]: Leaving directory '/armsys2410/kernel/drivers'
make: *** [_dir_drivers] Error 2

I don't know if it's because kernel2.4.18 doesn't support
arm-linux-gcc-3.2.2??

Thanks for all your help.

> Could you help me?
>
> Please retry with latest sources, and you should be fine.
>
> Guillaume
>
>
> ------------------------------
> Platinum.liu




More information about the ffmpeg-devel mailing list