Replies: 1 comment
-
I actually solved this myself. It turns out that winit does not report missing deps properly unless I had run a winit example. How I got czkawka/krokiet working cargo build --release --target aarch64-unknown-linux-gnu
#copy binary to android
ssh -Y -C -p 8022 [email protected] #needs -Y and -C helps a lot over wifi
apt install ttf-dejavu-glibc libxcursor-glibc fontconfig-utils-glibc libxkbcommon-glibc libxi-glibc libx11-glibc grun #it's important to install all of these as slint winit/slint will fail without reporting a proper missing dep
chmod +x ./krokiet
XDG_DATA_DIRS=$PREFIX/glibc/share SLINT_DEFAULT_FONT=$XDG_DATA_DIRS/fonts RUST_BACKTRACE=1 grun ./krokiet If you plan on using termux-x11 you cannot start krokiet with xstartup (nor would you want to) it is reccomended to use a window manager such as dwm or i3 to make sure you get the full usable space of you phone, then run |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im trying to use slint in termux, and while I kinda managed to get it working over wayland, I have found it to be very buggy. I was hoping to get it working over x11 but winit here seems to fail for some reason.
When compiling the application I use
cargo build --release --target aarch64-unknown-linux-gnu --no-default-features --features "winit_software"
however I have also tried femtovg with the same issues.Compiling with gnu is necessary as termux has no musl environment and when you compile with bionic a lot of rust software wrongfully assume that it will be running in the "android ecosystem" and disable support for x11 and wayland, and make some other breaking assumptions.
To launch with termux-x11 you can run the below command, in this case I am trying a software called krokiet which is part of czkawka
I think maybe winit doesn't support dlopen for x11? if so that is probably the cause of these issues but I haven't had time to investigate it yet.
You can also try using ssh -X and the results are the same. Below is the similar command but trying over
ssh -X
and with RUST_BACKTRACE=fullEDIT: x11-dl should use dlopen, but im not sure if winit has other dependancies that may break this
Beta Was this translation helpful? Give feedback.
All reactions