martinberlin / lv_port_esp32-epaper

LVGL ported to ESP32 including various display and touchpad drivers. Forked to support parallel epaper displays (using EPDiy as a component) Supports also L58 touch controller used in Lilygo EPD47
https://www.tindie.com/search/?q=Kindle
MIT License
47 stars 11 forks source link

idf.py build error, CONFIG_LV_TOUCH_I2C_SDA was not declared in this scope #6

Closed brainsky closed 2 years ago

brainsky commented 3 years ago

I follow Get started tutorial,when i execute idf.py build , i get error below:

../components/FT6X36-IDF/L58Touch.cpp:15:5: error: 'CONFIG_LV_TOUCH_I2C_SDA' was not declared in this scope

I don't know why it use L58Touch. In idf.py menuconfig , i choose lvgl touch controller is none. sdkconfig below: # # LVGL Touch controller # CONFIG_LV_TOUCH_CONTROLLER=0 CONFIG_LV_TOUCH_CONTROLLER_NONE=y # CONFIG_LV_TOUCH_CONTROLLER_XPT2046 is not set # CONFIG_LV_TOUCH_CONTROLLER_FT6X06 is not set # CONFIG_LV_TOUCH_CONTROLLER_L58 is not set # CONFIG_LV_TOUCH_CONTROLLER_STMPE610 is not set # CONFIG_LV_TOUCH_CONTROLLER_ADCRAW is not set # CONFIG_LV_TOUCH_CONTROLLER_FT81X is not set # CONFIG_LV_TOUCH_CONTROLLER_RA8875 is not set # end of LVGL Touch controller # end of Component config

ESP32 Chip: ESP32-WROOM-32

ESP-IDF version: v4.4-dev-2825-gb63ec47238-dirty

e-paper: waveshare 5.83inch e-Paper HAT

issue log: [987/1291] Building CXX object esp-idf/FT6X36-IDF/CMakeFiles/__idf_FT6X36-IDF.dir/L58Touch.cpp.obj FAILED: esp-idf/FT6X36-IDF/CMakeFiles/__idf_FT6X36-IDF.dir/L58Touch.cpp.obj ccache C:\Users\liangkongde\.espressif\tools\xtensa-esp32-elf\esp-2021r1-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -Iconfig -I../components/FT6X36-IDF/include -IF:/ESP/esp-idf/components/newlib/platform_include -IF:/ESP/esp-idf/components/freertos/include -IF:/ESP/esp-idf/components/freertos/port/xtensa/include -IF:/ESP/esp-idf/components/freertos/include/esp_additions -IF:/ESP/esp-idf/components/esp_hw_support/include -IF:/ESP/esp-idf/components/esp_hw_support/include/soc -IF:/ESP/esp-idf/components/esp_hw_support/include/soc/esp32 -IF:/ESP/esp-idf/components/esp_hw_support/port/esp32/. -IF:/ESP/esp-idf/components/heap/include -IF:/ESP/esp-idf/components/log/include -IF:/ESP/esp-idf/components/lwip/include/apps -IF:/ESP/esp-idf/components/lwip/include/apps/sntp -IF:/ESP/esp-idf/components/lwip/lwip/src/include -IF:/ESP/esp-idf/components/lwip/port/esp32/include -IF:/ESP/esp-idf/components/lwip/port/esp32/include/arch -IF:/ESP/esp-idf/components/soc/include -IF:/ESP/esp-idf/components/soc/esp32/. -IF:/ESP/esp-idf/components/soc/esp32/include -IF:/ESP/esp-idf/components/hal/esp32/include -IF:/ESP/esp-idf/components/hal/include -IF:/ESP/esp-idf/components/hal/platform_port/include -IF:/ESP/esp-idf/components/esp_rom/include -IF:/ESP/esp-idf/components/esp_rom/include/esp32 -IF:/ESP/esp-idf/components/esp_rom/esp32 -IF:/ESP/esp-idf/components/esp_common/include -IF:/ESP/esp-idf/components/esp_system/include -IF:/ESP/esp-idf/components/esp_system/port/soc -IF:/ESP/esp-idf/components/esp_system/port/public_compat -IF:/ESP/esp-idf/components/esp32/include -IF:/ESP/esp-idf/components/xtensa/include -IF:/ESP/esp-idf/components/xtensa/esp32/include -IF:/ESP/esp-idf/components/driver/include -IF:/ESP/esp-idf/components/driver/esp32/include -IF:/ESP/esp-idf/components/esp_pm/include -IF:/ESP/esp-idf/components/esp_ringbuf/include -IF:/ESP/esp-idf/components/efuse/include -IF:/ESP/esp-idf/components/efuse/esp32/include -IF:/ESP/esp-idf/components/vfs/include -IF:/ESP/esp-idf/components/esp_wifi/include -IF:/ESP/esp-idf/components/esp_event/include -IF:/ESP/esp-idf/components/esp_netif/include -IF:/ESP/esp-idf/components/esp_eth/include -IF:/ESP/esp-idf/components/tcpip_adapter/include -IF:/ESP/esp-idf/components/esp_phy/include -IF:/ESP/esp-idf/components/esp_phy/esp32/include -IF:/ESP/esp-idf/components/esp_ipc/include -IF:/ESP/esp-idf/components/app_trace/include -IF:/ESP/esp-idf/components/esp_timer/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=C:/Users/liangkongde/Documents/GitHub/lv_port_esp32-epaper=. -fmacro-prefix-map=F:/ESP/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fno-exceptions -fno-rtti -D_GNU_SOURCE -DIDF_VER=\"v4.4-dev-2825-gb63ec47238-dirty\" -DESP_PLATFORM -MD -MT esp-idf/FT6X36-IDF/CMakeFiles/__idf_FT6X36-IDF.dir/L58Touch.cpp.obj -MF esp-idf\FT6X36-IDF\CMakeFiles\__idf_FT6X36-IDF.dir\L58Touch.cpp.obj.d -o esp-idf/FT6X36-IDF/CMakeFiles/__idf_FT6X36-IDF.dir/L58Touch.cpp.obj -c ../components/FT6X36-IDF/L58Touch.cpp ../components/FT6X36-IDF/L58Touch.cpp: In constructor 'L58Touch::L58Touch(int8_t)': ../components/FT6X36-IDF/L58Touch.cpp:15:5: error: 'CONFIG_LV_TOUCH_I2C_SDA' was not declared in this scope CONFIG_LV_TOUCH_I2C_SDA, CONFIG_LV_TOUCH_I2C_SCL, intPin);

Li-Tianming commented 3 years ago

same here. so i just comment the L58Touch.cpp file

# Add only the display srcs you are going to use if you want to keep compiled srcs to a minimum:
set(srcs 
    # "L58Touch.cpp"
    )

idf_component_register(SRCS ${srcs}
brainsky commented 2 years ago

Nice, Thank you. I solve it.

same here. so i just comment the L58Touch.cpp file

# Add only the display srcs you are going to use if you want to keep compiled srcs to a minimum:
set(srcs 
    # "L58Touch.cpp"
    )

idf_component_register(SRCS ${srcs}