mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Mediapipe Build Error

Open yifeix5 opened this issue 3 years ago • 2 comments

Please make sure that this is a build/installation issue and also refer to the troubleshooting documentation before raising any issues.

System information:

  • Linux Ubuntu 18.04
  • Compiler version: gcc/g++ 8
  • Programming Language and version: Python 3.6.9
  • Installed based on this link: https://github.com/AndreV84/mediapipe
  • Bazel version: 6.0.0

Describe the problem: When I build the Mediapipe, it comes an error at the end:


ERROR: /home/elephant/mediapipe/mediapipe/calculators/tensor/BUILD:371:11: Compiling mediapipe/calculators/tensor/tensors_to_detections_calculator.cc failed: undeclared inclusion(s) in rule '//mediapipe/calculators/tensor:tensors_to_detections_calculator': this rule is missing dependency declarations for the following files included by 'mediapipe/calculators/tensor/tensors_to_detections_calculator.cc': '/usr/lib/gcc/aarch64-linux-gnu/8/include/stddef.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include/stdarg.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include/stdint.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed/limits.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed/syslimits.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_fp16.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include/float.h' Target //mediapipe/modules/face_detection:face_detection_short_range_cpu failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 917.975s, Critical Path: 908.90s INFO: 10 processes: 10 internal. FAILED: Build did NOT complete successfully

Does anyone know how to solve this issue? Thank you so much in advance.

yifeix5 avatar Aug 03 '22 21:08 yifeix5

Hi @yifeix5, Could you please build the above example using steps mentioned in the official documentation as mentioned here. Please let us know if still encounter the error. Thank you!

kuaashish avatar Aug 04 '22 09:08 kuaashish

Hi @yifeix5, Could you please build the above example using steps mentioned in the official documentation as mentioned here. Please let us know if still encounter the error. Thank you!

Thank you for your reply. I tried to use official document to build Mediapipe on Ubuntu 18.04, but I still get "missing dependency" error, which is shown below.


ERROR: /home/elephant/mediapipe/mediapipe/calculators/tensor/BUILD:118:11: Compiling mediapipe/calculators/tensor/inference_calculator.cc failed: undeclared inclusion(s) in rule '//mediapipe/calculators/tensor:inference_calculator_interface': this rule is missing dependency declarations for the following files included by 'mediapipe/calculators/tensor/inference_calculator.cc': '/usr/lib/gcc/aarch64-linux-gnu/8/include/stddef.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include/stdarg.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include/stdint.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed/limits.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed/syslimits.h' '/usr/lib/gcc/aarch64-linux-gnu/8/include/stdbool.h' Target //mediapipe/modules/face_detection:face_detection_short_range_cpu failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 850.781s, Critical Path: 796.54s INFO: 5 processes: 5 internal. FAILED: Build did NOT complete successfully

yifeix5 avatar Aug 04 '22 10:08 yifeix5

Hi @yifeix5, Could you please confirm that you are still looking for resolution or the issue has been resolved. Thank you!

kuaashish avatar Aug 16 '22 09:08 kuaashish

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] avatar Aug 23 '22 10:08 google-ml-butler[bot]

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] avatar Aug 30 '22 11:08 google-ml-butler[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Aug 30 '22 11:08 google-ml-butler[bot]