[FFmpeg-devel] FFMpeg on SH4 (STi7109)

Jean-Michel Hautbois jhautbois
Tue Nov 18 11:23:45 CET 2008


Hi everybody !

I am currently trying to compile ffmpeg for the sh4 platform. I have a
STi7109 based board, and I am currently doing:

./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
'ff_put_qpel8_mc11_old_c' was here
libavcodec/sh4/qpel.c:1080: error: static declaration of
'ff_put_qpel8_mc31_old_c' follows non-static declaration
./libavcodec/dsputil.h:144: error: previous declaration of
'ff_put_qpel8_mc31_old_c' was here
libavcodec/sh4/qpel.c:1080: error: static declaration of
'ff_put_qpel8_mc13_old_c' follows non-static declaration
./libavcodec/dsputil.h:147: error: previous declaration of
'ff_put_qpel8_mc13_old_c' was here
libavcodec/sh4/qpel.c:1080: error: static declaration of
'ff_put_qpel8_mc33_old_c' follows non-static declaration
./libavcodec/dsputil.h:148: error: previous declaration of
'ff_put_qpel8_mc33_old_c' was here
libavcodec/sh4/qpel.c:1080: error: static declaration of
'ff_put_qpel8_mc12_old_c' follows non-static declaration
./libavcodec/dsputil.h:145: error: previous declaration of
'ff_put_qpel8_mc12_old_c' was here
libavcodec/sh4/qpel.c:1080: error: static declaration of
'ff_put_qpel8_mc32_old_c' follows non-static declaration
./libavcodec/dsputil.h:146: error: previous declaration of
'ff_put_qpel8_mc32_old_c' was here

And I have a lot of these.
Is there something I have to specify in the configure command in order to
obtain a working executable ?

After this first step, I would like to use the ST231 cores. Do I have to use
the STAPI ? Or is there any other way to do this ?

Thanks in advance for your help.
Jean-Michel




More information about the ffmpeg-devel mailing list