ofxAccelerometer and undefined symbols

I’m getting an ‘undefined symbols for architecture arm64’ while attempting to use the ofxAccelerometer addon. I have included the relevant header file in ofApp.h and have added ofxAccelerometer.cpp to the list of compile sources in Build Phases. The ofxAccelerometer source files are in the project folder. I’m calling ofxAccelerometer.setup() in the ofApp.mm setup section. What might I be doing wrong? I’ve attached a screen shot of the error message.


It seems that ofxAccelerometer no longer works on the later iOS versions. In any case, I solved this by using the ofxCoreMotion addon.

1 Like