-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path + no_std: Compile error in the slint generated code #2026
Comments
Unfortunately path rendering is not supported on MCU builds yet (no_std and software renderer) :( |
@tronical Thank you for your reply, |
Yes, we do plan to support |
@tronical error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find function error[E0425]: cannot find value error[E0425]: cannot find function error[E0425]: cannot find value error[E0425]: cannot find function error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find function error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value error[E0425]: cannot find value I'm new to Rust, I don't know what causes this, I already set the |
I think that this error is due to some dependency trying to use mmap from the libc crate. That's a feature that requires an operating system kernel and an MMU - that can't be covered by esp's std support. But even with esp's std support, the |
Thank your information, hope |
Is is possible in the slint language to make certain components specific to a target environment? |
I think we should indeed do that. |
I try to integrate slint into esp32c3 MCU, but when using the
Path
, it outputs many compile errors:here is some errors stack:
error[E0433]: failed to resolve: use of undeclared type
Path
--> /drn/RustProjects/esp-temp/target/riscv32imc-esp-espidf/debug/build/esp-temp-e58ca89bad1bdb6e/out/m2.rs:69:20
|
69 | + r#Path :: FIELD_OFFSETS . r#elements) . apply_pin (_self) , & self_rc , move | self_rc | {
| ^^^^^^ use of undeclared type
Path
error[E0433]: failed to resolve: could not find
PathData
inre_exports
--> /drn/RustProjects/esp-temp/target/riscv32imc-esp-espidf/debug/build/esp-temp-e58ca89bad1bdb6e/out/m2.rs:80:73
|
80 | ... slint :: private_unstable_api :: re_exports :: PathData :: Elements (slint :: private_unstable_api :: re_exports :: SharedVector ::...
| ^^^^^^^^ could not find
PathData
inre_exports
error[E0433]: failed to resolve: use of undeclared type
Path
--> /drn/RustProjects/esp-temp/target/riscv32imc-esp-espidf/debug/build/esp-temp-e58ca89bad1bdb6e/out/m2.rs:98:16
|
98 | + r#Path :: FIELD_OFFSETS . r#fill) . apply_pin (_self) . set ({
| ^^^^^^ use of undeclared type
Path
error[E0433]: failed to resolve: use of undeclared type
Path
here is online code
The text was updated successfully, but these errors were encountered: