Discussion:
ffmpeg compilation error on syno-x07
Olivier Perron
2011-04-16 21:52:32 UTC
Permalink
Hello everybody,

While trying to rebuild ffmpeg for the syno-x07 target, I came across a
compilation error (see log below).
Looks like there is an issue with swscale. I've searched on nslu2 trac and
have find some "fight" with people enabling ffmpeg-swscale-headers.patch
while bzou systematically disables it afterwards.
So I've also tried to re-enable that patch but the compilation fails as well
a few steps after.

I'd appreciate any help on this.

Regards,
Olivier

*
*
*compilation log (without swscale patch)*
/media/esata-ext3/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/arm-marvell-linux-gnu-gcc
-DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_ISOC9X_SOURCE -I"/media/esata-ext3/optware/syno-x07/builds/ffmpeg"
-I"/media/esata-ext3/optware/syno-x07/builds/ffmpeg"
-I"/media/esata-ext3/optware/syno-x07/builds/ffmpeg"/libavcodec
-I"/media/esata-ext3/optware/syno-x07/builds/ffmpeg"/libavdevice
-I"/media/esata-ext3/optware/syno-x07/builds/ffmpeg"/libavfilter
-I"/media/esata-ext3/optware/syno-x07/builds/ffmpeg"/libavformat
-I"/media/esata-ext3/optware/syno-x07/builds/ffmpeg"/libavutil
-I"/media/esata-ext3/optware/syno-x07/builds/ffmpeg"/libpostproc
-I"/media/esata-ext3/optware/syno-x07/builds/ffmpeg"/libswscale
-fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual
-Wwrite-strings -O2 -pipe -O3 -fno-math-errno -c -o
libavcodec/imgresample.o libavcodec/imgresample.c
libavcodec/imgresample.c:28:21: swscale.h: No such file or directory
libavcodec/imgresample.c:362: warning: `ImgReSampleContext' is deprecated
(declared at libavcodec/avcodec.h:2316)
libavcodec/imgresample.c:429: warning: `ImgReSampleContext' is deprecated
(declared at libavcodec/avcodec.h:2316)
libavcodec/imgresample.c: In function `img_resample_init':
libavcodec/imgresample.c:430: warning: `img_resample_full_init' is
deprecated (declared at libavcodec/avcodec.h:2332)
libavcodec/imgresample.c: At top level:
libavcodec/imgresample.c:440: warning: `ImgReSampleContext' is deprecated
(declared at libavcodec/avcodec.h:2316)
libavcodec/imgresample.c: In function `img_resample_full_init':
libavcodec/imgresample.c:441: warning: `ImgReSampleContext' is deprecated
(declared at libavcodec/avcodec.h:2316)
libavcodec/imgresample.c:446: warning: `ImgReSampleContext' is deprecated
(declared at libavcodec/avcodec.h:2316)
libavcodec/imgresample.c: At top level:
libavcodec/imgresample.c:487: warning: `ImgReSampleContext' is deprecated
(declared at libavcodec/avcodec.h:2316)
libavcodec/imgresample.c:509: warning: `ImgReSampleContext' is deprecated
(declared at libavcodec/avcodec.h:2316)
libavcodec/imgresample.c:519: error: syntax error before "SwsFilter"
libavcodec/imgresample.c: In function `sws_getContext':
libavcodec/imgresample.c:532: error: `srcH' undeclared (first use in this
function)
libavcodec/imgresample.c:532: error: (Each undeclared identifier is reported
only once
libavcodec/imgresample.c:532: error: for each function it appears in.)
libavcodec/imgresample.c:532: error: `dstH' undeclared (first use in this
function)
libavcodec/imgresample.c:532: error: `srcW' undeclared (first use in this
function)
libavcodec/imgresample.c:532: error: `dstW' undeclared (first use in this
function)
libavcodec/imgresample.c:533: error: `srcFormat' undeclared (first use in
this function)
libavcodec/imgresample.c:533: error: `dstFormat' undeclared (first use in
this function)
libavcodec/imgresample.c:536: warning: `img_resample_init' is deprecated
(declared at libavcodec/imgresample.c:429)
libavcodec/imgresample.c:538: warning: `ImgReSampleContext' is deprecated
(declared at libavcodec/avcodec.h:2316)
libavcodec/imgresample.c: In function `sws_freeContext':
libavcodec/imgresample.c:556: warning: `img_resample_close' is deprecated
(declared at libavcodec/imgresample.c:510)
libavcodec/imgresample.c: At top level:
libavcodec/imgresample.c:577: error: syntax error before "SwsFilter"
libavcodec/imgresample.c: In function `sws_getCachedContext':
libavcodec/imgresample.c:579: error: `ctx' undeclared (first use in this
function)
libavcodec/imgresample.c:580: error: `srcW' undeclared (first use in this
function)
libavcodec/imgresample.c:581: error: `srcH' undeclared (first use in this
function)
libavcodec/imgresample.c:582: error: `srcFormat' undeclared (first use in
this function)
libavcodec/imgresample.c:583: error: `dstW' undeclared (first use in this
function)
libavcodec/imgresample.c:584: error: `dstH' undeclared (first use in this
function)
libavcodec/imgresample.c:585: error: `dstFormat' undeclared (first use in
this function)
libavcodec/imgresample.c:593: error: `flags' undeclared (first use in this
function)
libavcodec/imgresample.c:594: error: `srcFilter' undeclared (first use in
this function)
libavcodec/imgresample.c:594: error: `dstFilter' undeclared (first use in
this function)
libavcodec/imgresample.c:594: error: `param' undeclared (first use in this
function)
libavcodec/imgresample.c: In function `sws_scale':
libavcodec/imgresample.c:633: warning: `img_convert' is deprecated (declared
at libavcodec/avcodec.h:2484)
libavcodec/imgresample.c:664: warning: `img_resample' is deprecated
(declared at libavcodec/imgresample.c:489)
libavcodec/imgresample.c:672: warning: `img_convert' is deprecated (declared
at libavcodec/avcodec.h:2484)
make[2]: *** [libavcodec/imgresample.o] Erreur 1
make[2]: quittant le répertoire «
/media/esata-ext3/optware/syno-x07/builds/ffmpeg »
make[1]: *** [/media/esata-ext3/optware/syno-x07/builds/ffmpeg/.built]
Erreur 2
make[1]: quittant le répertoire « /media/esata-ext3/optware/syno-x07 »
make: *** [/media/esata-ext3/optware/syno-x07/builds/minidlna/.configured]
Erreur 2

Loading...