Open Quackdoc opened 7 months ago
Those "parameter D
is never used" errors are a result of building with no backends. Since neither the X or Wayland backend are being built for "android".
It would be possible to fix those, but it still wouldn't "work" without any backends.
You should be able to run aarch64-unknown-linux-gnu
or maybe aarch64-unknown-linux-musl
binaries on Android, I guess? Then it will compile with the needed backends.
we can compile musl and gnu binaries to kinda run on termux but it's spotty at best.
I did however try and build the x11 backend, but it seems like this will be a process of going through various crates and see where they fail like rustix
I think it would be good to support X11/Wayland backends on any platform that can support them. It's a little unclear how best to do that though.
We could just enable the X11 backend when compiled for Android, but presumably if a native Android backend were added, we'd want it to not be default. Likewise, we probably don't want to always build the X11 backend on macOS.
Ideally, it would be good to have the x11
and wayland
features default on Linux, but non-default on macOS or Android. But Rust doesn't seem to currently have a way to do that.
Since neither the X or Wayland backend are being built for "android".
Since neither the X or Wayland backend are being built for "android".
yes, and there is also wayland support. in two forms, one being nested compositors, and another being work done with wlroots and termux-gui. When I find the time I will try to tackle x11 possibly. wayland is a lower priority, but also something I want to do. but ofc this is time permitting
Partially related to #44 I am trying to compile some rust application targeting termux (x11) and am getting the below errors. I have tried both compiling within termux, as well as on my desktop
command:
cargo build --target x86_64-linux-android
Error log
```rust error[E0392]: parameter `D` is never used --> /home/quack/.cargo/registry/src/index.crates.io-6f17d22bba15001f/softbuffer-0.4.2/src/lib.rs:33:20 | 33 | pub struct Context