mediapipe_python_aarch64
mediapipe_python_aarch64 copied to clipboard
mediapipe in rasepeery pi 4 (ubuntu 21.04)
in step number 7 whenever I try this command "python3 setup.py gen_protos && python3 setup.py bdist_wheel" I get the following error every time " ERROR: /home/ali/mediapipe/mediapipe/framework/tool/BUILD:93:10: C++ compilation of rule '//mediapipe/framework/tool:encode_as_c_string' 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 30 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 30 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox gcc: error: mediapipe/framework/tool/encode_as_c_string.cc: Permission denied gcc: fatal error: no input files compilation terminated. Target //mediapipe/modules/face_detection:face_detection_front_cpu failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 7.492s, Critical Path: 0.62s INFO: 75 processes: 75 internal. FAILED: Build did NOT complete successfully " can anyone please help me I'm stuck at this step for days and thanks in advance.
Hi there! I got similar errors. I think I had to update my gcc compiler. I updated to 7.5.1. So do
sudo apt-get purge gcc*
sudo apt-get install gcc-7.5.1
bazel clean --expunge
the last one cleans all bazel cache etc.
This repository is so awesome! Thank you very much. :smiley_cat:
I don't know if this will help you, but I used the workflow in this repository as a reference and created installers for multiple distributions on a trial basis. The compiler has been changed and some work has been done, so there may be some instability in the operation. I have not tested all binaries. I also found @svebert's suggestion very helpful. Thank you.
I have done a simple verification on Ubuntu 20.04 aarch64, RaspberryPi OS aarch64 and Jetson Nano.
https://github.com/PINTO0309/mediapipe-bin
- Binary type
| Device | OS | Distribution | Architecture | Python ver | Numpy ver | Note |
|---|---|---|---|---|---|---|
| RaspberryPi3/4 | RaspberryPiOS/Debian | Buster | aarch64 / armv8 | 3.7.3 | 1.19/1.20 | 64bit, glibc2.28 |
| RaspberryPi3/4 | Ubuntu 18.04 | Bionic | aarch64 / armv8 | 3.6.9 | 1.19 | 64bit, glibc2.27 |
| RaspberryPi3/4 | Ubuntu 20.04 | Focal | aarch64 / armv8 | 3.8.2 | 1.19/1.20 | 64bit, glibc2.31 |
| (Experimental/WIP) Jetson Nano | L4T (Ubuntu 18.04) | 32.5.1 | aarch64 / armv8 | 3.6.9 | (mandatory) 1.19.4 | 64bit, glibc2.27, Pose/Holistic/Selfie Segmentation/Multi Hand Tracking/FaceDetection/FaceMesh only,OpenGL ES3.2 |
| (Experimental) RaspberryPi3/4 | Debian | Bullseye | aarch64 / armv8 | 3.9.2 | 1.20 | 64bit, glibc2.31, gcc-8.5 |
| RaspberryPi3/4 | Ubuntu 21.04 | Hirsute | aarch64 / armv8 | 3.9.5 | 1.20 | 64bit, glibc2.33, gcc-7.5 |