What do you want to achieve?
compile project after update to SLS 1.4.0 and adding theme.
getting two compile errors of similar type: some invalid conversion related to lv_mem_realloc()
Thanks a lot for your advice.
compiler errors ui_theme_manager.cpp:98:38
src/src/Display/GUI/ui_theme_manager.cpp: In function ‘_ui_local_style_t* _ui_local_style_create(const ui_style_variable_t*, bool)’:
src/src/Display/GUIui_theme_manager.cpp:98:38: error: invalid conversion from ‘void*’ to ‘_ui_local_style_t*’ [-fpermissive]
_ui_local_styles = lv_mem_realloc( _ui_local_styles, (_ui_local_style_count + 1) * sizeof(_ui_local_style_t) );
compiler errors ui_theme_manager.cpp:139:65:
src/src/Display/GUI/ui_theme_manager.cpp: In function ‘_ui_local_style_property_setting_t* _ui_local_style_property_setting_create(_ui_local_style_t*, lv_obj_t*, lv_style_selector_t, lv_style_prop_t)’:
src/src/Display/GUI/ui_theme_manager.cpp:139:65: error: invalid conversion from ‘void*’ to ‘_ui_local_style_property_setting_t*’ [-fpermissive]
local_style_p->style_property_settings = lv_mem_realloc (
~~~~~~~~~~~~~~~^
local_style_p->style_property_settings,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(local_style_p->style_property_setting_count + 1) * sizeof(_ui_local_style_property_setting_t)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
);
Others
-
SquareLine Studio version:
V1.4.0 -
Operating system:
Win11 -
Target hardware:
custom esp32-s3