问题描述
环境
Macbook air M1 2020。
大苏尔 11.3.1.
我想做什么
我想成功运行下面的“mediapipe c++ hello_world”。 https://google.github.io/mediapipe/getting_started/install.html#installing-on-macos
我尝试了以下尝试但失败了。
尝试1
做
只要遵循指南
https://google.github.io/mediapipe/getting_started/install.html#installing-on-macos
- 4.安装 OpenCV 和 FFmpeg。 => 我使用了选项 1。
错误
在第 6 课中,我遇到了以下错误。
// run lesson 6
mediapipe % bazel run --define MEDIAPIPE_disABLE_GPU=1 \
mediapipe/examples/desktop/hello_world:hello_world
2021/05/23 21:06:14 Downloading https://releases.bazel.build/3.7.2/release/bazel-3.7.2-darwin-arm64...
2021/05/23 21:06:16 Could not download Bazel: HTTP GET https://releases.bazel.build/3.7.2/release/bazel-3.7.2-darwin-arm64 Failed with error 404
mediapipe %
尝试2
“try1 bug”表示 bazel 尝试从 github 版本下载 bazel-3.7.2-darwin-arm64。
但是,发布版本 3.7.2 没有 darwin-arm64 的类型。
https://github.com/bazelbuild/bazel/releases/tag/3.7.2
幸运的是,发布版本 4.1.0 具有 darwin-arm64 的类型。
https://github.com/bazelbuild/bazel/releases/tag/4.1.0
然后我尝试下载bazel-4.1.0-darwin-arm64。
做
在根存储库“mediapipe”中,修复“.bazelversion”文件如下。
4.1.0
然后,重试第 6 课并开始下载。
错误
// run lesson 6 again
mediapipe % bazel run --define MEDIAPIPE_disABLE_GPU=1 \
mediapipe/examples/desktop/hello_world:hello_world
~~download process~~
ERROR: /Users/<some_mid_path>/mediapipe/mediapipe/framework/BUILD:971:11: Compiling mediapipe/framework/scheduler_queue.cc Failed: (Aborted): wrapped_clang Failed: error executing command external/local_config_cc/wrapped_clang '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -O0 -DDEBUG '-std=c++11' ... (remaining 60 argument(s) skipped)
Use --sandBox_debug to see verbose messages from the sandBox
mediapipe/framework/scheduler_queue.cc:212:3: error: expected expression
AUTORELEASEPOOL {
^
mediapipe/framework/scheduler_queue.cc:29:25: note: expanded from macro 'AUTORELEASEPOOL'
#define AUTORELEASEPOOL @autoreleasepool
^
mediapipe/framework/scheduler_queue.cc:226:5: error: use of undeclared identifier 'is_idle'
is_idle = IsIdle();
^
mediapipe/framework/scheduler_queue.cc:228:7: error: use of undeclared identifier 'is_idle'
if (is_idle && idle_callback_) {
^
3 errors generated.
Error in child process '/usr/bin/xcrun'. 1
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: 1.430s,Critical Path: 1.26s
INFO: 4 processes: 3 internal,1 darwin-sandBox.
Failed: Build did NOT complete successfully
Failed: Build did NOT complete successfully
mediapipe %
现在情况
那我暂时放弃了,向你提问!
有人能解决这个问题吗??
提前致谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)