Mediapipe installation on jetson nano

Hi, I have been trying to build mediapipe from their github repository. I have installed bazel (6.1.1) on my jetson nano 4 Gb. Also, I have already installed opencv with cuda support. I am willing to use mediapipe in my code in c++. But unable to build mediapipe, please find below the build output error -

Repository rule http_archive defined at:
  /home/satyajit/.cache/bazel/_bazel_satyajit/efd19b063732b79809b719c063d77348/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
WARNING: /home/satyajit/mediapipe/mediapipe/framework/BUILD:62:6: target '//mediapipe/framework:encode_binary_proto' is deprecated: Use encode_binary_proto_bzl
ERROR: /home/satyajit/mediapipe/mediapipe/util/frame_buffer/halide/BUILD:106:15: configurable attribute "srcs" in //mediapipe/util/frame_buffer/halide:gray_rotate_halide_object doesn't match this configuration. Would a default condition help?

Conditions checked:
 //mediapipe:android_arm
 //mediapipe:android_arm64
 //mediapipe:android_x86
 //mediapipe:android_x86_64
 //mediapipe:ios_armv7
 //mediapipe:ios_arm64
 //mediapipe:ios_arm64e
 //mediapipe:ios_i386
 //mediapipe:macos_x86_64
 //mediapipe:ios_x86_64
 //mediapipe:macos_arm64
 //mediapipe:windows
 //mediapipe:linux

To see a condition's definition, run: bazel query --output=build <condition label>.

This instance of //mediapipe/util/frame_buffer/halide:gray_rotate_halide_object has configuration identifier 0f4bf76. To inspect its configuration, run: bazel config 0f4bf76.

For more help, see https://bazel.build/docs/configurable-attributes#faq-select-choose-condition.

INFO: Repository com_google_mediapipe_gesture_embedder_saved_model_pb instantiated at:
  /home/satyajit/mediapipe/WORKSPACE:614:15: in <toplevel>
  /home/satyajit/mediapipe/third_party/external_files.bzl:1495:14: in external_files
Repository rule http_file defined at:
  /home/satyajit/.cache/bazel/_bazel_satyajit/efd19b063732b79809b719c063d77348/external/bazel_tools/tools/build_defs/repo/http.bzl:466:28: in <toplevel>
INFO: Repository com_github_grpc_grpc instantiated at:
  /home/satyajit/mediapipe/WORKSPACE:553:14: in <toplevel>
  /home/satyajit/.cache/bazel/_bazel_satyajit/efd19b063732b79809b719c063d77348/external/org_tensorflow/tensorflow/workspace2.bzl:938:21: in workspace
  /home/satyajit/.cache/bazel/_bazel_satyajit/efd19b063732b79809b719c063d77348/external/org_tensorflow/tensorflow/workspace2.bzl:429:20: in _tf_repositories
  /home/satyajit/.cache/bazel/_bazel_satyajit/efd19b063732b79809b719c063d77348/external/org_tensorflow/third_party/repo.bzl:136:21: in tf_http_archive
Repository rule _tf_http_archive defined at:
  /home/satyajit/.cache/bazel/_bazel_satyajit/efd19b063732b79809b719c063d77348/external/org_tensorflow/third_party/repo.bzl:89:35: in <toplevel>
INFO: Repository com_google_mediapipe_gesture_embedder_tflite instantiated at:
  /home/satyajit/mediapipe/WORKSPACE:614:15: in <toplevel>
  /home/satyajit/mediapipe/third_party/external_files.bzl:481:14: in external_files
Repository rule http_file defined at:
  /home/satyajit/.cache/bazel/_bazel_satyajit/efd19b063732b79809b719c063d77348/external/bazel_tools/tools/build_defs/repo/http.bzl:466:28: in <toplevel>
INFO: Repository com_google_mediapipe_object_detection_3d_camera_tflite instantiated at:
  /home/satyajit/mediapipe/WORKSPACE:614:15: in <toplevel>
  /home/satyajit/mediapipe/third_party/external_files.bzl:937:14: in external_files
Repository rule http_file defined at:
  /home/satyajit/.cache/bazel/_bazel_satyajit/efd19b063732b79809b719c063d77348/external/bazel_tools/tools/build_defs/repo/http.bzl:466:28: in <toplevel>
ERROR: Analysis of target '//mediapipe/util/frame_buffer/halide:gray_rotate_halide_object' failed; build aborted: 
INFO: Elapsed time: 509.641s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (497 packages loaded, 1331 targets configured)
    currently loading: @rules_foreign_cc//toolchains ... (7 packages)
    Fetching https://storage.googleapis.com/.../grpc/archive/b54a5b338637f92bfcf4b0bc05e0f57a5fd8fadd.tar.gz; 1.0 MiB (1,071,830B)
    Fetching https://storage.googleapis.com/.../gesture_embedder/saved_model.pb?generation=1668550484904822; 737.2 KiB (754,887B)
    Fetching https://storage.googleapis.com/.../gesture_embedder.tflite?generation=1668550476472972; 15.9 KiB (16,311B)
    Fetching https://storage.googleapis.com/mediapipe-assets/object_detection_3d_camera.tflite?generation=1661875857210211

Please help me resolving this issue, or guide me to install mediapipe in some other way, the main requirement is I don’t want use python as development language.

Thanks in advance

Hi,
We don’t work on this and it would need other users to share experience.

Searched online and found a github link:
GitHub - Melvinsajith/How-to-Install-Mediapipe-in-Jetson-Nano

Please take a look and give it a try.

Thanks for prompt response.
I have already gone through the link you shared but it help only for mediapipe python installation. I have to use mediapipe in c++.

Can you please suggest any alternative for mediapipe that we can use on jetson nano for hand detection model and nvidia would officially provide support and resources, please note that development language would be c++.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.