ubuntu - 构建 mediapipe 的手部跟踪示例时出错
问题描述
我正在使用 ubuntu 16.04,我正在尝试在 mediapipe 包中运行手部跟踪示例,当我使用 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
解决方案
推荐阅读
- python - 升级 seaborn 但运行 sns.__version__ 时版本仍然相同
- python - CUPY:矩阵向量乘法比向量向量乘法和小尺寸的 l2norm 更快
- swift - SwiftUI 在打开地图时显示特定地标
- c# - EF Core 代码首次迁移:“无法确定一对一关系的子/依赖方”
- html - 表格标题和正文布局
- ruby-on-rails - ActiveAdmin 嵌套 has_many
- node.js - 我在使用 AWS SES 发送电子邮件时收到“ConfigError:Missing region in config”
- kubernetes - 设置 Kubernetes 时,为什么我的 Gitlab GUI 看不到 Helm Tiller 应用程序?
- jquery - 如何选择写为标签的文本的第一个字母并更改它的css?
- c - 嵌套并行:为什么只有主线程运行并执行并行 for 循环四次?