Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 476496 - games-emulation/vbam-1.8.0.1197 fails with media-video/ffmpeg-2.0
Summary: games-emulation/vbam-1.8.0.1197 fails with media-video/ffmpeg-2.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-2.0
  Show dependency tree
 
Reported: 2013-07-11 08:49 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2014-05-04 16:30 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,82.94 KB, text/plain)
2013-07-11 08:49 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
fix (ffmpeg2.patch,1.26 KB, patch)
2014-03-09 13:29 UTC, Alexis Ballier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-07-11 08:49:31 UTC
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
Comment 1 Nikoli 2014-02-17 12:30:27 UTC
Is it fixed in vbam-1.8.0.1228?
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-02-17 12:45:18 UTC
(In reply to Nikoli from comment #1)
> Is it fixed in vbam-1.8.0.1228?

No.
Comment 3 Tim Harder gentoo-dev 2014-02-17 17:07:36 UTC
(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.
Comment 4 Alexis Ballier gentoo-dev 2014-03-09 13:29:35 UTC
Created attachment 372196 [details, diff]
fix

what a mess of diverging APIs...

this should work in all cases, please test
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-03-19 20:07:54 UTC
(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
Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-05-04 09:48:10 UTC
Can the attached patch be applied?
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2014-05-04 13:49:40 UTC
go for it.
Comment 8 Tim Harder gentoo-dev 2014-05-04 16:30:22 UTC
Fixed in the tree, thanks for the patch. Of course, it appears we'll need a new patch to support media-video/libav-10*.