-
Notifications
You must be signed in to change notification settings - Fork 11
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
LVGL9.2 ESP32 IDF build Error #12
Comments
You should update eez-framework. Or you don't need to use eez-framework at all if you enable this option in Settings - Build: For more information check this. |
|
You don't have the latest version of eez-framework! Your version: Latest version: https://github.com/eez-open/eez-framework/blob/master/src/eez/flow/components/lvgl.cpp#L222 |
Thank you very much for your help, I fixed it indeed did not download and update to the latest library, it is strange that I use vscode git to switch branches but can not switch to the latest, I directly download can go to the latest, it is possible that my network problem! Here I got an error compiling as well, I got an error in component->type ! = defs_v3::COMPONENT_TYPE_USER_WIDGET_WIDGET || component->type >= defs_v3::FIRST_DASHBOARD_WIDGET_COMPONENT_TYPE |
BTW Normally, this is not an error, but because of We had report of similar case recently. In C/C++ following is the same: |
Ok, thank you very much for your reply, I've taken care of it now and can happily play with EEZ Studio! |
Hello! I ported eez-framework to esp32 idf architecture and compiled it with lvgl9.2, idf5.4.0 and it reported an error with two main parts:
The first part of the error is as follows:
300 | size_t numPages = roller->inf_page_cnt;
The second part reports an error:
2, /eez-framework/src/eez/flow/components/lvgl.cpp:224:63: error: invalid conversion from 'lv_state_t' {aka 'short unsigned int'} to 'lv_obj_ flag_t' [-fpermissive]
224 | if (booleanValue) lv_obj_add_flag(target, flag);
| ^~~~
| ^~~~
| lv_state_t {aka short unsigned int}
components/eez-framework/src/eez/flow/components/lvgl.cpp:225:52: error: invalid conversion from 'lv_state_t' {aka 'short unsigned int'} to ' lv_obj_flag_t' [-fpermissive]
225 | else lv_obj_clear_flag(target, flag); | lv_obj_clear_flag(target, flag); lv_obj_flag(target, flag)
| ^~~~
| ^~~~
| lv_state_t {aka short unsigned int}
I can't fix the first part of the error, I don't know where it's caused by not setting the right settings, the second part of the error looks like the book data type doesn't match, I forced the type conversion so it won't report the error, forced the type code: if (booleanValue) lv_obj_add_flag(target, (lv_obj_flag_t)flag); else lv_obj_clear_flag(target, flag); ^~~~ | | lv_state_t {aka short unsigned int}
else lv_obj_clear_flag(target, (lv_obj_flag_t)flag);
Translated with DeepL.com (free version)
I compiled the cmake configuration as follows
`if(ESP_PLATFORM)
file(GLOB_RECURSE SOURCES
./src/eez/.cpp
./src/eez/.c
)
else()
cmake_minimum_required(VERSION 3.12)
endif()
`
Under lvgl 8.4 I followed this cmake and it works fine
The text was updated successfully, but these errors were encountered: