[osg-users] re: fail to compile osg 3.4.0 with latest ffmpeg
广州刘丹
139250065 at qq.com
Fri Dec 11 00:31:07 PST 2015
Robert:
After I switch to branch release/2.8, the problem disappears.
Daniel
git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
git checkout origin/release/2.8
PKG_CONFIG_PATH="${DEST}/build/lib/pkgconfig" ./configure --prefix="${DEST}/build" \
--extra-cflags="-I${DEST}/build/include" --extra-ldflags="-L${DEST}/build/lib" bindir="${DEST}/bin" \
--pkg-config-flags="--static" --enable-shared --enable-pic --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype \
--enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
make
------------------ 原始邮件 ------------------
发件人: "Robert Osfield";<robert.osfield at gmail.com>;
发送时间: 2015年12月11日(星期五) 下午4:27
收件人: "OpenSceneGraph Users"<osg-users at lists.openscenegraph.org>;
主题: Re: [osg-users] fail to compile osg 3.4.0 with latest ffmpeg
HI ?, Could you sign with a name that we can use when reply?
ffmpeg has constantly moving API so issues like this are impossible to prevent, get everything work then a few months later ffmpeg breaks things...
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.
Robert.
On 11 December 2015 at 03:50, 广州刘丹 <139250065 at qq.com> wrote:
Hi:
All ! I cloned ffmpeg from https://github.com/FFmpeg/FFmpeg.git
After config osg with cmake-gui, when I run make, it reports below erros:
/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp: In member function ‘void osgFFmpeg::FFmpegDecoderAudio::open(AVStream, osgFFmpeg::FFmpegParameters)’:
/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:230:20: error: ‘AVCodecContext’ has no member named ‘get_buffer’
m_context->get_buffer = avcodec_default_get_buffer;
^
/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:230:33: error: ‘avcodec_default_get_buffer’ was not declared in this scope
m_context->get_buffer = avcodec_default_get_buffer;
^
/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:231:20: error: ‘AVCodecContext’ has no member named ‘release_buffer’
m_context->release_buffer = avcodec_default_release_buffer;
^
/root/osg/OpenSceneGraph-3.4.0/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:231:37: error: ‘avcodec_default_release_buffer’ was not declared in this scope
m_context->release_buffer = avcodec_default_release_buffer;
^
make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderAudio.o] Error 1
make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2
make: *** [all] Error 2
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151211/63a64f24/attachment-0001.htm>
More information about the osg-users
mailing list