[FFmpeg-devel] FFMpeg on SH4 (STi7109)

Jean-Michel Hautbois jhautbois
Tue Nov 18 17:28:03 CET 2008


>
> >> > ./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