Linker error ofxAudioUnit

Hello all,
I’m totally new to the oF forum. I just started downloading and using some ofxAddons. I downloaded ofxAudioUnit and had no problem running through all the example programs. When I try to utilize the addon in my own project however I’m running into a bunch of errors that read:

Link to my GitHub to view program

Undefined symbols for architecture i386:
“_AudioUnitGetProperty”, referenced from:
ofxAudioUnitDSPNode::setSource(ofxAudioUnit*) in ofxAudioUnitDSPNode.o
“_AudioUnitRender”, referenced from:
ofxAudioUnit::render(unsigned long*, AudioTimeStamp const*, unsigned long, unsigned long, AudioBufferList*) in ofxAudioUnit.o
“_AudioOutputUnitStop”, referenced from:
ofxAudioUnitOutput::stop() in ofxAudioUnitOutput.o
“_AudioUnitSetProperty”, referenced from:
ofxAudioUnit::connectTo(ofxAudioUnit&, int, int) in ofxAudioUnit.o
“_AudioUnitUninitialize”, referenced from:
ofxAudioUnit::AudioUnitDeleter(ComponentInstanceRecord**) in ofxAudioUnit.o
“_AudioComponentInstanceDispose”, referenced from:
ofxAudioUnit::AudioUnitDeleter(ComponentInstanceRecord**) in ofxAudioUnit.o
“_AudioComponentInstanceNew”, referenced from:
ofxAudioUnit::allocUnit(AudioComponentDescription) in ofxAudioUnit.o
“_AudioComponentFindNext”, referenced from:
ofxAudioUnit::allocUnit(AudioComponentDescription) in ofxAudioUnit.o
“_AudioOutputUnitStart”, referenced from:
ofxAudioUnitOutput::start() in ofxAudioUnitOutput.o
“_AudioUnitInitialize”, referenced from:
ofxAudioUnit::initUnit() in ofxAudioUnit.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I appreciate any help

Looks like you just need to add a few of the frameworks ofxAudioUnit needs. They’ll already be on your computer. Namely:

AudioUnit
CoreAudioKit
CoreMIDI

See this stack overflow post for a step-by-step if you’re not familiar with how to add system frameworks in Xcode.

Thanks so much Adam. I’m like 90% there. I added the frameworks like you said and it ran with the code I had up on github. I added one command “if(key == ‘r’) sampler.showUI();” and I still get one error:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

So I just created a new project and did exactly what you said and lost that error, program works fine and I’m utilizing the audio unit sampler. Awesome addon!