构建 mediapipe 的手部跟踪示例时出错

问题描述

我使用的是 ubuntu 16.04,我试图在 mediapipe 包中运行handtracking 示例,当我使用 bazel 运行构建命令时,出现以下错误

ERROR: /home/mahtab/mediapipe/mediapipe/util/BUILD:127:11: C++ compilation of rule '//mediapipe/util:annotation_renderer' Failed (Exit 1): gcc Failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 60 argument(s) skipped)

Use --sandBox_debug to see verbose messages from the sandBox gcc Failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 60 argument(s) skipped)

Use --sandBox_debug to see verbose messages from the sandBox
mediapipe/util/annotation_renderer.cc: In function 'int mediapipe::{anonymous}::ClampThickness(int)':
mediapipe/util/annotation_renderer.cc:43:10: error: 'clamp' is not a member of 'std'
   return std::clamp(thickness,1,kMaxThickness);
          ^~~
Target //mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu Failed to build
Use --verbose_failures to see the command lines of Failed build steps.
INFO: Elapsed time: 2.912s,Critical Path: 2.56s
INFO: 154 processes: 150 internal,4 linux-sandBox.
Failed: Build did NOT complete successfully

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)