nariakiiwatani / ofxNDI

NewTek NDI SDK Wrapper for openFrameworks.
https://ndi.tv/
MIT License
103 stars 19 forks source link

ofxNDI5 macOS 10.15.7 OF 11.2 build error for example-audio-receiver #32

Open stephanschulz opened 2 years ago

stephanschulz commented 2 years ago

I am trying to compile the example-audio-receiver example but get the following error. I am on a MBP with i9 chip.

Screen Shot 2022-08-20 at 11 06 17 AM

Undefined symbols for architecture x86_64:
  "_NDIlib_framesync_free_audio_v2", referenced from:
      ofxNDI::Recv::FrameSyncAudio::freeFrame(NDIlib_audio_frame_v3_t&) in ofxNDIRecvStream.o
  "_NDIlib_framesync_capture_audio_v2", referenced from:
      ofxNDI::Recv::FrameSyncAudio::captureFrame(NDIlib_audio_frame_v3_t&) in ofxNDIRecvStream.o
  "_NDIlib_recv_free_audio_v3", referenced from:
      ofxNDI::Recv::Stream<NDIlib_audio_frame_v3_t, ofxNDI::Recv::Receiver>::freeFrame(NDIlib_audio_frame_v3_t&) in ofxNDIRecvStream.o
  "_NDIlib_recv_destroy", referenced from:
      ofxNDI::Recv::Receiver::~Receiver() in ofxNDIReceiver.o
  "_NDIlib_destroy", referenced from:
      ofxNDI::Recv::Receiver::~Receiver() in ofxNDIReceiver.o
  "_NDIlib_recv_get_no_connections", referenced from:
      ofxNDI::Recv::Receiver::isConnected() const in ofxNDIReceiver.o
  "_NDIlib_framesync_destroy", referenced from:
      ofxNDI::Recv::Receiver::createFrameSync() in ofxNDIReceiver.o
      ofxNDI::Recv::Receiver::~Receiver() in ofxNDIReceiver.o
  "_NDIlib_framesync_create", referenced from:
      ofxNDI::Recv::Receiver::createFrameSync() in ofxNDIReceiver.o
  "_NDIlib_recv_create_v4", referenced from:
      ofxNDI::Recv::Receiver::setup(ofxNDI::Source const&, ofxNDI::Recv::Receiver::Settings const&) in ofxNDIReceiver.o
  "_NDIlib_find_wait_for_sources", referenced from:
      void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ofxNDI::Find::Finder::watchSources(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >)::$_0, NDIlib_find_create_t> >(void*) in ofxNDIFinder.o
  "_NDIlib_util_audio_to_interleaved_32f_v2", referenced from:
      bool ofxNDI::Frame::decode<NDIlib_audio_frame_v3_t, ofSoundBuffer>(NDIlib_audio_frame_v3_t const&, ofSoundBuffer&) in ofxNDIFrame.o
  "_NDIlib_recv_capture_v3", referenced from:
      ofxNDI::Recv::Stream<NDIlib_audio_frame_v3_t, ofxNDI::Recv::Receiver>::captureFrame(NDIlib_audio_frame_v3_t&) in ofxNDIRecvStream.o
  "_NDIlib_find_create_v3", referenced from:
      void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ofxNDI::Find::Finder::watchSources(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >)::$_0, NDIlib_find_create_t> >(void*) in ofxNDIFinder.o
  "_NDIlib_find_get_current_sources_v2", referenced from:
      void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ofxNDI::Find::Finder::watchSources(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >)::$_0, NDIlib_find_create_t> >(void*) in ofxNDIFinder.o
  "_NDIlib_find_destroy", referenced from:
      void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ofxNDI::Find::Finder::watchSources(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >)::$_0, NDIlib_find_create_t> >(void*) in ofxNDIFinder.o
  "_NDIlib_recv_connect", referenced from:
      ofxNDI::Recv::Receiver::changeConnection(ofxNDI::Source const&) in ofxNDIReceiver.o
  "_NDIlib_initialize", referenced from:
      ofxNDI::Find::Finder::watchSources(bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >) in ofxNDIFinder.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
nariakiiwatani commented 2 years ago

https://github.com/2bbb/ofxNDI/blob/48616bf6a51dd1abfe2a30608390b95dc97e5132/readme.md

HI, sorry for late reply. Please follow the instruction at Xcode Project setting (osx) of this link. I'm sorry I haven't added this information to my readme.