Closed lognat0704 closed 2 years ago
I follow the instruction to build up the new Autoflip in docker, but return the following error message:
System information (Please provide as much relevant information as possible)
OS Platform and Distribution :iOS 11.3.1 +cDocker MediaPipe version: 0.8.6 Bazel version: bazel 3.7.2 Solution: Autoflip Programming Language: C++
ERROR: /mediapipe/mediapipe/examples/desktop/autoflip/calculators/BUILD:513:11: C++ compilation of rule '//mediapipe/examples/desktop/autoflip/calculators:text_detection_calculator' failed (Exit 1): process-wrapper failed: error executing command (cd /root/.cache/bazel/_bazel_root/4884d566396e9b67b62185751879ad14/sandbox/processwrapper-sandbox/354/execroot/mediapipe && \ exec env - \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ PWD=/proc/self/cwd \ TMPDIR=/tmp \ /root/.cache/bazel/_bazel_root/install/46850c2a96e4b4b07623822a03209f74/process-wrapper '--timeout=0' '--kill_delay=15' /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 -fdata-sections '-std=c++0x' -MD -MF bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/text_detection_calculator/text_detection_calculator.d '-frandom-seed=bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/text_detection_calculator/text_detection_calculator.o' -DMEDIAPIPE_PROFILER_AVAILABLE '-DMEDIAPIPE_DISABLE_GPU=1' -iquote . -iquote bazel-out/k8-opt/bin -iquote external/com_google_protobuf -iquote bazel-out/k8-opt/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/k8-opt/bin/external/zlib -iquote external/linux_opencv -iquote bazel-out/k8-opt/bin/external/linux_opencv -iquote external/com_github_glog_glog -iquote bazel-out/k8-opt/bin/external/com_github_glog_glog -iquote external/com_github_gflags_gflags -iquote bazel-out/k8-opt/bin/external/com_github_gflags_gflags -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -Ibazel-out/k8-opt/bin/external/com_github_glog_glog/_virtual_includes/default_glog_headers -Ibazel-out/k8-opt/bin/external/com_github_gflags_gflags/_virtual_includes/gflags -isystem external/com_google_protobuf/src -isystem bazel-out/k8-opt/bin/external/com_google_protobuf/src -isystem external/zlib -isystem bazel-out/k8-opt/bin/external/zlib -w '-std=c++17' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c mediapipe/examples/desktop/autoflip/calculators/text_detection_calculator.cc -o bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/text_detection_calculator/text_detection_calculator.o) process-wrapper failed: error executing command (cd /root/.cache/bazel/_bazel_root/4884d566396e9b67b62185751879ad14/sandbox/processwrapper-sandbox/354/execroot/mediapipe && \ exec env - \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ PWD=/proc/self/cwd \ TMPDIR=/tmp \ /root/.cache/bazel/_bazel_root/install/46850c2a96e4b4b07623822a03209f74/process-wrapper '--timeout=0' '--kill_delay=15' /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 -fdata-sections '-std=c++0x' -MD -MF bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/text_detection_calculator/text_detection_calculator.d '-frandom-seed=bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/text_detection_calculator/text_detection_calculator.o' -DMEDIAPIPE_PROFILER_AVAILABLE '-DMEDIAPIPE_DISABLE_GPU=1' -iquote . -iquote bazel-out/k8-opt/bin -iquote external/com_google_protobuf -iquote bazel-out/k8-opt/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/k8-opt/bin/external/zlib -iquote external/linux_opencv -iquote bazel-out/k8-opt/bin/external/linux_opencv -iquote external/com_github_glog_glog -iquote bazel-out/k8-opt/bin/external/com_github_glog_glog -iquote external/com_github_gflags_gflags -iquote bazel-out/k8-opt/bin/external/com_github_gflags_gflags -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -Ibazel-out/k8-opt/bin/external/com_github_glog_glog/_virtual_includes/default_glog_headers -Ibazel-out/k8-opt/bin/external/com_github_gflags_gflags/_virtual_includes/gflags -isystem external/com_google_protobuf/src -isystem bazel-out/k8-opt/bin/external/com_google_protobuf/src -isystem external/zlib -isystem bazel-out/k8-opt/bin/external/zlib -w '-std=c++17' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c mediapipe/examples/desktop/autoflip/calculators/text_detection_calculator.cc -o bazel-out/k8-opt/bin/mediapipe/examples/desktop/autoflip/calculators/_objs/text_detection_calculator/text_detection_calculator.o) In file included from mediapipe/examples/desktop/autoflip/calculators/text_detection_calculator.cc:30: ./mediapipe/framework/port/opencv_dnn_inc.h:25:10: fatal error: opencv2/dnn.hpp: No such file or directory #include <opencv2/dnn.hpp> ^~~~~~~~~~~~~~~~~ compilation terminated. Target //mediapipe/examples/desktop/autoflip:run_autoflip failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 1.700s, Critical Path: 1.11s INFO: 121 processes: 121 internal. FAILED: Build did NOT complete successfully
How do you solve this problem?
I follow the instruction to build up the new Autoflip in docker, but return the following error message:
System information (Please provide as much relevant information as possible)
OS Platform and Distribution :iOS 11.3.1 +cDocker MediaPipe version: 0.8.6 Bazel version: bazel 3.7.2 Solution: Autoflip Programming Language: C++