Created attachment 169702 [details] Patch to update graphics/osg-devel to 3.5.1 and fix build with ffmpeg 3.0.x graphics/osg-devel: - Update to 3.5.1 - Add option to choose build with QT4 or QT5 (both disabled by default) - Mark Gstreamer option as broken, as build fails with error cannot find -lgstreamer-1.0 - Convert to option helpers, tidy up - Add patch to allow osg to build successfully once multimedia/ffmpeg is updated to 3.0.x. Note that multimedia/ffmpeg is currently still on the 2.8.x branch, however this patch is backwards compatible with ffmpeg 2.8.x. Changes this release: http://www.openscenegraph.org/index.php/download-section/developer-releases/208-openscenegraph-3-5-1-developer-release
Created attachment 169703 [details] QA: Successful poudriere testport logs for graphics/osg-devel 3.5.1 with ffmpeg3 patch with all options DISABLED against current ports tree (FFmpeg 2.8.6_2,1) on FreeBSD 10.3 amd64 (gzipped)
Created attachment 169706 [details] QA: Successful poudriere testport logs for graphics/osg-devel 3.5.1 with ffmpeg3 patch with all options ENABLED (QT4) against current ports tree (FFmpeg 2.8.6_2,1) on FreeBSD 10.3 amd64 (gzipped)
Created attachment 169723 [details] QA: Successful poudriere testport logs for graphics/osg-devel 3.5.1 with ffmpeg3 patch with all options ENABLED (QT5) against current ports tree (FFmpeg 2.8.6_2,1) on FreeBSD 10.3 amd64 (gzipped)
Created attachment 169724 [details] QA: Successful poudriere testport logs for graphics/osg-devel 3.5.1 with ffmpeg3 patch with all options ENABLED (QT5) against FFmpeg 3.0.1 (from PR 207547) on FreeBSD 11 amd64 (gzipped)
The ffmpeg3 patch was obtained from ArchLinux: https://projects.archlinux.org/svntogit/community.git/tree/trunk/openscenegraph-ffmpeg3.patch?h=packages/openscenegraph
Hi Dmitry, Just a reminder, that this PR for osg-devel is also outstanding. Thanks, Ben
Yes, this is in the queue, shouldn't take much time as it should be similar to osg and has no consumers.
Bump. Any progress on this Dmitry?
A commit references this bug: Author: jbeich Date: Sun Dec 11 15:23:17 UTC 2016 New revision: 428354 URL: https://svnweb.freebsd.org/changeset/ports/428354 Log: graphics/osg-devel: declare as BROKEN src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:230:20: error: no member named 'get_buffer' in 'AVCodecContext'; did you mean 'get_buffer2'? m_context->get_buffer = avcodec_default_get_buffer; ^~~~~~~~~~ get_buffer2 /usr/local/include/libavcodec/avcodec.h:2593:11: note: 'get_buffer2' declared here int (*get_buffer2)(struct AVCodecContext *s, AVFrame *frame, int flags); ^ src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:230:33: error: use of undeclared identifier 'avcodec_default_get_buffer'; did you mean 'avcodec_default_get_buffer2'? m_context->get_buffer = avcodec_default_get_buffer; ^~~~~~~~~~~~~~~~~~~~~~~~~~ avcodec_default_get_buffer2 /usr/local/include/libavcodec/avcodec.h:4651:5: note: 'avcodec_default_get_buffer2' declared here int avcodec_default_get_buffer2(AVCodecContext *s, AVFrame *frame, int flags); ^ src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:231:20: error: no member named 'release_buffer' in 'AVCodecContext' m_context->release_buffer = avcodec_default_release_buffer; ~~~~~~~~~ ^ src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp:231:37: error: use of undeclared identifier 'avcodec_default_release_buffer'; did you mean 'avcodec_default_get_buffer2'? m_context->release_buffer = avcodec_default_release_buffer; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ avcodec_default_get_buffer2 /usr/local/include/libavcodec/avcodec.h:4651:5: note: 'avcodec_default_get_buffer2' declared here int avcodec_default_get_buffer2(AVCodecContext *s, AVFrame *frame, int flags); ^ PR: 209057 Reported by: antoine (via exp-run) Changes: head/graphics/osg-devel/Makefile
A commit references this bug: Author: amdmi3 Date: Tue Dec 27 14:49:11 UTC 2016 New revision: 429620 URL: https://svnweb.freebsd.org/changeset/ports/429620 Log: - Update to 3.5.1 - Fix build with recent ffmpeg - Reduce diff with graphics/osg PR: 209057 Submitted by: woodsb02@gmail.com Changes: head/graphics/osg-devel/Makefile head/graphics/osg-devel/distinfo head/graphics/osg-devel/files/patch-CMakeModules_FindGStreamer.cmake head/graphics/osg-devel/files/patch-ffmpeg3 head/graphics/osg-devel/files/patch-include_osgViewer_View head/graphics/osg-devel/files/patch-src_osgPlugins_ffmpeg_CMakeLists.txt head/graphics/osg-devel/files/patch-src_osgPlugins_gdal_CMakeLists.txt head/graphics/osg-devel/files/patch-src_osgPlugins_nvtt_CMakeLists.txt head/graphics/osg-devel/files/patch-src_osgPlugins_ogr_CMakeLists.txt head/graphics/osg-devel/pkg-plist