You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Last pull request lets ofxFFT work properly with OF 0.9.0 but the precompiled libraries for OSX are dated and seem to only work if you build in 32bit - throws these errors on 64bit - might need to just make updates to those libraries and hope it doesn't break much? http://www.fftw.org
ld: warning: ignoring file ../../../addons/ofxFft/libs/fftw/lib/osx/fftw3f.a, file was built for archive which is not the architecture being linked (x86_64): ../../../addons/ofxFft/libs/fftw/lib/osx/fftw3f.a Undefined symbols for architecture x86_64: "_fftwf_destroy_plan", referenced from: ofxFftw::~ofxFftw() in ofxFftw.o "_fftwf_plan_r2r_1d", referenced from: ofxFftw::setup(int, fftWindowType) in ofxFftw.o "_fftwf_cleanup", referenced from: ofxFftw::~ofxFftw() in ofxFftw.o "_fftwf_malloc", referenced from: ofxFftw::setup(int, fftWindowType) in ofxFftw.o "_fftwf_free", referenced from: ofxFftw::~ofxFftw() in ofxFftw.o "_fftwf_execute", referenced from: ofxFftw::executeFft() in ofxFftw.o ofxFftw::executeIfft() in ofxFftw.o ld: symbol(s) not found for architecture x86_64
The text was updated successfully, but these errors were encountered:
I faced the same issue and found a solution. As mentioned by @laserpilot, just go to http://www.fftw.org. Download the latest files and compile them on your own. I used the following commands from the terminal.
This creates 4 libraries at /usr/local/lib and their .la part. I copied them all into the ofxFft/libs/fftw/lib folder, replacing the old ones. In addition, I also replaced the fftw3.h file in ofxFft/libs/fftw/lib with the one from /usr/local/include.
Once this is done, I executed the following command in the project root folder: xattr -cr
and made a Clean in XCode.
Then the compiling worked.
Please note, if you compile the libraries on e.g. Mojave you might get a lot of compiler warnings that the libraries have been compiled for a newer version of macOS if your target version is lower. I assume that there is another command to force to compile for an older version of macOS but I did not yet dive into this.
Maybe the ofxFft can be updated to fix this issue.
(note that both commands above don't need sudo)
To target another osx SDK, I used this command : ./configure --disable-shared --enable-static --enable-float --enable-threads CFLAGS="-arch x86_64 -mmacosx-version-min=10.9"
Last pull request lets ofxFFT work properly with OF 0.9.0 but the precompiled libraries for OSX are dated and seem to only work if you build in 32bit - throws these errors on 64bit - might need to just make updates to those libraries and hope it doesn't break much? http://www.fftw.org
ld: warning: ignoring file ../../../addons/ofxFft/libs/fftw/lib/osx/fftw3f.a, file was built for archive which is not the architecture being linked (x86_64): ../../../addons/ofxFft/libs/fftw/lib/osx/fftw3f.a Undefined symbols for architecture x86_64: "_fftwf_destroy_plan", referenced from: ofxFftw::~ofxFftw() in ofxFftw.o "_fftwf_plan_r2r_1d", referenced from: ofxFftw::setup(int, fftWindowType) in ofxFftw.o "_fftwf_cleanup", referenced from: ofxFftw::~ofxFftw() in ofxFftw.o "_fftwf_malloc", referenced from: ofxFftw::setup(int, fftWindowType) in ofxFftw.o "_fftwf_free", referenced from: ofxFftw::~ofxFftw() in ofxFftw.o "_fftwf_execute", referenced from: ofxFftw::executeFft() in ofxFftw.o ofxFftw::executeIfft() in ofxFftw.o ld: symbol(s) not found for architecture x86_64
The text was updated successfully, but these errors were encountered: