My G3258 just arrived and I was looking forward to running the Dolphin benchmark on it. I'm using Debian Jessie. The latest version, 4.0-2101, compiles with no problems. Unfortunately the version I need for the benchmark gives me this error.
Does anyone know what the fix is?
Code:
[ 35%] Building CXX object Source/Core/VideoCommon/CMakeFiles/videocommon.dir/AVIDump.cpp.o
/home/user/dolphin-emu/Source/Core/VideoCommon/AVIDump.cpp: In static member function ‘static bool AVIDump::CreateFile()’:
/home/user/dolphin-emu/Source/Core/VideoCommon/AVIDump.cpp:263:24: error: ‘CODEC_ID_FFV1’ was not declared in this scope
g_Config.bUseFFV1 ? CODEC_ID_FFV1 : s_FormatContext->oformat->video_codec;
^
/home/user/dolphin-emu/Source/Core/VideoCommon/AVIDump.cpp:279:15: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
s_BGRFrame = avcodec_alloc_frame();
^
/home/user/dolphin-emu/Source/Core/VideoCommon/AVIDump.cpp:279:35: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
s_BGRFrame = avcodec_alloc_frame();
^
/home/user/dolphin-emu/Source/Core/VideoCommon/AVIDump.cpp:280:15: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
s_YUVFrame = avcodec_alloc_frame();
^
/home/user/dolphin-emu/Source/Core/VideoCommon/AVIDump.cpp:280:35: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations]
s_YUVFrame = avcodec_alloc_frame();
^
/home/user/dolphin-emu/Source/Core/VideoCommon/AVIDump.cpp: In static member function ‘static void AVIDump::AddFrame(const u8*, int, int)’:
/home/user/dolphin-emu/Source/Core/VideoCommon/AVIDump.cpp:318:85: error: ‘avcodec_encode_video’ was not declared in this scope
int outsize = avcodec_encode_video(s_Stream->codec, s_OutBuffer, s_size, s_YUVFrame);
^
Source/Core/VideoCommon/CMakeFiles/videocommon.dir/build.make:1039: recipe for target 'Source/Core/VideoCommon/CMakeFiles/videocommon.dir/AVIDump.cpp.o' failed
make[2]: *** [Source/Core/VideoCommon/CMakeFiles/videocommon.dir/AVIDump.cpp.o] Error 1
CMakeFiles/Makefile2:960: recipe for target 'Source/Core/VideoCommon/CMakeFiles/videocommon.dir/all' failed
make[1]: *** [Source/Core/VideoCommon/CMakeFiles/videocommon.dir/all] Error 2
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2
Does anyone know what the fix is?