[MPlayer-users] unable to build r37391 against shared ffmpeg-2.6.2
Julian Sikorski
belegdol at gmail.com
Wed May 6 07:20:45 CEST 2015
W dniu 05.05.2015 o 22:05, Julian Sikorski pisze:
> Hello,
>
> in the process of getting RPM Fusion packages ready for Fedora 22
> release, I have discovered that the current SVN does not build against
> shared ffmpeg-2.6.2:
>
> cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
> -Wredundant-decls -Werror=format-security -Wstrict-prototypes
> -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign
> -Wdeclaration-after-statement -std=gnu99
> -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112
> -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=x86-64
> -mtune=generic -pipe -ffast-math -fomit-frame-pointer
> -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE64_SOURCE -O2 -g -pipe -Wall -Werror=format-security
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
> --param=ssp-buffer-size=4 -grecord-gcc-switches
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie
> -DPIC -D_REENTRANT -I/usr/include/p11-kit-1 -I/usr/include/
> -D_REENTRANT -I/usr/include/freetype2 -DZLIB_CONST -I/usr/include/bs2b
> -I/usr/include/ffmpeg -I/usr/include/ffmpeg -pthread
> -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
> -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/pixman-1 -I/usr/include/libdrm
> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16
> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
> -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2
> -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16
> -c -o libmpcodecs/ad_spdif.o libmpcodecs/ad_spdif.c
> libmpcodecs/ad_spdif.c: In function 'init':
> libmpcodecs/ad_spdif.c:133:23: error: dereferencing pointer to
> incomplete type 'AVFormatInternal {aka struct AVFormatInternal}'
> lavf_ctx->internal->raw_packet_buffer_remaining_size =
> RAW_PACKET_BUFFER_SIZE;
> ^
> libmpcodecs/ad_spdif.c:133:60: error: 'RAW_PACKET_BUFFER_SIZE'
> undeclared (first use in this function)
> lavf_ctx->internal->raw_packet_buffer_remaining_size =
> RAW_PACKET_BUFFER_SIZE;
> ^
> libmpcodecs/ad_spdif.c:133:60: note: each undeclared identifier is
> reported only once for each function it appears in
> libmpcodecs/ad_ffmpeg.c: In function 'init':
> libmpcodecs/ad_ffmpeg.c:130:5: warning: 'request_channels' is deprecated
> [-Wdeprecated-declarations]
> lavc_context->request_channels = audio_output_channels;
> ^
> In file included from libmpcodecs/ad_ffmpeg.c:47:0:
> /usr/include/ffmpeg/libavcodec/avcodec.h:2036:30: note: declared here
> attribute_deprecated int request_channels;
> ^
> Makefile:731: recipe for target 'libmpcodecs/ad_spdif.o' failed
> make: *** [libmpcodecs/ad_spdif.o] Error 1
>
> The full build log is attached. Please may you help? Thank you in advance.
>
> Best regards,
> Julian
I was able to figure it out myself - it turns out that the minimalistic
libavformat/internal.h needed expansion.
Best regards,
Julian
More information about the MPlayer-users
mailing list