rusty_v8 icon indicating copy to clipboard operation
rusty_v8 copied to clipboard

Can't build for android on apple silicon or run the android example

Open neilsarkar opened this issue 2 years ago • 1 comments
trafficstars

Following the trail of #970 and #860 I am attempting to make an android build from an m2 mac on the latest main branch (6dd892b111f6dd202bf41c4ea9051e6f3301c9ce).

$ docker login
Login Succeeded

$ cross --version
cross 0.2.5 (99b8069 2023-02-12)

$ cross build --target aarch64-linux-android
[cross] warning: got environment variable of "V8_FROM_SOURCE" which is not a valid environment variable name. the proper syntax is `passthrough = ["ENVVAR=value"]`
Unable to find image 'cross:aarch64-linux-android-0.2.1' locally
docker: Error response from daemon: pull access denied for cross, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

Targeting android in the cross hello world example (https://github.com/cross-rs/rust-cpp-hello-word) is successful on the same system:

$ cross build --target aarch64-linux-android
info: downloading component 'rust-src'
info: installing component 'rust-src'
<jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
<jemalloc>: (This is the expected behaviour if you are running under QEMU)
<jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
<jemalloc>: (This is the expected behaviour if you are running under QEMU)
<jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
<jemalloc>: (This is the expected behaviour if you are running under QEMU)
    Finished dev [unoptimized + debuginfo] target(s) in 1.60s

Is the android target still supported? Are there additional setup steps to build rusty_v8 targeting android?

Thank you!

(full terminal output)

rusty_v8_—_neilsarkar_Neils-MBP_—_-zsh_—_125×51 rust-cpp-hello-word_—_neilsarkar_Neils-MBP_—_-zsh_—_125×51

neilsarkar avatar Mar 01 '23 21:03 neilsarkar