-
Notifications
You must be signed in to change notification settings - Fork 24
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
ESP32 and lv-binding-rs does not build #387
Comments
Have you tried installing full LLVM? |
I installed
I did make a project like jasta (esp-ec-broken) and modified to double.h that included <string.h> and used printf inside double.c and everything built and ran OK. So string.h can be found on simple build. I have cloned lv-binding-rs and playing around with lvgl/build.rs but so far every thing I have tried hasn't eliminated the error. I run the cargo build with the command: This is the lvgl-sys compile output.
Do you see anything that looks wrong? Here is a typical compile for an lvgl file
AR running
Do you have any suggestions on how to debug? The other thing I should mention is that the lvgl build.rs does two builds - one that builds for the target = x86_64-unknown-linux-gnu and another for target = xtensa-esp32s3-espidf. which is kinda weird. Both error with string.h not found. |
This is partial listing of log file run with the command : Looks like build for x86_64-unknown-linux-gnu ??????? If I leave out -j1 then I see both x86_64-unknown-linux-gnu and xtensa-esps32s3-espidf
|
I was able to get lvgl to build on my ESP32S3 device without errors. I used the following command to build lvgl so I could look for errors
My first error was not finding 'bits/libc-header-start.h' file
This error was solved by doing the following:
My second error was not finding string.h file
This was solved by editing the config.toml file to add additional items to rustflags. Since I was editing the file I added DEP_LV_CONFIG_PATH environmental variable setting
The last error I got was a ctor error. I updated lvgl in Cargo.toml to look like the following.
|
Thanks for sharing your debug process! |
This may not be the correct forum for this problem but it is similar to Issue #163, where jasta couldn't find string.h.
I am trying to build esp32s3 app with lv-binding-rs but I am getting errors.
The first error I received was the following
I was able to fix this error by updating my config.toml and adding BINDGEN_EXTRA_CLANG_ARGS.
My config.toml
But then the next error I receive is the following:
But /home/ed/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-13.2.0_20230928/xtensa-esp-elf/xtensa-esp-elf/include does include string.h
I also tried the suggestions from this issue posted on lv-binding-rs lvgl/lv_binding_rust#102 but none of those helped. At the end of that issue you will see I added an error of not finding common.h but now I do not see that error.
My Cargo.toml
My export-esp.sh
The text was updated successfully, but these errors were encountered: