Created attachment 353066 [details] build.log [ 30%] Building CXX object CMakeFiles/vbamcore.dir/src/common/ffmpeg.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DBKPT_SUPPORT -DC_CORE -DENABLE_NLS -DFINAL_VERSION -DGBA_LOGGING -DHAVE_ARPA_INET_H -DHAVE_NETINET_IN_H -DHAVE_ZLIB_H -DNO_ASM -DNO_LINK -DSDL -DUSE_OPENGL -DNDEBUG -march=barcelona -mtune=barcelona -O2 -pipe -I/var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197/fex -I/usr/include/SDL -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib64/pangomm-1.4/include -I/usr/include/cairomm-1.0 -I/usr/lib64/cairomm-1.0/include -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/harfbuzz -I/usr/include/freetype2 -I/usr/include/gtkglextmm-1.2 -I/usr/lib64/gtkglextmm-1.2/include -I/usr/include/gtkglext-1.0 -I/usr/lib64/gtkglext-1.0/include -DSYSCONFDIR='"/etc"' -DWITH_LIRC='0' -DVERSION='"1.8.0-SVN"' -DPKGDATADIR='"/usr/share/games/vbam"' -DPACKAGE='' -DLOCALEDIR=\"/usr/share/locale\" -o CMakeFiles/vbamcore.dir/src/common/ffmpeg.cpp.o -c /var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197/src/common/ffmpeg.cpp /var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197/src/common/ffmpeg.cpp: In member function ‘MediaRet MediaRecorder::setup_video_stream(const char*, int, int, int)’: /var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197/src/common/ffmpeg.cpp:191:88: error: ‘avcodec_find_best_pix_fmt’ was not declared in this scope /var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197/src/common/ffmpeg.cpp: In member function ‘MediaRet MediaRecorder::AddFrame(const u8*)’: /var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197/src/common/ffmpeg.cpp:402:13: warning: ‘int avcodec_encode_video(AVCodecContext*, uint8_t*, int, const AVFrame*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4137) [-Wdeprecated-declarations] /var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197/src/common/ffmpeg.cpp:402:66: warning: ‘int avcodec_encode_video(AVCodecContext*, uint8_t*, int, const AVFrame*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4137) [-Wdeprecated-declarations] /var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197/src/common/ffmpeg.cpp: In member function ‘MediaRet MediaRecorder::AddFrame(const u16*)’: /var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197/src/common/ffmpeg.cpp:454:13: warning: ‘int avcodec_encode_audio(AVCodecContext*, uint8_t*, int, const short int*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4074) [-Wdeprecated-declarations] /var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197/src/common/ffmpeg.cpp:455:55: warning: ‘int avcodec_encode_audio(AVCodecContext*, uint8_t*, int, const short int*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4074) [-Wdeprecated-declarations] make[2]: *** [CMakeFiles/vbamcore.dir/src/common/ffmpeg.cpp.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197_build' make[1]: *** [CMakeFiles/vbamcore.dir/all] Error 2 make[1]: Leaving directory `/var/tmp/portage/games-emulation/vbam-1.8.0.1197/work/vbam-1.8.0.1197_build' make: *** [all] Error 2 * ERROR: games-emulation/vbam-1.8.0.1197 failed (compile phase): * emake failed
Is it fixed in vbam-1.8.0.1228?
(In reply to Nikoli from comment #1) > Is it fixed in vbam-1.8.0.1228? No.
(In reply to Nikoli from comment #1) > Is it fixed in vbam-1.8.0.1228? Newer ffmpeg support from the past 3-4 breakages has mainly been me writing and pushing patches upstream. Any help in porting to new versions while keeping backward compat is welcome.
Created attachment 372196 [details, diff] fix what a mess of diverging APIs... this should work in all cases, please test
(In reply to Alexis Ballier from comment #4) > Created attachment 372196 [details, diff] [details, diff] > fix > > what a mess of diverging APIs... > > this should work in all cases, please test The patch seems to work
Can the attached patch be applied?
go for it.
Fixed in the tree, thanks for the patch. Of course, it appears we'll need a new patch to support media-video/libav-10*.