Skip to content
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

lv_binding_rust/lvgl-sys/vendor/lvgl/src/misc/lv_mem.h:20:10: fatal error: 'string.h' file not found #194

Open
Murmele opened this issue Jan 18, 2025 · 0 comments

Comments

@Murmele
Copy link

Murmele commented Jan 18, 2025

I got the error message when compiling for embedded:
lv_binding_rust/lvgl-sys/vendor/lvgl/src/misc/lv_mem.h:20:10: fatal error: 'string.h' file not found

Solution: modifying lvgl-sys/build.rs by adding the arm-none-eabi include path

let mut cc_args = vec![
        "-DLV_CONF_INCLUDE_SIMPLE=1",
        "-I",
        lv_config_dir.to_str().unwrap(),
        "-I",
        vendor.to_str().unwrap(),
        "-I",                         // Added
        "/usr/arm-none-eabi/include", // Added
        "-fvisibility=default",
    ];

My Cargo.toml:

lvgl = {version = "0.6.2", path="../../lv_binding_rust/lvgl", default-features = false, features = ["embedded_graphics"]}

Is there a better solution instead of modifying build.rs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant