C++ 如何使用c+运行mediapipe+;关于m1mac 环境

C++ 如何使用c+运行mediapipe+;关于m1mac 环境,c++,apple-m1,mediapipe,C++,Apple M1,Mediapipe,Macbook air M1 2020。 大苏尔11.3.1 我想做什么 我想成功地运行下面的“MealAPIPE C++ HeloWord Word”。 我尝试了以下尝试,但失败了 try1 做 只需遵循指导原则 4.安装OpenCV和FFmpeg。=>我使用了选项1 缺陷 在第6课中,我遇到了下面的一个错误 // run lesson 6 mediapipe % bazel run --define MEDIAPIPE_DISABLE_GPU=1 \ mediapipe/ex

Macbook air M1 2020。
大苏尔11.3.1

我想做什么 <>我想成功地运行下面的“MealAPIPE C++ HeloWord Word”。

我尝试了以下尝试,但失败了

try1 做 只需遵循指导原则

  • 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 %
try2 “try1 bug”说bazel试图从github版本下载bazel-3.7.2-darwin-arm64
但是,发行版3.7.2没有darwin-arm64的类型

幸运的是,版本4.1.0的类型是darwin-arm64。

然后我尝试下载bazel-4.1.0-darwin-arm64

做 在根存储库“mediapipe”中,修复“.bazeVersion”文件,如下所示

4.1.0
然后,重试第6课并开始下载

缺陷 但是下载没有成功完成:我得到了另一个bug,如下所示

// 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 % 

//再次运行第6课
mediapipe%bazel运行--定义mediapipe\u禁用\u GPU=1\
mediapipe/examples/desktop/hello\u world:hello\u world
下载过程~~
错误:/Users//mediapipe/mediapipe/framework/BUILD:971:11:编译mediapipe/framework/scheduler_queue.cc失败:(中止):wrapped_clang失败:执行命令external/local_config_cc/wrapped_clang'-D_FORTIFY_SOURCE=1'-fstack protector-fcolor diagnostics-Wall-Wthread safety-Wself assign-fno省略帧指针-O0-DDEBUG'-std=c++11'时出错。。。(跳过其余60个参数)
使用--sandbox_debug查看来自沙盒的详细消息
mediapipe/framework/scheduler_queue.cc:212:3:错误:应为表达式
自动释放池{
^
mediapipe/framework/scheduler_queue.cc:29:25:注意:从宏“AUTORELEASEPOOL”展开
#定义AUTORELEASEPOOL@AUTORELEASEPOOL
^
mediapipe/framework/scheduler_queue.cc:226:5:错误:使用了未声明的标识符“is_idle”
is_idle=IsIdle();
^
mediapipe/framework/scheduler_queue.cc:228:7:错误:使用了未声明的标识符“is_idle”
如果(空闲和空闲){
^
产生了3个错误。
子进程“/usr/bin/xcrun”中出错。1
目标//mediapipe/examples/desktop/hello\u world:未能生成hello\u world
使用--verbose_failures查看失败构建步骤的命令行。
信息:运行时间:1.430s,关键路径:1.26s
信息:4个进程:3个内部进程,1个达尔文沙箱。
失败:生成未成功完成
失败:生成未成功完成
中间管道%
现在情况 然后我暂时放弃了,向你提问

有人能解决这个问题吗??
提前谢谢