<div><div>Robert:</div><div>    After I switch to branch release/2.8, the problem disappears.</div><div>Daniel</div><div><br></div><div>git clone https://github.com/FFmpeg/FFmpeg.git</div><div>cd FFmpeg</div><div>git checkout origin/release/2.8</div><div>PKG_CONFIG_PATH="${DEST}/build/lib/pkgconfig" ./configure --prefix="${DEST}/build" \</div><div>--extra-cflags="-I${DEST}/build/include" --extra-ldflags="-L${DEST}/build/lib" bindir="${DEST}/bin" \</div><div>--pkg-config-flags="--static" --enable-shared --enable-pic --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype \</div><div>--enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265</div><div>make</div></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Robert Osfield";<robert.osfield@gmail.com>;</div><div><b>发送时间:</b> 2015年12月11日(星期五) 下午4:27</div><div><b>收件人:</b> "OpenSceneGraph Users"<osg-users@lists.openscenegraph.org>; <wbr></div><div></div><div><b>主题:</b> Re: [osg-users] fail to compile osg 3.4.0 with latest ffmpeg</div></div><div><br></div><div dir="ltr"><div><div><div>HI ?, Could you sign with a name that we can use when reply?<br><br></div>ffmpeg has constantly moving API so issues like this are impossible to prevent, get everything work then a few months later ffmpeg breaks things...<br><br></div>You'll either need to come up with solution for these API changes and post these fixes to osg-submissions for us to merge or revert back to an older version of ffmpeg.<br><br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 December 2015 at 03:50, 广州刘丹 <span dir="ltr"><<a href="mailto:139250065@qq.com" target="_blank">139250065@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="">Hi:</p><p style="">    All ! <span style="line-height:22.4px">I cloned ffmpeg from </span><a href="https://github.com/FFmpeg/FFmpeg.git" style="line-height:22.4px;color:rgb(64,120,192);text-decoration:none;background-color:transparent" target="_blank">https://github.com/FFmpeg/FFmpeg.git</a></p><p style="">After config osg with cmake-gui, when I run make, it reports below erros:</p><p style="">/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘void osgFFmpeg::FFmpegDecoderAudio::open(AVStream<em>, osgFFmpeg::FFmpegParameters</em>)’:<br>/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:230:20: error: ‘AVCodecContext’ has no member named ‘get_buffer’<br>m_context->get_buffer = avcodec_default_get_buffer;<br>^<br>/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:230:33: error: ‘avcodec_default_get_buffer’ was not declared in this scope<br>m_context->get_buffer = avcodec_default_get_buffer;<br>^<br>/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:231:20: error: ‘AVCodecContext’ has no member named ‘release_buffer’<br>m_context->release_buffer = avcodec_default_release_buffer;<br>^<br>/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:231:37: error: ‘avcodec_default_release_buffer’ was not declared in this scope<br>m_context->release_buffer = avcodec_default_release_buffer;<br>^<br>make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o] Error 1<br>make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2<br>make: *** [all] Error 2</p><br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div></div>