我得到错误的时候,运行的终端输入视频在linux的mediapipe handtracking.please帮助me.Because我运行我的项目的时间。我正在使用Bazel 4.0.0 Mediapipe hand tracking linux 18.04
错误
bazel-out/host/bin/external/com_google_protobuf/protoc '--python_out=bazel-out/k8-fastbuild/bin/external/com_google_protobuf/python‘-Iexternal/com_google_protobuf/ -Ibazel-out/k8-fastbuild/bin/external/com_google_protobuf/python bazel-out/k8-fastbuild/bin/external/com_google_protobuf/python/google/protobuf/any.proto) external/com_google_protobuf/python/google/protobuf/api信息:来自ProtoCompile ProtoCompilepython:external/com_google_protobuf/ _pb2.py: warning:目录不存在。信息:来自python external/com_google_protobuf/python/google/protobuf/type_pb2.py: external/com_google_protobuf/ ProtoCompile : warning:目录不存在。信息:来自python external/com_google_protobuf/python/google/protobuf/duration_pb2.py: external/com_google_protobuf/ ProtoCompile : warning:目录不存在。信息:来自python external/com_google_protobuf/python/google/protobuf/compiler/plugin_pb2.py: external/com_google_protobuf/ ProtoCompile : warning:目录不存在。信息:来自python external/com_google_protobuf/python/google/protobuf/descriptor_pb2.py: external/com_google_protobuf/ ProtoCompile : warning:目录不存在。信息:来自python external/com_google_protobuf/python/google/protobuf/struct_pb2.py: external/com_google_protobuf/ ProtoCompile : warning:目录不存在。信息:来自python external/com_google_protobuf/python/google/protobuf/field_mask_pb2.py: external/com_google_protobuf/ ProtoCompile : warning:目录不存在。信息:来自python external/com_google_protobuf/python/google/protobuf/timestamp_pb2.py: external/com_google_protobuf/ ProtoCompile : warning:目录不存在。信息:来自python external/com_google_protobuf/python/google/protobuf/any_pb2.py: external/com_google_protobuf/ ProtoCompile : warning:目录不存在。
mediapipe/mediapipe/calculators/tensor/BUILD:594:11:编译堆栈失败:(退出1):gcc失败:执行命令时出错/usr/bin/gcc堆栈保护器-U_FORTIFY_SOURCE -fstack- mediapipe/calculators/tensor/image_to_tensor_converter_opencv.cc - -Wall -Wunused-但-set-mediapipe/calculators/tensor/image_to_tensor_converter_opencv.cc -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1‘-DNDEBUG -ffunction Section...(跳过剩余的61个参数)
使用-- sandbox _debug查看来自沙箱的详细消息gcc失败:执行命令时出错/usr/bin/gcc fstack-protector -Wall -Wunused-但-set-parameter-Wno-free-nonheap- -g0 -fno-omit-frame-pointer -O2 '-D_FORTIFY_SOURCE=1‘-DNDEBUG -ffunction Section...(跳过剩余的61个参数)
使用-- sandbox _debug查看成员函数'virtual absl::lts_2020_09_23::StatusOrmediapipe::Tensor mediapipe::{anonymous}::OpenCvProcessor::Convert(const mediapipe::Image&,const mediapipe::RotatedRect&,const mediapipe::Size&,float,float)':mediapipe/calculators/tensor/image_to_tensor_converter_opencv.cc:106:12:错误:无法将'tensor‘从'mediapipe::Tensor’转换为'absl::lts_2020_09_23::StatusOrmediapipe::Tensor‘返回张量;^~
发布于 2021-03-13 05:11:27
这是关于你的编译器版本的。将您的gcc版本升级到8或更高版本。看起来不错。
https://stackoverflow.com/questions/66544059
复制相似问题