-
|
Hello, I would like to compile a slint app for The sourcecode of the project I'm trying to compile is as simple as it gets: The file [target.riscv64gc-unknown-linux-musl]
linker = "riscv64-linux-musl-gcc"
rustflags = ["-C", "link-arg=--sysroot=/home/andreas/projects/scpcom/LicheeSG-Nano-Build/buildroot/output/cvitek_SG200X_musl_riscv64/host/riscv64-buildroot-linux-musl/sysroot"]The build magic happens in the Here are the toolchains I tried and failed: forked imagebuilder buildroot toolchain prebuilt toolchain Unfortunately this toolchain seems to lack
unfortunately did not succeed - some weird errors with the linking process. manually built toolchain Currently, I'm manually building the toolchain from https://github.com/riscv-collab/riscv-gnu-toolchain via: git clone https://github.com/riscv-collab/riscv-gnu-toolchain
cd riscv-gnu-toolchain
./configure --prefix=/opt/riscv --enable-multilib
make muslI would love to have some official statement regarding riscv64-musl and in the best case some instructions or documentation on how to build a Slint app for this platform. I know that you are trying to make a living of the embedded stuff, but since my app will be open source, I think everyone would benefit :-) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
I don't see any issues with riscv in general, except that I think the skia renderer won't compile. Regarding musl: The lack of dlopen will be a problem in some places. I think glutin requires it, so than will rule out OpenGL rendering. The same goes for Wayland support via winit. So just linuxkms backend with -noseat and the Slint software renderer might work with musl. The libinput etc libraries are a hard requirement though. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, so I solved the problem with |
Beta Was this translation helpful? Give feedback.
-
|
Ok, here are the steps to build a Slint UI for
For a full demo project see https://github.com/sandreas/rust-slint-riscv64-musl-demo. Be aware that you need a supported renderer format for the slint app to work (see #9862) |
Beta Was this translation helpful? Give feedback.




Ok, here are the steps to build a Slint UI for
riscv64-musl(e.g. LicheeRV Nano)Cross.tomlto your project using the custom docker image https://hub.docker.com/r/sandreas/cross-riscv64-linux-musl (see my cross fork for the docker image changes)cross build --no-default-features --features "slint/backend-linuxkms-noseat,slint/renderer-software,slint/compat-1-2" --target riscv64gc-unknown-linux-musl --releaseFor a full demo project see https://github.com/sandreas/rust-slint-riscv64-musl-demo. Be aware that you need a supported renderer format for the slint app to work (see #9862)