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

[DOCKER] Fix Dockerfile.demo_android #6361

Merged
merged 2 commits into from
Aug 31, 2020
Merged

Conversation

tkat0
Copy link
Contributor

@tkat0 tkat0 commented Aug 30, 2020

Fixed Deploy model on android, docker build error - Troubleshooting - TVM Discuss

After this fix, I was able to build the apk of apps/android_deploy in the Docker container.

ENV PATH ${PATH}:${VULKAN_SDK}/bin
ENV LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${VULKAN_SDK}/lib
ENV VK_LAYER_PATH ${VULKAN_SDK}/etc/explicit_layer.d
ENV VULKAN_SDK=/usr
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as #5566

platforms;android-26
platforms;android-27
tools
ndk-bundle
ndk;21.3.6528147
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ndk-bundle install the latest NDK version.
I specified the currently latest version.

docker/install/ubuntu_install_androidsdk.sh Outdated Show resolved Hide resolved
@@ -68,20 +67,20 @@ extras;google;simulators
extras;google;webdriver
extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2
extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2
lldb;2.3
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I check with sdkmanager --list, I Deleted the package that does not currently exist.

EOF

mkdir /root/.android 2>/dev/null || true
touch /root/.android/repositories.cfg
(yes || true) | sdkmanager --licenses --sdk_root="$ANDROID_HOME"
# NOTE: sdkmanager returns exit code 141
(yes || true) | sdkmanager --licenses --sdk_root="$ANDROID_HOME" || true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tqchen tqchen merged commit 1767b08 into apache:master Aug 31, 2020
@tqchen
Copy link
Member

tqchen commented Aug 31, 2020

THanks @tkat0 !

@tkat0 tkat0 deleted the fix-docker-android branch August 31, 2020 20:20
kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 17, 2020
* [DOCKER] Fix Dockerfile.demo_android

* fix
kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 18, 2020
* [DOCKER] Fix Dockerfile.demo_android

* fix
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 18, 2020
* [DOCKER] Fix Dockerfile.demo_android

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants