OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Building OSG on OS X 10.10.4 - ffmpeg issue


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
jyby
Newbie


Joined: 14 Aug 2015
Posts: 2

PostPosted: Fri Aug 14, 2015 7:18 pm    Post subject:
Building OSG on OS X 10.10.4 - ffmpeg issue
Reply with quote

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
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11275

PostPosted: Tue Aug 18, 2015 9:34 am    Post subject:
Building OSG on OS X 10.10.4 - ffmpeg issue
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Building Nvidia Texture Tools plugin ... hbucher Build system [build] 2 Thu Dec 07, 2017 11:21 pm View latest post
No new posts OsgText compile issue with the newer ... crubel@compro.net General 6 Wed Nov 15, 2017 7:29 pm View latest post
No new posts People currently using the ffmpeg/lib... Chris Hanson General 7 Fri Nov 03, 2017 4:08 pm View latest post
No new posts Multiple video textures using ffmpeg ... mmaurus Plugins [osgPlugins] 6 Thu Oct 05, 2017 10:02 am View latest post
No new posts setAttribute / Material issue Valzul General 4 Wed Aug 16, 2017 8:15 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP