[FFmpeg-devel] FFMpeg on SH4 (STi7109)

Jean-Michel Hautbois jhautbois
Tue Nov 18 18:22:41 CET 2008


It runs, on the CPU. Now, the big work will start !

Is there coding rules ? Can I commit ? I would like to know which way is the
best one (I won't commit today ;) ).

JM

2008/11/18 Jean-Michel Hautbois <jhautbois at gmail.com>

> >> > ./configure --enable-cross-compile --cross-prefix=sh4-linux-
>> --arch=sh4
>> >> > --extra-cflags=-fno-strict-aliasing
>> >> >
>> >> > I have read the discussions here:
>> >> > *
>> http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2006-March/002478.html
>> >> > *here:*
>> >> >
>> http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2007-December/039133.html
>> >> > *and here:*
>> >> >
>> http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-January/040685.html
>> >> >
>> >> > *I am currently facing the following errors:
>> >> > libavcodec/sh4/qpel.c: At top level:
>> >> > libavcodec/sh4/qpel.c:1080: error: static declaration of
>> >> > 'ff_put_qpel8_mc11_old_c' follows non-static declaration
>> >> > ./libavcodec/dsputil.h:143: error: previous declaration of
>> >>
>> >> That file looks like a duplicate of parts of dsputil.c.  Something is
>> >> definitely fishy here.
>> >
>> > I am OK with you, but what may I do ?
>>
>>
>> You could try removing that file from the build entirely, and remove any
>> references to its symbols.  These should be limited to setting function
>> pointers in DSPContext, so removing those lines will merely result in
>> the default functions being used instead.
>
>
> OK, I have done something different, as there is a #define QPEL in the file
> dsputils_align.c.
> Commenting it out, and resolving the linker error, I have successfully
> compiled.
> I will try as soon as possible to run it on the hardware, and test.
>
>
>
>> I suggest you disable SH4 optimisations until you get a working build.
>> Once we have a working base, we can start fixing the optimised code.
>
>
> OK, I will try to go further.
>
> Jean-Michel
>




More information about the ffmpeg-devel mailing list