this did not happen in 1.3
To reproduce:
- Create a blank simulator project in 1.4.1
- hit run simulator, blank project builds, all good
- create a file in ./custom such as chart.c
- add
#include "gui_guider.h"
static lv_obj_t *SweepChart_chart = NULL;
void MyChart( void );
void MyChart( void )
{
SweepChart_chart = lv_chart_create( guider_ui.screen, NULL );
}
- run simulator, compile fails as it can't find lv_chart_create()
- edit ./lvgl-simulator/lv_conf.h
- change #define LV_USE_CHART 0
- to #define LV_USE_CHART 1
- run simulator, compile fails again
- refresh lv_conf.h. Define has changed back to 0
- drop a chart widget on the screen
- run simulator, compile now complete, define is set to 1
It seems to be more of an issue with 1.4.1? I don't think 1.3 has anything to do with the issue.
My workaround for now is to simply create a blank screen which will not be shown and add the screen and message box widgets and it works.