AlloSphere-Research-Group / allolib

Library for interactive multimedia application development
BSD 3-Clause "New" or "Revised" License
36 stars 15 forks source link

ERROR: rtaudio linker error #6

Closed kybr closed 6 years ago

kybr commented 6 years ago
-- Cuttlebone not found. Not building Cuttlebone.
/usr/local/lib/libfreetype.dylib  --------------- 
Undefined symbols for architecture x86_64:
  "_AudioDeviceCreateIOProcID", referenced from:
      RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) in libal.a(RtAudio.cpp.o)
  "_AudioDeviceDestroyIOProcID", referenced from:
      RtApiCore::closeStream() in libal.a(RtAudio.cpp.o)
  "_AudioDeviceStart", referenced from:
      RtApiCore::startStream() in libal.a(RtAudio.cpp.o)
  "_AudioDeviceStop", referenced from:
      RtApiCore::closeStream() in libal.a(RtAudio.cpp.o)
      RtApiCore::stopStream() in libal.a(RtAudio.cpp.o)
  "_AudioObjectAddPropertyListener", referenced from:
      RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) in libal.a(RtAudio.cpp.o)
  "_AudioObjectGetPropertyData", referenced from:
      RtApiCore::getDefaultInputDevice() in libal.a(RtAudio.cpp.o)
      RtApiCore::getDefaultOutputDevice() in libal.a(RtAudio.cpp.o)
      RtApiCore::getDeviceInfo(unsigned int) in libal.a(RtAudio.cpp.o)
      RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) in libal.a(RtAudio.cpp.o)
      rateListener(unsigned int, unsigned int, AudioObjectPropertyAddress const*, void*) in libal.a(RtAudio.cpp.o)
  "_AudioObjectGetPropertyDataSize", referenced from:
      RtApiCore::getDeviceCount() in libal.a(RtAudio.cpp.o)
      RtApiCore::getDeviceInfo(unsigned int) in libal.a(RtAudio.cpp.o)
      RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) in libal.a(RtAudio.cpp.o)
  "_AudioObjectHasProperty", referenced from:
      RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) in libal.a(RtAudio.cpp.o)
  "_AudioObjectRemovePropertyListener", referenced from:
      RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) in libal.a(RtAudio.cpp.o)
      RtApiCore::closeStream() in libal.a(RtAudio.cpp.o)
  "_AudioObjectSetPropertyData", referenced from:
      RtAudio::openRtApi(RtAudio::Api) in libal.a(RtAudio.cpp.o)
      RtApiCore::RtApiCore() in libal.a(RtAudio.cpp.o)
      RtApiCore::RtApiCore() in libal.a(RtAudio.cpp.o)
      RtApiCore::probeDeviceOpen(unsigned int, RtApi::StreamMode, unsigned int, unsigned int, unsigned int, unsigned long, unsigned int*, RtAudio::StreamOptions*) in libal.a(RtAudio.cpp.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]: *** [/Users/yyy/tmp/AlloLib/examples/sound/bin/stereoscene] Error 1
make[1]: *** [CMakeFiles/stereoscene.dir/all] Error 2
make: *** [all] Error 2

This error prevents building examples on macOS 10.13 and 10.14.

The linker error above is not that helpful because we cannot see the linker command. See:

https://github.com/AlloSphere-Research-Group/allolib/issues/5

-- karl

mantaraya36 commented 6 years ago

Thanks for the report, Karl. This is likely due to heavy work towards supporting windows. Should have a fix out soon.

mantaraya36 commented 6 years ago

Believe fixed. Is it fixed for you?

kybr commented 6 years ago

the linker error has disappeared. I do not know what fixed it. Maybe reference the commit here?

mantaraya36 commented 6 years ago

Too much simultaneous work.... I'm unsure which commit did the trick.