[Ffmpeg-devel] [BUG] Compilation problem with swscaler

Panagiotis Issaris takis.issaris
Fri Aug 11 13:13:15 CEST 2006


Hi,

When configuring the latest FFmpeg SVN sourcecode to use the swscaler, compilation fails
complaining about "img_format.h" being missing.

I got it to compile by copying two files from MPlayer SVN:
cp ../mplayer/libmpcodecs/img_format.h libswscale
cp ../mplayer/asmalign.h libswscale

A shortened log describing the problem:
takis at issaris:/usr/local/src/ffmpeg$ ./configure --enable-gpl --enable-swscaler
[...]
takis at issaris:/usr/local/src/ffmpeg$ make
[...]
make -C libswscale  all
make[1]: Entering directory `/usr/local/src/ffmpeg/libswscale'
gcc -O3  -g -Wdeclaration-after-statement -Wall -Wno-switch -I.. -I/usr/local/src/ffmpeg -I/usr/local/src/ffmpeg/libavutil -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE  -c -o swscale.o swscale.c
swscale.c:74:24: error: img_format.h: No such file or directory
swscale.c:215: error: ?IMGFMT_I420? undeclared here (not in a function)
swscale.c:216: error: ?IMGFMT_Y422? undeclared here (not in a function)
swscale.c:217: error: ?IMGFMT_RGB24? undeclared here (not in a function)
[...]
takis at issaris:/usr/local/src/ffmpeg$ cp ../mplayer/libmpcodecs/img_format.h libswscale
takis at issaris:/usr/local/src/ffmpeg$ make
[...]
make -C libswscale  all
make[1]: Entering directory `/usr/local/src/ffmpeg/libswscale'
gcc -O3  -g -Wdeclaration-after-statement -Wall -Wno-switch -I.. -I/usr/local/src/ffmpeg -I/usr/local/src/ffmpeg/libavutil -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE  -c -o swscale.o swscale.c
swscale.c: In function ?yuv2packedXinC?:
swscale.c:740: warning: unused variable ?g?
swscale.c:740: warning: unused variable ?b?
swscale.c:740: warning: unused variable ?r?
swscale.c:748: warning: unused variable ?g?
swscale.c:748: warning: unused variable ?b?
swscale.c:748: warning: unused variable ?r?
In file included from swscale.c:827:
swscale_template.c:19:22: error: asmalign.h: No such file or directory
In file included from swscale.c:827:
swscale_template.c: In function ?yuv2yuvX_MMX?:
swscale_template.c:934: error: syntax error before ?ASMALIGN16?
swscale_template.c:935: error: syntax error before ?ASMALIGN16?
[...]
takis at issaris:/usr/local/src/ffmpeg$ cp ../mplayer/asmalign.h libswscale

After these two copies, make then succeeds.


With friendly regards,
Takis




More information about the ffmpeg-devel mailing list