Having problems compiling the Audio Unit template from Fred Guile's fabulous tutorial at Sample-Hold.com
I did figure out that I had to delete and reimport all the core audio libraries so that they referenced the proper place on my computer. (I used all the right import settings when dragging them in)
but now I'm getting 37 Apple Mach-O Linker (Id) Errors which I can't seem to eradicate. They all seem to reference sound oriented symbols like _vDSP_create_fftsetup and _AudioObjectGetPropertyData indicating that I'm missing a framework or something. I did an hour's worth of googling to no avail. Any help would be appreciated..
My apologies for what I'm assuming is a noob mistake.
-Matt
Undefined symbols for architecture x86_64: "_AddEventTypesToHandler", referenced from: CarbonEventHandler::WantEventTypes(OpaqueEventTargetRef*, unsigned int, EventTypeSpec const*) in CarbonEventHandler.o "_AudioDeviceCreateIOProcID", referenced from: CAHALAudioDevice::CreateIOProcID(int (*)(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*), void*) in CAHALAudioDevice.o "_AudioDeviceDestroyIOProcID", referenced from: CAHALAudioDevice::DestroyIOProcID(int (*)(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) in CAHALAudioDevice.o "_AudioDeviceGetCurrentTime", referenced from: CAHALAudioDevice::GetCurrentTime(AudioTimeStamp&) in CAHALAudioDevice.o "_AudioDeviceGetNearestStartTime", referenced from: CAHALAudioDevice::GetNearestStartTime(AudioTimeStamp&, bool, bool) in CAHALAudioDevice.o "_AudioDeviceStart", referenced from: CAHALAudioDevice::StartIOProc(int (*)(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) in CAHALAudioDevice.o "_AudioDeviceStartAtTime", referenced from: CAHALAudioDevice::StartIOProcAtTime(int (*)(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*), AudioTimeStamp&, bool, bool) in CAHALAudioDevice.o "_AudioDeviceStop", referenced from: CAHALAudioDevice::StopIOProc(int (*)(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) in CAHALAudioDevice.o "_AudioDeviceTranslateTime", referenced from: CAHALAudioDevice::TranslateTime(AudioTimeStamp const&, AudioTimeStamp&) in CAHALAudioDevice.o "_AudioObjectAddPropertyListener", referenced from: CAHALAudioObject::AddPropertyListener(AudioObjectPropertyAddress const&, int (*)(unsigned int, unsigned int, AudioObjectPropertyAddress const*, void*), void*) in CAHALAudioObject.o "_AudioObjectGetPropertyData", referenced from: CAHALAudioObject::GetPropertyData(AudioObjectPropertyAddress const&, unsigned int, void const*, unsigned int&, void*) const in CAHALAudioObject.o "_AudioObjectGetPropertyDataSize", referenced from: CAHALAudioObject::GetPropertyDataSize(AudioObjectPropertyAddress const&, unsigned int, void const*) const in CAHALAudioObject.o "_AudioObjectHasProperty", referenced from: CAHALAudioObject::HasProperty(AudioObjectPropertyAddress const&) const in CAHALAudioObject.o "_AudioObjectIsPropertySettable", referenced from: CAHALAudioObject::ObjectExists(unsigned int) in CAHALAudioObject.o CAHALAudioObject::IsPropertySettable(AudioObjectPropertyAddress const&) const in CAHALAudioObject.o "_AudioObjectRemovePropertyListener", referenced from: CAHALAudioObject::RemovePropertyListener(AudioObjectPropertyAddress const&, int (*)(unsigned int, unsigned int, AudioObjectPropertyAddress const*, void*), void*) in CAHALAudioObject.o "_AudioObjectSetPropertyData", referenced from: CAHALAudioObject::SetPropertyData(AudioObjectPropertyAddress const&, unsigned int, void const*, unsigned int, void const*) in CAHALAudioObject.o "_CallNextEventHandler", referenced from: AUCarbonViewControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o "_GetEventClass", referenced from: AUCarbonViewControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o AUPropertyControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o "_GetEventKind", referenced from: AUCarbonViewControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o AUPropertyControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o "_GetEventParameter", referenced from: AUCarbonViewControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o "_GetMainEventLoop", referenced from: AUCarbonViewBase::CreateEventLoopTimer(float, float) in AUCarbonViewBase.o "_InstallEventHandler", referenced from: CarbonEventHandler::WantEventTypes(OpaqueEventTargetRef*, unsigned int, EventTypeSpec const*) in CarbonEventHandler.o "_InstallEventLoopTimer", referenced from: AUCarbonViewBase::CreateEventLoopTimer(float, float) in AUCarbonViewBase.o "_RemoveEventHandler", referenced from: CarbonEventHandler::~CarbonEventHandler() in CarbonEventHandler.o "_vDSP_create_fftsetup", referenced from: CASpectralProcessor::CASpectralProcessor(unsigned int, unsigned int, unsigned int, unsigned int) in CASpectralProcessor.o "_vDSP_ctoz", referenced from: CASpectralProcessor::DoFwdFFT() in CASpectralProcessor.o "_vDSP_destroy_fftsetup", referenced from: CASpectralProcessor::~CASpectralProcessor() in CASpectralProcessor.o "_vDSP_fft_zrip", referenced from: CASpectralProcessor::DoFwdFFT() in CASpectralProcessor.o CASpectralProcessor::DoInvFFT() in CASpectralProcessor.o "_vDSP_maxmgv", referenced from: CASpectralProcessor::GetMagnitude(AudioBufferList*, float*, float*) in CASpectralProcessor.o "_vDSP_minmgv", referenced from: CASpectralProcessor::GetMagnitude(AudioBufferList*, float*, float*) in CASpectralProcessor.o "_vDSP_vadd", referenced from: CASpectralProcessor::OverlapAddOutput() in CASpectralProcessor.o "_vDSP_vmul", referenced from: CASpectralProcessor::DoWindowing() in CASpectralProcessor.o "_vDSP_vsma", referenced from: AUPannerBase::BypassRender(unsigned int&, AudioTimeStamp const&, unsigned int) in AUPannerBase.o "_vDSP_vsmul", referenced from: CASpectralProcessor::DoInvFFT() in CASpectralProcessor.o "_vDSP_ztoc", referenced from: CASpectralProcessor::DoInvFFT() in CASpectralProcessor.o "_vDSP_zvabs", referenced from: CASpectralProcessor::GetMagnitude(AudioBufferList*, float*, float*) in CASpectralProcessor.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
(null): "_AddEventTypesToHandler", referenced from:
(null): CarbonEventHandler::WantEventTypes(OpaqueEventTargetRef*, unsigned int, EventTypeSpec const*) in CarbonEventHandler.o
(null): "_AudioDeviceCreateIOProcID", referenced from:
(null): CAHALAudioDevice::CreateIOProcID(int (*)(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*), void*) in CAHALAudioDevice.o
(null): "_AudioDeviceDestroyIOProcID", referenced from:
(null): CAHALAudioDevice::DestroyIOProcID(int (*)(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) in CAHALAudioDevice.o
(null): "_AudioDeviceGetCurrentTime", referenced from:
(null): CAHALAudioDevice::GetCurrentTime(AudioTimeStamp&) in CAHALAudioDevice.o
(null): "_AudioDeviceGetNearestStartTime", referenced from:
(null): CAHALAudioDevice::GetNearestStartTime(AudioTimeStamp&, bool, bool) in CAHALAudioDevice.o
(null): "_AudioDeviceStart", referenced from:
(null): CAHALAudioDevice::StartIOProc(int (*)(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) in CAHALAudioDevice.o
(null): "_AudioDeviceStartAtTime", referenced from:
(null): CAHALAudioDevice::StartIOProcAtTime(int (*)(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*), AudioTimeStamp&, bool, bool) in CAHALAudioDevice.o
(null): "_AudioDeviceStop", referenced from:
(null): CAHALAudioDevice::StopIOProc(int (*)(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*)) in CAHALAudioDevice.o
(null): "_AudioDeviceTranslateTime", referenced from:
(null): CAHALAudioDevice::TranslateTime(AudioTimeStamp const&, AudioTimeStamp&) in CAHALAudioDevice.o
(null): "_AudioObjectAddPropertyListener", referenced from:
(null): CAHALAudioObject::AddPropertyListener(AudioObjectPropertyAddress const&, int (*)(unsigned int, unsigned int, AudioObjectPropertyAddress const*, void*), void*) in CAHALAudioObject.o
(null): "_AudioObjectGetPropertyData", referenced from:
(null): CAHALAudioObject::GetPropertyData(AudioObjectPropertyAddress const&, unsigned int, void const*, unsigned int&, void*) const in CAHALAudioObject.o
(null): "_AudioObjectGetPropertyDataSize", referenced from:
(null): CAHALAudioObject::GetPropertyDataSize(AudioObjectPropertyAddress const&, unsigned int, void const*) const in CAHALAudioObject.o
(null): "_AudioObjectHasProperty", referenced from:
(null): CAHALAudioObject::HasProperty(AudioObjectPropertyAddress const&) const in CAHALAudioObject.o
(null): "_AudioObjectIsPropertySettable", referenced from:
(null): CAHALAudioObject::ObjectExists(unsigned int) in CAHALAudioObject.o
(null): CAHALAudioObject::IsPropertySettable(AudioObjectPropertyAddress const&) const in CAHALAudioObject.o
(null): "_AudioObjectRemovePropertyListener", referenced from:
(null): CAHALAudioObject::RemovePropertyListener(AudioObjectPropertyAddress const&, int (*)(unsigned int, unsigned int, AudioObjectPropertyAddress const*, void*), void*) in CAHALAudioObject.o
(null): "_AudioObjectSetPropertyData", referenced from:
(null): CAHALAudioObject::SetPropertyData(AudioObjectPropertyAddress const&, unsigned int, void const*, unsigned int, void const*) in CAHALAudioObject.o
(null): "_CallNextEventHandler", referenced from:
(null): AUCarbonViewControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o
(null): "_GetEventClass", referenced from:
(null): AUCarbonViewControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o
(null): AUPropertyControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o
(null): "_GetEventKind", referenced from:
(null): AUCarbonViewControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o
(null): AUPropertyControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o
(null): "_GetEventParameter", referenced from:
(null): AUCarbonViewControl::HandleEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) in AUCarbonViewControl.o
(null): "_GetMainEventLoop", referenced from:
(null): AUCarbonViewBase::CreateEventLoopTimer(float, float) in AUCarbonViewBase.o
(null): "_InstallEventHandler", referenced from:
(null): CarbonEventHandler::WantEventTypes(OpaqueEventTargetRef*, unsigned int, EventTypeSpec const*) in CarbonEventHandler.o
(null): "_InstallEventLoopTimer", referenced from:
(null): AUCarbonViewBase::CreateEventLoopTimer(float, float) in AUCarbonViewBase.o
(null): "_RemoveEventHandler", referenced from:
(null): CarbonEventHandler::~CarbonEventHandler() in CarbonEventHandler.o
(null): "_vDSP_create_fftsetup", referenced from:
(null): CASpectralProcessor::CASpectralProcessor(unsigned int, unsigned int, unsigned int, unsigned int) in CASpectralProcessor.o
(null): "_vDSP_ctoz", referenced from:
(null): CASpectralProcessor::DoFwdFFT() in CASpectralProcessor.o
(null): "_vDSP_destroy_fftsetup", referenced from:
(null): CASpectralProcessor::~CASpectralProcessor() in CASpectralProcessor.o
(null): "_vDSP_fft_zrip", referenced from:
(null): CASpectralProcessor::DoFwdFFT() in CASpectralProcessor.o
(null): CASpectralProcessor::DoInvFFT() in CASpectralProcessor.o
(null): "_vDSP_maxmgv", referenced from:
(null): CASpectralProcessor::GetMagnitude(AudioBufferList*, float*, float*) in CASpectralProcessor.o
(null): "_vDSP_minmgv", referenced from:
(null): CASpectralProcessor::GetMagnitude(AudioBufferList*, float*, float*) in CASpectralProcessor.o
(null): "_vDSP_vadd", referenced from:
(null): CASpectralProcessor::OverlapAddOutput() in CASpectralProcessor.o
(null): "_vDSP_vmul", referenced from:
(null): CASpectralProcessor::DoWindowing() in CASpectralProcessor.o
(null): "_vDSP_vsma", referenced from:
(null): AUPannerBase::BypassRender(unsigned int&, AudioTimeStamp const&, unsigned int) in AUPannerBase.o
(null): "_vDSP_vsmul", referenced from:
(null): CASpectralProcessor::DoInvFFT() in CASpectralProcessor.o
(null): "_vDSP_ztoc", referenced from:
(null): CASpectralProcessor::DoInvFFT() in CASpectralProcessor.o
(null): "_vDSP_zvabs", referenced from:
(null): CASpectralProcessor::GetMagnitude(AudioBufferList*, float*, float*) in CASpectralProcessor.o
(null): Symbol(s) not found for architecture x86_64
(null): Linker command failed with exit code 1 (use -v to see invocation)
|