Error in make android_arm64
See original GitHub issuei run make android_arm64
in MediaPipe Unity Plugin
get error
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
ljl@ljl-B460MAORUSELITE:~/Downloads/MediaPipeUnityPlugin$ make android_arm64
cd C && bazel build -c opt --config=android_arm64 mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android mediapipe_api:mediapipe_models mediapipe_api:mediapipe_proto_srcs
DEBUG: Rule ‘rules_foreign_cc’ indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = “a0f90646527c4e7222f7f2b29042a8f23d81996d8509e7ccd21c36a247348eb1”
DEBUG: Repository rules_foreign_cc instantiated at:
/home/ljl/Downloads/MediaPipeUnityPlugin/C/WORKSPACE:79:13: in <toplevel>
Repository rule http_archive defined at:
/home/ljl/.cache/bazel/_bazel_ljl/3bf2eb8198ff65c00b4c1c6bf4ce01f7/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Build options --cpu and --fat_apk_cpu have changed, discarding analysis cache.
DEBUG: Rule ‘rules_cc’ indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = “fc58ff069f150c81abd10231bb1d9fbff0ba9322e03c9396518db4d054d5f2e6”
DEBUG: Repository rules_cc instantiated at:
/home/ljl/Downloads/MediaPipeUnityPlugin/C/WORKSPACE:73:13: in <toplevel>
Repository rule http_archive defined at:
/home/ljl/.cache/bazel/_bazel_ljl/3bf2eb8198ff65c00b4c1c6bf4ce01f7/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
ERROR: While resolving toolchains for target //mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android_dummy_app: no matching toolchains found for types @bazel_tools//tools/android:sdk_toolchain_type
ERROR: Analysis of target ‘//mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android’ failed; build aborted: no matching toolchains found for types @bazel_tools//tools/android:sdk_toolchain_type
INFO: Elapsed time: 0.075s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 40 targets con
figured)
currently loading: @rules_pkg//
Fetching …python; Cloning 4b84ad270387a7c439ebdccfd530e2339601ef27 of ht
tps://github.com/bazelbuild/rules_python.git
Makefile:48: recipe for target ‘android_arm64’ failed
make: *** [android_arm64] Error 1
i use setup_android_sdk_and_ndk.sh https://github.com/google/mediapipe/blob/master/setup_android_sdk_and_ndk.sh
i can run mediapipe android command
↓↓↓↓↓↓↓↓↓↓↓
bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu
ljl@ljl-B460MAORUSELITE:~/Downloads/mediapipe-0.8.2$ bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu DEBUG: Rule ‘rules_foreign_cc’ indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = “a0f90646527c4e7222f7f2b29042a8f23d81996d8509e7ccd21c36a247348eb1” DEBUG: Repository rules_foreign_cc instantiated at: /home/ljl/Downloads/mediapipe-0.8.2/WORKSPACE:39:13: in <toplevel> Repository rule http_archive defined at: /home/ljl/.cache/bazel/_bazel_ljl/c7df26029a2a82fe2e630be26bc9cc65/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel> DEBUG: Rule ‘rules_cc’ indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = “fc58ff069f150c81abd10231bb1d9fbff0ba9322e03c9396518db4d054d5f2e6” DEBUG: Repository rules_cc instantiated at: /home/ljl/Downloads/mediapipe-0.8.2/WORKSPACE:33:13: in <toplevel> Repository rule http_archive defined at: /home/ljl/.cache/bazel/_bazel_ljl/c7df26029a2a82fe2e630be26bc9cc65/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel> DEBUG: Rule ‘android_opencv’ indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = “cdb0e190c3734edd4052a3535d9e4310af912a9f70a421b1621711942a1028d5” DEBUG: Repository android_opencv instantiated at: /home/ljl/Downloads/mediapipe-0.8.2/WORKSPACE:221:13: in <toplevel> Repository rule http_archive defined at: /home/ljl/.cache/bazel/_bazel_ljl/c7df26029a2a82fe2e630be26bc9cc65/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel> INFO: Analyzed target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu (0 packages loaded, 0 targets configured). INFO: Found 1 target… Target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu up-to-date: bazel-bin/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/handtrackinggpu_deploy.jar bazel-bin/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/handtrackinggpu_unsigned.apk bazel-bin/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/handtrackinggpu.apk INFO: Elapsed time: 0.215s, Critical Path: 0.00s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (7 by maintainers)
Top GitHub Comments
when I write this command ls $ANDROID_HOME it list the files in directory
it is already built now thank you so Iam going to close it