What do you want to achieve?
I want to use code generated using the LVGL Editor version 0.3 with ESP-IDF framework, I tried and almost reached 99% state, but getting the following error.
What have you tried so far?
I tried commenting out this function, but then what I wanted to show is not visible, plus I tried to include the header files also, but nothing works, header file inclusion is also giving me an error.
Project CMake file is as below.
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
add_compile_options("-Wno-attributes") # For LVGL code
project(hello_world)
and the cmake file in main folder is as below.
# See the build system documentation in IDF programming guide
# for more information about component CMakeLists.txt files.
idf_component_register(
SRCS main.c # list the source files of this component
gui_mng.c
gui_mng_cfg.c
hello_world_lvgl/screens/main_gen.c
hello_world_lvgl/hello_world_lvgl_gen.c
hello_world_lvgl/ui.c
hello_world_lvgl/hello_world_lvgl.c
hello_world_lvgl/fonts/Inter_SemiBold_ttf_data.c
INCLUDE_DIRS # optional, add here public include directories
"." "hello_world_lvgl" "hello_world_lvgl/screens" ${LV_DEMO_DIR}
PRIV_INCLUDE_DIRS # optional, add here private include directories
REQUIRES # optional, list the public requirements (component names)
PRIV_REQUIRES # optional, list the private requirements
)
# Add the macro definition for this component
target_compile_definitions(${COMPONENT_LIB} PUBLIC LV_LVGL_H_INCLUDE_SIMPLE)
I am able to make LVGL working with ESP32P4 Evaulation Board without LVGL Editor Code, but the code generated by LVGL Editor is giving this build error which I am not able to fix.
Environment
- ESP32P4 Function EV Board:
- LVGL version: 9.3
Please suggest or an example project which uses ESP-IDF and LVGL Editor code, I will check myself.
If there is a working example of Code Generated using LVGL Editor and ESP-IDF framework working together, please share I will try to find my self the issue.
