Configuration does not work when: lv_conf.h is moved using: build_flags -D LV_CONF_PATH="${PROJECT_DIR}/src/lv_conf.h"

Hi,

I can configure and run LVGL perfectly, I have ported LVGL version 9.1 to my 7 inch Waveshare board and develop using VSCode with the Espressif platform and the Arduino framework.

When I to put the configuration file in my own project directory using: “build_flags = -D LV_CONF_PATH=”${PROJECT_DIR}/src/lv_conf.h" in my platformio.ini file things go wrong:

  • It still builds fine, but when I make changes in the lv_conf.g file these changes do no longer have any effect. It feels as if the settings are somewhere cached somewhere.
  • Note that if I put something stupid in the local lv_conf.h file to break the build it indeed breaks, so it does read this local file, but does not make the updates to the settings.

The specific settings I wanted to change is e.g.: LV_USE_SYSMON 1

I think it is a bug somwhere in the macros of LVGL.

Any idea?

1 Like

#include __LV_TO_STR(LV_CONF_PATH)
There was an issue where paths were converted incorrectly, but it’s still a problem.