-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue: LibWhisper.swift Fails to Build Objective-C Module whisper #2757
Comments
I had this issue happen to me too! It also happens on the swift ui app example as well. The whisper.h file one seems to be an easy fix by just changing
to
Now I don't know if this is the actual "fix" for this but it the compiler seems to stop yelling at me after this change. However when you go to compile it, it still causes issues. I think there is something wrong with the way Xcode links to the whisper package which is causing issue you're seeing |
I made that change, but the issue persists, just like in the image you attached. However, with the help of someones other works and some custom build modifications, I was able to create a package that allows me to run whisper.cpp. I’m now planning to build a new SPM or pod for public release or use. |
Can you share the solution? |
Same issue here |
Yes, sure! Here you go. This is the link to my repo for the Whisper.cpp project: https://github.com/DeepBhupatkar/swift-whisper.cpp-transcription (ignore the README). I'm still working on releasing the package through SPM and CocoaPods, but for now, you can use it from my example just copy the package and use it. |
Appreciate you broski! |
@DeepBhupatkar Do you already have some experience with how well the transcription works with your example code? Did you add further optimizations regarding the whisper model parameters for running it on iOS? |
I'm encountering a build issue with the iOS Swift example for whisper.cpp. The project throws the following error:
Steps I followed:
However, the build fails with the following errors:
Key Errors:
'whisper.h' file not found with
Multiple Cannot find in scope errors, such as:
Cannot find 'whisper_free' in scope
Cannot find 'whisper_full_default_params' in scope
Cannot find 'WHISPER_SAMPLING_GREEDY' in scope
Am I missing any steps? I followed all five steps from the SwiftUI project guide : https://github.com/ggerganov/whisper.cpp/tree/master/examples/whisper.swiftui, but despite trying multiple times, this issue keeps occurring. same thing happing in object-c example.
The text was updated successfully, but these errors were encountered: