Closed stephanschulz closed 1 year ago
I just pushed an update. let me know if that fixed this issue
cp: directory ../libs/whisper_cpp/models does not exist
fixed that. let me know if it works.
the script seems to work now.
but upon compiling I get this error:
that is because you need ofxSampleRate. do you have it installed? those missing symbols are from it
@stephanschulz This issue is likely due to the fact that you are building for arm64, but libsamplerate.a included with ofxSampleRate is x86_64 only. If you scroll up your build output, you will probably see a yellow warning about this: https://github.com/roymacdonald/ofxSampleRate/issues/1
For now, I managed to get the example to run on my M1 machine by replacing the .a with one installed via homebrew:
brew install libsamplerate
mv ../ofxSampleRate/libs/libsamplerate/lib/osx/libsamplerate.a ../ofxSampleRate/libs/libsamplerate/lib/osx/libsamplerate-bak.a
cp /opt/homebrew/lib/libsamplerate.a ../ofxSampleRate/libs/libsamplerate/lib/osx
thanks @danomatika! I though that @stephanschulz still had an intel mac, but from looking closer to the screenshots I see it is an arm mac.
correct I am on an M1, macOS 12.6.3
I guess at this point to make it work I will have to follow @danomatika steps. @roymacdonald is there any way your setup sh can already take care of this? it's not that I do not want to do the work, it's more a question of streamlining the setup process :)
Hi stephan, I will make a universal lib (both arm64 and x86_64) and upload it. I dont have an m1 mac so I cant really make a script with the steps that danomatika describes, in particular because I know that the paths where homebrew saves to are different for each architecture.
which brew
returns /opt/homebrew/bin/brew
on my M1
hi @stephanschulz I added a build_lib.sh script to ofxSampleRate. Can you please update ofxSampleRate and run this new script in it once done update the ofxWhisper example with project generator
I updated both addons. but still get the same error
@stephanschulz did you run the build_libs.sh script in ofxSampleRate? not the one in ofxWhisper
yes I did and now it works on an M1 MBP. thank you very much,
I think similar to this issue https://github.com/zkmkarlsruhe/ofxTensorFlow2/issues/35#issuecomment-1451153776 I am not able to successfully run the
build_lib.sh
I used the GitHub desktop to clone your add-on.