Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the max versions of Android SDK and NDM that will work with the Android Examples? #2021

Closed
kaisark opened this issue May 12, 2021 · 7 comments
Assignees
Labels
legacy:hands Hand tracking/gestures/etc platform:android Issues with Android as Platform task::all All tasks of MediaPipe type:build/install For Build and Installation issues type:support General questions

Comments

@kaisark
Copy link

kaisark commented May 12, 2021

What are the max versions of Android SDK and NDM that will work with the mediapipe Android Examples? I am currently using Ubuntu 20/Android Studio 4.1.3/SDK API 30/NDK 22.

I was reading the installation instructions for Android and was wondering if I need to install additional Android SDK and NDM?

FYI: The Hello World C++ Example compiled successfully
-------------------------------------------------------------------------------
INFO: From ProtoCompile mediapipe/framework/calculator_profile.pb.h:
bazel-out/k8-fastbuild/bin/external/com_google_protobuf/src: warning: directory does not exist.
Target //mediapipe/examples/desktop/hello_world:hello_world up-to-date:
bazel-bin/mediapipe/examples/desktop/hello_world/hello_world
INFO: Elapsed time: 482.361s, Critical Path: 287.29s
INFO: 484 processes: 16 internal, 468 linux-sandbox.
INFO: Build completed successfully, 484 total actions
INFO: Build completed successfully, 484 total actions
I20210512 14:04:47.450703 8057 hello_world.cc:57] Hello World!
I20210512 14:04:47.451359 8057 hello_world.cc:57] Hello World!
I20210512 14:04:47.451378 8057 hello_world.cc:57] Hello World!
I20210512 14:04:47.451397 8057 hello_world.cc:57] Hello World!
I20210512 14:04:47.451414 8057 hello_world.cc:57] Hello World!
I20210512 14:04:47.451431 8057 hello_world.cc:57] Hello World!
I20210512 14:04:47.451450 8057 hello_world.cc:57] Hello World!
I20210512 14:04:47.451468 8057 hello_world.cc:57] Hello World!
I20210512 14:04:47.451668 8057 hello_world.cc:57] Hello World!
I20210512 14:04:47.451838 8057 hello_world.cc:57] Hello World!

-----------------------------------
FYI:
I was able to build and install the handtracking sample Android app using NDK 20.
(py37dl) username@Ubuntu-ThinkPadX1C:~/mediapipe$ echo $ANDROID_NDK_HOME
/home/username/Android/Sdk/ndk/20.0.5594570

(py37dl) username@Ubuntu-ThinkPadX1C:~/mediapipe$ bazel build -c opt --config=android_arm64 --action_env PYTHON_BIN_PATH=$(which python3) --verbose_failures mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu

Screenshot_20210512-214754.png

@rmothukuru rmothukuru self-assigned this May 13, 2021
@rmothukuru rmothukuru added platform:android Issues with Android as Platform task::all All tasks of MediaPipe legacy:hands Hand tracking/gestures/etc stat:awaiting googler Waiting for Google Engineer's Response type:build/install For Build and Installation issues type:support General questions labels May 13, 2021
@rmothukuru rmothukuru assigned jiuqiant and unassigned rmothukuru May 13, 2021
@jiuqiant
Copy link
Collaborator

I think there is minimum requirement of sdk and ndk. For maximum versions, Bazel may still just officially support ndk 21 and below and it sends a warning message if you use ndk 22 and above.

@sgowroji
Copy link

Hi @kaisark, Did you get a chance to go through the above comment. Thanks!

@sgowroji sgowroji added stat:awaiting response Waiting for user response and removed stat:awaiting googler Waiting for Google Engineer's Response labels May 21, 2021
@kaisark
Copy link
Author

kaisark commented May 21, 2021

Hi @sgowroji. I did read the comment. I tried to use NDK 22, but the bazel build failed. I think the directory structure changed between NDK 20 and 21/22. The build could not locate the "platforms" sub-directory.

Change log:
"The legacy toolchain install paths will be removed over the coming releases. These paths have been obsolete since NDK r19 and take up a considerable amount of space in the NDK. The paths being removed are:

platforms
sources/cxx-stl
sysroot
toolchains (with the exception of toolchains/llvm)
In general this change should only affect build system maintainers, or those using build systems that are not up to date. ndk-build and the CMake toolchain users are unaffected, and neither are make_standalone_toolchain.py users (though that script has been unnecessary since r19).

For information on migrating away from the legacy toolchain layout, see the Build System Maintainers Guide for the NDK version you're using."

@sgowroji sgowroji added stat:awaiting googler Waiting for Google Engineer's Response and removed stat:awaiting response Waiting for user response labels May 24, 2021
@sgowroji
Copy link

You can try with the prerequisite mentioned here https://google.github.io/mediapipe/getting_started/android.html#prerequisite. If you face any errors, please share them to investigate further. Thanks!

@sgowroji sgowroji added stat:awaiting response Waiting for user response and removed stat:awaiting googler Waiting for Google Engineer's Response labels May 27, 2021
@sgowroji
Copy link

sgowroji commented Jun 3, 2021

Hi @kaisark, Did you get a chance to go through the above comment. Thanks

@sgowroji sgowroji removed the stat:awaiting response Waiting for user response label Jun 9, 2021
@sgowroji
Copy link

sgowroji commented Jun 9, 2021

We are closing this issue now due to lack of activity and assuming your resolved with above comments.

@sgowroji sgowroji closed this as completed Jun 9, 2021
@google-ml-butler
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:hands Hand tracking/gestures/etc platform:android Issues with Android as Platform task::all All tasks of MediaPipe type:build/install For Build and Installation issues type:support General questions
Projects
None yet
Development

No branches or pull requests

5 participants