Page 1 of 1

Arduino compilation error

Posted: Sun Mar 23, 2025 3:37 pm
by morozov
Hi, I'm trying to compile simple LVGL porting example on IDE v.2.3.4 to upload later on Waveshare ESP32-S3-Touch-LCD-7.
currently installed libraries supplied by waveshare:
ESP32_Display_Panel v0.1.4
ESP32_IO_Expander v0.0.4
lvgl v8.4.0

Any one have seen these compilation errors before and how I can clear them?:
/home/alex/Arduino/libraries/ESP32_Display_Panel/src/lcd/ESP_PanelLcd.cpp:467:2: error: unterminated argument list invoking macro "ESP_PANEL_CHECK_FALSE_RET"
467 | }
| ^
/home/alex/Arduino/libraries/ESP32_Display_Panel/src/lcd/ESP_PanelLcd.cpp: In member function 'bool ESP_PanelLcd::attachRefreshFinishCallback(std::function<bool(void*)>, void*)':
/home/alex/Arduino/libraries/ESP32_Display_Panel/src/lcd/ESP_PanelLcd.cpp:298:9: error: 'ESP_PANEL_CHECK_FALSE_RET' was not declared in this scope
298 | ESP_PANEL_CHECK_FALSE_RET((esp_ptr_in_iram(callback), false, "Callback function should be placed in IRAM, add
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/alex/Arduino/libraries/ESP32_Display_Panel/src/lcd/ESP_PanelLcd.cpp:298:34: error: expected '}' at end of input
298 | ESP_PANEL_CHECK_FALSE_RET((esp_ptr_in_iram(callback), false, "Callback function should be placed in IRAM, add
| ^
/home/alex/Arduino/libraries/ESP32_Display_Panel/src/lcd/ESP_PanelLcd.cpp:297:51: note: to match this '{'
297 | if (bus->getType() == ESP_PANEL_BUS_TYPE_RGB) {
| ^
/home/alex/Arduino/libraries/ESP32_Display_Panel/src/lcd/ESP_PanelLcd.cpp:298:34: error: expected '}' at end of input
298 | ESP_PANEL_CHECK_FALSE_RET((esp_ptr_in_iram(callback), false, "Callback function should be placed in IRAM, add
| ^
/home/alex/Arduino/libraries/ESP32_Display_Panel/src/lcd/ESP_PanelLcd.cpp:292:1: note: to match this '{'
292 | {
| ^

exit status 1

Compilation error: exit status 1

Re: Arduino compilation error

Posted: Mon Mar 24, 2025 2:20 am
by chegewara
Seems you are using this library, but files name do not match
https://github.com/esp-arduino-libs/ESP32_Display_Panel

Try to re-install library.

From logs you can see that library you are using have some typo
/home/alex/Arduino/libraries/ESP32_Display_Panel/src/lcd/ESP_PanelLcd.cpp:298:34: error: expected '}' at end of input

Re: Arduino compilation error

Posted: Mon Jul 21, 2025 5:19 am
by Govardhanan
Hello,

Were you able to compile the same example, solving the compilation problem?
If yes, what did you do?
Can you help me?

Thanks,
Gova.