Skip to content

Cargo Build in android with termux meet rquickjs doesn't ship bindings for platform aarch64-linux-android(n/a) #4350

Description

@Michael2008S

Cargo Build in android with termux meet below build error:
May I know how to fix it?


Compiling fancy-regex v0.18.0
   Compiling fraction v0.15.4
   Compiling toml v0.8.23
   Compiling dirs v6.0.0
error: couldn't read `/data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rquickjs-sys-0.12.0/src/bindings/aarch64-linux-android.rs`: No such file or directory (os error 2)
  --> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rquickjs-sys-0.12.0/src/lib.rs:19:1
   |
19 | include!(concat!("bindings/", bindings_env!("TARGET"), ".rs"));
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: rquickjs-sys@0.12.0: rquickjs probably doesn't ship bindings for platform `aarch64-linux-android(n/a)`. try the `bindgen` feature instead.
error: could not compile `rquickjs-sys` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `codewhale-tui v0.8.67`, intermediate artifacts can be found at `/data/data/com.termux/files/usr/tmp/cargo-installdqOXdo`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_BUILD_BUILD_DIR` to that path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestquestionFurther information is requestedtuiTerminal UI behavior, rendering, or interaction

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions