[FFmpeg-devel] libswscale causes FFmpeg to fail to build when built with --enable-swscale

David Bolt 7c6ebd986448736acd2250be77d2cc38
Thu Jul 10 17:10:34 CEST 2008


I'm not sure if this is the right place for this so, if I'm wrong, point
me in the right direction please.

Building FFmpeg with --enable-swscale fails due to an error in the
latest commit to libswscale (27244). The error returned is:

gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I. -I"/usr/src/packages/BUILD/ffmpeg" -O2 -g -fmessage-
length=0 -D_FORTIFY_SOURCE=2  -fPIC -I/usr/include/gsm -fomit-frame-pointer -march=athlon64 -pthread -g -Wdeclaration-after-statement -Wall -
Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno        -
fPIC -DPIC -c -o libswscale/swscale.o libswscale/swscale.c
In file included from libswscale/swscale.c:897:
libswscale/swscale_template.c: In function swScale_MMX2:
libswscale/swscale_template.c:3142: warning: cast from pointer to integer of different size
libswscale/swscale_template.c:3143: warning: cast from pointer to integer of different size
libswscale/swscale_template.c:3149: warning: cast from pointer to integer of different size
libswscale/swscale_template.c:3150: warning: cast from pointer to integer of different size
libswscale/swscale_template.c:3158: warning: cast from pointer to integer of different size
libswscale/swscale_template.c:3166: warning: cast from pointer to integer of different size
libswscale/swscale.c: In function sws_getCachedContext:
libswscale/swscale.c:2917: warning: assignment discards qualifiers from pointer target type
make: *** No rule to make target `libswscale/swscale_avoption.o', needed by `libswscale/libswscale.so.0'.  Stop.

The configure parameters used were:

./configure --shlibdir=/usr/lib64 --prefix=/usr --libdir=/usr/lib64 \
--mandir=/usr/share/man --bindir=/usr/bin --incdir=/usr/include \
--arch=x86_64 --cpu=athlon64 --enable-pthreads --enable-shared \
--enable-libmp3lame --enable-libvorbis --enable-libtheora \
--enable-libfaad --enable-libfaac --enable-libxvid --enable-liba52 \
--enable-swscale --enable-postproc --enable-gpl --enable-vhook \
--enable-x11grab --enable-libgsm --enable-libx264

Reverting libswscale to its previous SVN version (27212) allows for a
successful build.


Regards,
        David Bolt

-- 
Team Acorn: http://www.distributed.net/ OGR-P2 @ ~100Mnodes RC5-72 @ ~15Mkeys
SUSE 10.1 32bit  |                     | openSUSE 10.3 32bit | openSUSE 11.0
SUSE 10.1 64bit  | openSUSE 10.2 64bit | openSUSE 10.3 64bit
RISC OS 3.6      | TOS 4.02            | openSUSE 10.3 PPC   | RISC OS 3.11




More information about the ffmpeg-devel mailing list