[osg-users] [build] Building OSG on OS X 10.10.4 - ffmpeg issue

Robert Osfield robert.osfield at gmail.com
Tue Aug 18 02:34:08 PDT 2015


Hi Jeffrey,

OSX has a feature where you can built for multiple architectures within the
same lib/binary, and by default CMake will be selecting this for, but it
requires all the dependencies to be built this way too, you can't mix and
match.  In your case you'll either need to install a ffmpeg that supports
the same range of architectures as your OSG build or going into ccmake to
adjust the build target so it's the same as ffmpeg.

Robert.

On 14 August 2015 at 20:18, Jeffrey Haines <jeffhaines at me.com> wrote:

> Hi,
>
> I'm trying to compile OSG on OS X 10.10.4
>
> I have all the dependencies install using homebrew.
>
> My build stops at 94% and its related to ffmpeg.
>
> I need help figuring this out.
>
>
> Code:
> [ 94%] Building CXX object
> src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/ReaderWriterFFmpeg.cpp.o
> [ 95%] Linking CXX shared module
> ../../../lib/osgPlugins-3.2.3/osgdb_ffmpeg.so
> Undefined symbols for architecture x86_64:
>   "_av_abuffersink_params_alloc", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_av_buffersink_get_buffer_ref", referenced from:
>       _lavfi_read_packet in libavdevice.a(lavfi.o)
>   "_av_buffersink_params_alloc", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_avfilter_get_by_name", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_avfilter_graph_alloc", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_avfilter_graph_config", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_avfilter_graph_create_filter", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_avfilter_graph_dump", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_avfilter_graph_free", referenced from:
>       _lavfi_read_close in libavdevice.a(lavfi.o)
>   "_avfilter_graph_parse", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_avfilter_inout_free", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_avfilter_link", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_avfilter_register_all", referenced from:
>       _lavfi_read_header in libavdevice.a(lavfi.o)
>   "_avfilter_unref_buffer", referenced from:
>       _lavfi_read_packet in libavdevice.a(lavfi.o)
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[2]: *** [lib/osgPlugins-3.2.3/osgdb_ffmpeg.so] Error 1
> make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error
> 2
> make: *** [all] Error 2
>
>
>
>
> Thank you!
>
> Cheers,
> Jeffrey
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64775#64775
>
>
>
>
>
> _______________________________________________
> 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/20150818/3ab28741/attachment-0003.htm>


More information about the osg-users mailing list