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

mediapipe MacOS helloworld failure #52

Closed
blackwindy opened this issue Aug 26, 2019 · 6 comments
Closed

mediapipe MacOS helloworld failure #52

blackwindy opened this issue Aug 26, 2019 · 6 comments
Assignees
Labels
platform:desktop desktop type:build/install For Build and Installation issues

Comments

@blackwindy
Copy link

pjhuang-macbookpro:mediapipe pjhuang$ bazel run --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_pjhuang/afa06e99810fc5bceaeb2263198f79fa/external/bazel_tools/tools/build_defs/repo/git.bzl:181:18):

  • /Users/pjhuang/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_pjhuang/afa06e99810fc5bceaeb2263198f79fa/external/com_github_glog_glog/BUILD.bazel:68:1: C++ compilation of rule '@com_github_glog_glog//:glog' failed (Exit 1) cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 36 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
external/com_github_glog_glog/src/logging.cc:1227:3: error: use of undeclared identifier 'RawLog__SetLastTime'
RawLog__SetLastTime(data_->tm_time_, usecs);
^
1 error generated.
Target //mediapipe/examples/desktop/hello_world:hello_world failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.997s, Critical Path: 0.89s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

pjhuang-macbookpro:mediapipe pjhuang$ bazel version
Build label: 0.28.1-homebrew
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 19 16:09:50 2019 (1563552590)
Build timestamp: 1563552590
Build timestamp as int: 1563552590

@MegatronKing
Copy link

I have this issue too.

@camillol camillol added the type:build/install For Build and Installation issues label Aug 27, 2019
@mgyong mgyong added the platform:desktop desktop label Aug 30, 2019
@mmxuan18
Copy link

mmxuan18 commented Sep 3, 2019

me too on macos

@jiuqiant
Copy link
Collaborator

jiuqiant commented Sep 5, 2019

It seems to be a compatibility issue between Mediapipe and OpenCV4.1.1 on macos.
The glog v0.4.0 installed by brew for OpenCV4.1.1 somehow is not compatible with the glog v0.3.5 used by MediaPipe.

We are working on a fix. For now, a temporary workaround could be

$ brew uninstall --ignore-dependencies glog
$ bazel clean --expunge
$ bazel run --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/hello_world:hello_world

@jiuqiant
Copy link
Collaborator

jiuqiant commented Sep 5, 2019

In 785d266, we switched the default OpenCV version to 3.4.5 on macos.

You can do the following steps to switch the opencv dependency and rebuild the hello world example:

brew uninstall opencv
brew uninstall --ignore-dependencies glog
brew install opencv@3
git pull
bazel clean --expunge
export GLOG_logtostderr=1 && bazel run --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/hello_world:hello_world

@jiuqiant jiuqiant added the stat:awaiting response Waiting for user response label Sep 10, 2019
@jiuqiant
Copy link
Collaborator

We are closing this issue for now due to lack of activity. Please comment if this is still an issue for you.

@rawnsley
Copy link

rawnsley commented Oct 15, 2019

FYI using opencv@3 on it's own didn't work for me. I still had to run brew uninstall --ignore-dependencies glog afterwards. I had never run brew install opencv (without the @ version qualifier)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:desktop desktop type:build/install For Build and Installation issues
Projects
None yet
Development

No branches or pull requests

8 participants