Giter Site home page Giter Site logo

Comments (4)

jiuqiant avatar jiuqiant commented on April 27, 2024 1

I am wondering if you need to uninstall and install bazel again after your get Xcode and its command line tools. Also, please do bazel clean --expunge to make sure you have a clean start.

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:

from mediapipe.

jiuqiant avatar jiuqiant commented on April 27, 2024

The error could mean that Bazel can't find an appropriate c++ compiler on your mac.
Did you install Xcode in your /Applications folder (that's where Bazel will look for it), and are the Xcode command line tools also installed?
Please see the "Installing on macOS" section in install.md for more details.
If you still have the issue, let me know the version number of the OS, Bazel, XCode you have.

from mediapipe.

DennisFaucher avatar DennisFaucher commented on April 27, 2024

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
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):

  • /Users/faucherd/Documents/Personal/Machine_Learning/Google/mediapipe/WORKSPACE:251:1
    INFO: Analyzed target //mediapipe/examples/desktop/hello_world:hello_world (0 packages loaded, 0 targets configured).
    INFO: Found 1 target...
    ERROR: /private/var/tmp/_bazel_faucherd/3a6923036fc899f82029b0fb9d70b802/external/zlib_archive/BUILD.bazel:5:1: undeclared inclusion(s) in rule '@zlib_archive//:zlib':
    this rule is missing dependency declarations for the following files included by 'external/zlib_archive/uncompr.c':

from mediapipe.

DennisFaucher avatar DennisFaucher commented on April 27, 2024

Thank you again @jiuqiant. --expunge did the trick

Target //mediapipe/examples/desktop/hello_world:hello_world up-to-date:
bazel-bin/mediapipe/examples/desktop/hello_world/hello_world
INFO: Elapsed time: 212.890s, Critical Path: 149.52s
INFO: 539 processes: 539 darwin-sandbox.
INFO: Build completed successfully, 548 total actions
INFO: Build completed successfully, 548 total actions
I0820 16:49:42.129235 210040256 hello_world.cc:56] Hello World!
I0820 16:49:42.129977 210040256 hello_world.cc:56] Hello World!
I0820 16:49:42.130002 210040256 hello_world.cc:56] Hello World!
I0820 16:49:42.130019 210040256 hello_world.cc:56] Hello World!
I0820 16:49:42.130035 210040256 hello_world.cc:56] Hello World!
I0820 16:49:42.130053 210040256 hello_world.cc:56] Hello World!
I0820 16:49:42.130074 210040256 hello_world.cc:56] Hello World!
I0820 16:49:42.130100 210040256 hello_world.cc:56] Hello World!
I0820 16:49:42.130112 210040256 hello_world.cc:56] Hello World!
I0820 16:49:42.130125 210040256 hello_world.cc:56] Hello World!

from mediapipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.