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

Android support #3839

Closed
rektide opened this issue Jan 31, 2020 · 4 comments
Closed

Android support #3839

rektide opened this issue Jan 31, 2020 · 4 comments
Labels

Comments

@rektide
Copy link

rektide commented Jan 31, 2020

Hello. Does Deno support Android? I haven't tried using rust on Android yet, but it'd be lovely to be able to mix in some Deno to an Android app a powerful embedded/scripting runtime. Thought I'd ask. What feats might be required to push this forward, if not?

@ry
Copy link
Member

ry commented Jan 31, 2020

Hello @rektide - it has been a long time since I've seen your avatar : )

Deno could support Android, but it's going to be some work. First thing would be to get rusty_v8 to build.
Here's the first thing I would try:

GN_ARGS='target_os="android" target_cpu="arm"' cargo build -vv --target aarch64-linux-android

Once RustyV8 builds there, it should be pretty easy to port Deno. Does Github Actions support Android arm?

@90dy
Copy link

90dy commented Feb 7, 2020

Hello !
I'm a newbie on rust so every things I will say can be obvious for you.

I tried building it for aarch64-linux-android, so I installed the target with rustup:
rustup target add aarch64-linux-android

After running:
GN_ARGS='target_os="android" target_cpu="arm"' cargo build --verbose --target aarch64-linux-android
I've had the following error:
error occurred: Failed to find tool. Is `aarch64-linux-android-clang` installed?

I search for it with rustup toolchain list but I've only one toolchain stable-x86_64-apple-darwin (default) and I didn't find a way to add another.
Obviously I'm on OSX, maybe other toolchains aren't accessible or maybe I need to have the appropriate arch and os to build it.

I'm really interested to have a first version running on android and maybe help to share deno on java repositories.

EDIT:
I found this post that explain how to install targets and setup everything to run android app with rust https://medium.com/visly/rust-on-android-19f34a2fb43

@stale
Copy link

stale bot commented Jan 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 6, 2021
@stale stale bot closed this as completed Jan 13, 2021
@rektide
Copy link
Author

rektide commented May 27, 2022

rusty_v8 support landed in denoland/rusty_v8#860. there are some other tickets about in deno for ongoing android support.

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

No branches or pull requests

3 participants