[osg-users] fail to compile osg 3.4.0 with latest ffmpeg
Robert Osfield
robert.osfield at gmail.com
Fri Dec 11 00:27:07 PST 2015
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/15e9a3ce/attachment-0003.htm>
More information about the osg-users
mailing list