[vlc-devel] Can't compile vlc 0.8.6i and 1.0.0-git anymore with latest ffmpeg svn [revision #15290]

Gilles Sabourin gilles.sabourin at free.fr
Tue Sep 9 21:42:23 CEST 2008


Hello,


I've updated latest sources from svn repository tonight and got svn revision 
#15290 and compiled fine the sources. At least, AVCodecControl and sws_scale 
datastructures have evolved.

Here's the error when compiling vlc 0.8.6i :

gcc -DHAVE_CONFIG_H -I. -I../../..   -DSYS_LINUX -I../../../include 
`top_builddir="../../.." ../../../vlc-config --cflags plugin 
ffmpeg` -Wsign-compare -Wall  -pipe -MT 
libffmpeg_plugin_a-ffmpeg.o -MD -MP -MF .deps/libffmpeg_plugin_a-ffmpeg.Tpo -c -o 
libffmpeg_plugin_a-ffmpeg.o `test -f 'ffmpeg.c' || echo './'`ffmpeg.c
ffmpeg.c: In function ‘LibavcodecCallback’:
ffmpeg.c:363: warning: assignment discards qualifiers from pointer target type
mv -f .deps/libffmpeg_plugin_a-ffmpeg.Tpo .deps/libffmpeg_plugin_a-ffmpeg.Po
gcc -DHAVE_CONFIG_H -I. -I../../..   -DSYS_LINUX -I../../../include 
`top_builddir="../../.." ../../../vlc-config --cflags plugin 
ffmpeg` -Wsign-compare -Wall  -pipe -MT 
libffmpeg_plugin_a-video.o -MD -MP -MF .deps/libffmpeg_plugin_a-video.Tpo -c -o 
libffmpeg_plugin_a-video.o `test -f 'video.c' || echo './'`video.c
video.c:92: warning: ‘AVPaletteControl’ is deprecated
video.c: In function ‘InitVideoDec__0_8_6’:
video.c:263: error: ‘AVCodecContext’ has no member named ‘bits_per_sample’
video.c:268: error: ‘AVCodecContext’ has no member named ‘error_resilience’
video.c:363: warning: ‘AVPaletteControl’ is deprecated
video.c: In function ‘ffmpeg_CopyPicture’:
video.c:851: warning: passing argument 2 of ‘sws_scale’ from incompatible 
pointer type
video.c:851: warning: passing argument 3 of ‘sws_scale’ from incompatible 
pointer type
make[6]: *** [libffmpeg_plugin_a-video.o] Error 1
make[6]: Leaving directory 
`/usr/src/packages/BUILD/vlc-0.8.6i/modules/codec/ffmpeg'
make[5]: *** [all-modules] Error 1
make[5]: Leaving directory 
`/usr/src/packages/BUILD/vlc-0.8.6i/modules/codec/ffmpeg'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/src/packages/BUILD/vlc-0.8.6i/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/packages/BUILD/vlc-0.8.6i/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/vlc-0.8.6i/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/vlc-0.8.6i'
make: *** [all] Error 2

And the one when compiling 1.0.0-git [latest 
bf49ec236dfa0080888c8fbf5d127453fff19b2b commit ] :

 
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avcodec -DMODULE_NAME_IS_avcodec -DMODULE_STRING=\"avcodec\" -g -O0 -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT 
libavcodec_plugin_la-avcodec.lo -MD -MP -MF .deps/libavcodec_plugin_la-avcodec.Tpo -c 
avcodec.c  -fPIC -DPIC -o .libs/libavcodec_plugin_la-avcodec.o
In file included from ../../../include/vlc_common.h:519,
                 from avcodec.c:32:
../../../include/vlc_mtime.h:84: warning: 'error' attribute directive ignored
../../../include/vlc_mtime.h:94: warning: 'warning' attribute directive 
ignored
../../../include/vlc_mtime.h:112: warning: 'error' attribute directive ignored
In file included from ../../../include/vlc_common.h:908,
                 from avcodec.c:32:
../../../include/vlc_variables.h:140: warning: 'error' attribute directive 
ignored
In file included from avcodec.c:52:
avutil.h:30: warning: no previous prototype for 'LibavutilCallback'
fourcc.h:1059: warning: 'GetVlcFourcc' defined but not used
mv -f .deps/libavcodec_plugin_la-avcodec.Tpo .deps/libavcodec_plugin_la-avcodec.Plo
/bin/sh ../../../libtool --tag=CC   --mode=compile 
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../..   -I../../../include -I../../../include  -DSYS_LINUX 
`top_builddir="../../.." ../../../vlc-config --cflags plugin 
libavcodec_plugin_la-video.lo` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT 
libavcodec_plugin_la-video.lo -MD -MP -MF .deps/libavcodec_plugin_la-video.Tpo -c -o 
libavcodec_plugin_la-video.lo `test -f 'video.c' || echo './'`video.c
 
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avcodec -DMODULE_NAME_IS_avcodec -DMODULE_STRING=\"avcodec\" -g -O0 -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT 
libavcodec_plugin_la-video.lo -MD -MP -MF .deps/libavcodec_plugin_la-video.Tpo -c 
video.c  -fPIC -DPIC -o .libs/libavcodec_plugin_la-video.o
In file included from ../../../include/vlc_common.h:519,
                 from video.c:32:
../../../include/vlc_mtime.h:84: warning: 'error' attribute directive ignored
../../../include/vlc_mtime.h:94: warning: 'warning' attribute directive 
ignored
../../../include/vlc_mtime.h:112: warning: 'error' attribute directive ignored
In file included from ../../../include/vlc_common.h:908,
                 from video.c:32:
../../../include/vlc_variables.h:140: warning: 'error' attribute directive 
ignored
In file included from video.c:48:
chroma.h: In function 'GetFfmpegChroma':
chroma.h:121: warning: comparison between signed and unsigned
chroma.h:122: warning: comparison between signed and unsigned
chroma.h:123: warning: comparison between signed and unsigned
video.c: At top level:
video.c:86: warning: 'AVPaletteControl' is deprecated
video.c:93: warning: 'AVPaletteControl' is deprecated
video.c: In function 'InitVideoDec':
video.c:205: error: 'AVCodecContext' has no member named 'bits_per_sample'
video.c:210: error: 'AVCodecContext' has no member named 'error_resilience'
video.c: In function 'DecodeVideo':
video.c:662: warning: unused variable 'i'
video.c: In function 'ffmpeg_ReGetFrameBuf':
video.c:936: warning: comparison between signed and unsigned
make[6]: *** [libavcodec_plugin_la-video.lo] Error 1
make[6]: Leaving directory 
`/usr/src/packages/BUILD/vlc-beta-1.0.0/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory 
`/usr/src/packages/BUILD/vlc-beta-1.0.0/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory 
`/usr/src/packages/BUILD/vlc-beta-1.0.0/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory 
`/usr/src/packages/BUILD/vlc-beta-1.0.0/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/vlc-beta-1.0.0/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/vlc-beta-1.0.0'
make: *** [all] Error 2

Good luck guys !

Best,
Gilles
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080909/ac4b5c52/attachment.sig>


More information about the vlc-devel mailing list