How do I set LV_USE_BUILTIN_MALLOC without using lv_conf.h? (platformio+espidf+lvgl)

  1. build configuration : platformio + espidf + lvgl (not used lv_conf.h)
    • included lvgl and lvgl_esp32_driver in espidf project

image

  1. build error occurred!
    image

→ Not defined function lv_malloc_builtin
#define LV_USE_BUILTIN_MALLOC 0 in lv_conf_internal.c
→ deactivated lv_malloc_builtin functions in lv_malloc_builtin.c

image

  1. How do I set the LV_USE_BUILTIN_MALLOC or CONFIG_LV_USE_BUILTIN_MALLOC by menuconfig
    image
    There was no effect even if I didn’t check the first line of the menu below.

  2. CONFIG_item related to memory are as follows. (sdkconfig)

#
# Memory settings
#
# CONFIG_LV_MEM_CUSTOM is not set
CONFIG_LV_MEM_SIZE_KILOBYTES=32
CONFIG_LV_MEM_ADDR=0x0
CONFIG_LV_MEM_BUF_MAX_NUM=16
# CONFIG_LV_MEMCPY_MEMSET_STD is not set
# end of Memory settings

When set in espidf menuconfig, the related variables in the sdkconfig file are updated and affect the variables used in lv_conf_internal.h

But what should I do if the variable set in menuconfig is not used for lv_conf_internal.h?
For example, if the item “Set number of maximally cached circle data” is set to 4 in menucconfig and saved, it is updated to CONFIG_LV_CIRCLE_CACHE_SIZE=4 in the sdkconfig file. However, CONFIG_LV_CIRCLE_CACHE_SIZE is not used for lv_conf_internal.h. What should I do to apply it in this case?

image

Hi,

LV_USE_BUILTIN_MALLOC is a new define in the master branch where we develop v9. So master is not stable at this moment. See the README: