-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Build of Hello World Failed on Darwin (MacOS) #31
Comments
The error could mean that Bazel can't find an appropriate c++ compiler on your mac. |
Thank you @jiuqiant. I did not have Xcode installed. I installed Xcode and got closer but still received a (different) error. $ bazel run --verbose_failures --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/hello_world:hello_world
|
I am wondering if you need to uninstall and install bazel again after your get Xcode and its command line tools. Also, please do It seems like the error message is truncated, I would like to see more error message if possible. Moreover, can you report the version number of your OS, Bazel, clang, and XCode? Here are some links that may help: |
Thank you again @jiuqiant. --expunge did the trick Target //mediapipe/examples/desktop/hello_world:hello_world up-to-date: |
…io_classifier Implement audio classifier
$ bazel build -c opt mediapipe/examples/desktop/hello_world:hello_world
Starting local Bazel server and connecting to it...
DEBUG: Rule 'build_bazel_rules_apple' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "6c9fcae7a3597aabd43f28be89466afe0eab18de", shallow_since = "1565379803 -0700" and dropping ["tag"]
DEBUG: Call stack for the definition of repository 'build_bazel_rules_apple' which is a git_repository (rule definition at /private/var/tmp/_bazel_faucherd/3a6923036fc899f82029b0fb9d70b802/external/bazel_tools/tools/build_defs/repo/git.bzl:181:18):
ERROR: /private/var/tmp/_bazel_faucherd/3a6923036fc899f82029b0fb9d70b802/external/local_config_cc/BUILD:46:1: in cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'darwin_x86_64'
ERROR: Analysis of target '//mediapipe/examples/desktop/hello_world:hello_world' failed; build aborted: Analysis of target '@local_config_cc//:toolchain' failed; build aborted
INFO: Elapsed time: 58.077s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (53 packages loaded, 1164 targets configured)
The text was updated successfully, but these errors were encountered: