Skip to content

whisper.objc doesn't build in Xcode #2726

@toxtesters

Description

@toxtesters

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions