0

I am trying to ad lvgl library in esp32 project. I have done what first parts of the guide said about git cloning of 2 repos for lvgl and esp32_drivers. These are now under my /component directory.

Lvgl is set to 1 in conf and also i have unchecked the sdkconfig to use the lv_conf.h file. So up to this moment everything looked well until i have tried to build where i get tones of problems on includes for headers that do not exists.

These headers exists on the main esp-idf so i go to include on main.c /driver/spi_master.h it works properly but inside lv_esp32_drivers library the same include gives error.

How to fix this. my cpp properties confi is the next:

    {
    "configurations": [
        {
            "name": "ESP-IDF",
            "compilerPath": "/Users/theUser/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "includePath": [
                "${config:idf.espIdfPath}/components/**",
                "${config:idf.espIdfPathWin}/components/**",
                "${workspaceFolder}/**",
                "${workspaceFolder}/components/**"

            ],
            "browse": {
                "path": [
                    "${config:idf.espIdfPath}/components",
                    "${config:idf.espIdfPathWin}/components",
                    "${workspaceFolder}",
                    "${workspaceFolder}/components"

                ],
                "limitSymbolsToIncludedHeaders": false
            },
            "configurationProvider": "ms-vscode.cmake-tools"
        }
    ],
    "version": 4
}

enter image description here

kyrpav
  • 756
  • 1
  • 13
  • 43

0 Answers0