Skip to content
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

whisper.objc doesn't build in Xcode #2726

Open
toxtesters opened this issue Jan 13, 2025 · 3 comments
Open

whisper.objc doesn't build in Xcode #2726

toxtesters opened this issue Jan 13, 2025 · 3 comments

Comments

@toxtesters
Copy link

toxtesters commented Jan 13, 2025

I have the latest Xcode installed, followed the setup instructions in the README.

I encountered two errors when building

  1. "'cstdint' file not found" in the file ggml-common.h
    Xcode is saying that the C++ std library file is not found. I think this is because ggml-cpu-aarch64.cpp is being compiled with clang -x c. In the Xcode build settings I added a compiler flag to this file -x c++ and that seems to make the error go away.

After adding the -x c++ flag to that file I get a new error:

  1. ~/Developer/whisper.cpp/ggml/src/ggml-aarch64.c Build input file cannot be found: '~Developer/whisper.cpp/ggml/src/ggml-aarch64.c'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

Xcode is set up to build the files ggml-aarch64.c/h but they are not present anywhere. I don't see them anywhere after building from the command line with cmake.

@toxtesters
Copy link
Author

I checked out v1.7.2 and it works perfectly out of the box.

Something was introduced in 1.7.3 or 1.7.4 which broke building whisper.objc with Xcode.

@ggerganov
Copy link
Owner

Yes, I noticed that the example no longer works. If you fix it, please open a PR.

@iamcgn
Copy link
Contributor

iamcgn commented Jan 14, 2025

I put a PR with a fix #2736

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants