How do I build Android tasks_core aar?

21 views
Skip to first unread message

Cal

unread,
Sep 16, 2024, 7:50:49 PM9/16/24
to MediaPipe
I tried building from docker 

bazel build -c opt --strip=ALWAYS \
  --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \
  --fat_apk_cpu=arm64-v8a,armeabi-v7a \
  --legacy_whole_archive=0 \
  --features=-legacy_whole_archive \
  --copt=-fvisibility=hidden \
  --copt=-ffunction-sections \
  --copt=-fdata-sections \
  --copt=-fstack-protector \
  --copt=-Os \
  --copt=-fomit-frame-pointer \
  --copt=-DABSL_MIN_LOG_LEVEL=2 \
  --linkopt=-Wl,--gc-sections,--strip-all \
  mediapipe/tasks/java/com/google/mediapipe/tasks/core:tasks_core

I get missing jni.h build error


Reply all
Reply to author
Forward
0 new messages