Open 666wsp opened 2 months ago
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 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.
I did what you did and it still reports an error
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
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 I added a bracket '()' and it worked, I don't know if it's a bug or just a difference in the compilation system that caused the error.
Your fix is not correct, it should be:
I fixed this in eez-framework.
Your fix is not correct, it should be:
I fixed this in eez-framework.
Your fix is not correct, it should be:
I fixed this in eez-framework.
Okay, I'll change it your way.
BTW Normally, this is not an error, but because of -Werror=parentheses
, warning is promoted to the error.
We had report of similar case recently.
In C/C++ following is the same: a && b || c
and (a && b) || c
- and both are correct. Operator && has higher priority than ||. By habit, I never use parentheses for such cases.
BTW Normally, this is not an error, but because of
-Werror=parentheses
, warning is promoted to the error.We had report of similar case recently.
In C/C++ following is the same:
a && b || c
and(a && b) || c
- and both are correct. Operator && has higher priority than ||. By habit, I never use parentheses for such cases.
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:
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