-
Bug DescriptionThe rust template breaks on armv7 builds due missing libraries, details below. I've tried to installing libudev-dev:armhf but looks like there are issues getting these. Is the best way to point the build at a sysroot or is there a work around? Many thanks! Reproducible Code (if applicable)slint-rust-template project
# Cargo.toml
[package]
name = "hello_world_slint_rust"
version = "0.1.0"
edition = "2021"
[dependencies]
slint = "1.14.1"
gpio-cdev = "0.6"
[target.'cfg(target_os = "linux")'.dependencies]
slint = {version = "1.14.1", default-features = false, features = ["backend-linuxkms-noseat", "renderer-software"] }
[build-dependencies]
slint-build = "1.14.1"
# config.toml
[profile.release]
opt-level = "z" # small binaries for embedded
lto = true
strip = true
codegen-units = 1
[profile.dev]
opt-level = 1
[target.armv7-unknown-linux-gnueabi]
linker = "arm-linux-gnueabi-gcc"
rustflags = ["-C", "target-feature=+crt-static"]
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
rustflags = ["-C", "target-feature=+crt-static"]Environment Details
Product ImpactNo response |
Beta Was this translation helpful? Give feedback.
Answered by
tronical
Nov 11, 2025
Replies: 1 comment 6 replies
-
|
Are you cross-compiling? Line 184 in bbd5d85 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the problem is this line in your
Cargo.toml:Despite disabling default features in the other lines, here they remain enabled. That way the femtovg renderer is enabled, which requires gbm.
I suggest to disable default features here and enable compat-1-2.