微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决构建 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 举报,一经查实,本站将立刻删除。