You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the latest version of the repo that uses embedded-graphics version 0.8.0. The crates.io version of lvgl (version 0.6.2) seems to be using embedded-graphics version 0.7.1 and is causing dependency collisions. The Cargo.toml for the project looks like:
[dependencies.lvgl]
# path = "./lv_binding_rust/lvgl"
# version = "0.6.2"
git = "https://github.com/lvgl/lv_binding_rust"
default-features = false
features = ["embedded_graphics", "unsafe_no_autoinit", "lvgl_alloc"]
However, the following error is generated:
error[E0599]: no method named `into_raw` found for struct `Box<lv_style_t>` in the current scope
--> /Users/myname/.cargo/git/checkouts/lv_binding_rust-d86feb7597e107b7/45cafea/lvgl/src/lv_core/style.rs:459:58
|
459 | lvgl_sys::lv_style_get_prop(self.raw.clone().into_raw() as *const _, prop.bits(), ptr)
| -----------------^^^^^^^^--
| | |
| | this is an associated function, not a method
| help: use associated function syntax instead: `Box::<lv_style_t>::into_raw(self.raw.clone())`
|
= note: found the following associated functions; to be used as methods, functions must have a `self` parameter
= note: the candidate is defined in an impl for the type `Box<T, A>`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `lvgl` (lib) due to 1 previous error
make: *** [build] Error 101
Hi,
I'm trying to use the latest version of the repo that uses
embedded-graphics
version 0.8.0. The crates.io version oflvgl
(version 0.6.2) seems to be usingembedded-graphics
version 0.7.1 and is causing dependency collisions. TheCargo.toml
for the project looks like:However, the following error is generated:
Edit: My build command is:
The text was updated successfully, but these errors were encountered: