Skip to content

PlatformIO Build error #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #137
Snoopy-HSS opened this issue Feb 2, 2025 · 8 comments
Closed
Tracked by #137

PlatformIO Build error #155

Snoopy-HSS opened this issue Feb 2, 2025 · 8 comments

Comments

@Snoopy-HSS
Copy link

Took the PlatformIO Example and get link errors:

.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/ESP-LCD/src/main.cpp.o:(.literal._Z5setupv+0x20): undefined reference to ESP_Panel::ESP_Panel()' .platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/ESP-LCD/src/main.cpp.o:(.literal._Z5setupv+0x24): undefined reference to ESP_Panel::init()'
.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/ESP-LCD/src/main.cpp.o:(.literal._Z5setupv+0x28): undefined reference to ESP_Panel::begin()' .platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/ESP-LCD/src/main.cpp.o:(.literal._Z5setupv+0x2c): undefined reference to ESP_Panel::getLcd()'
.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/ESP-LCD/src/main.cpp.o:(.literal._Z5setupv+0x30): undefined reference to ESP_Panel::getTouch()' .platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/ESP-LCD/src/main.cpp.o: in function setup()':
\ESP-LCD/src/main.cpp:26: undefined reference to ESP_Panel::ESP_Panel()' .platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: \ESP-LCD/src/main.cpp:27: undefined reference to ESP_Panel::init()'
.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: \ESP-LCD/src/main.cpp:34: undefined reference to ESP_Panel::begin()' .platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: \ESP-LCD/src/main.cpp:37: undefined reference to ESP_Panel::getLcd()'
.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: \ESP-LCD/src/main.cpp:37: undefined reference to `ESP_Panel::getTouch()'

Did I miss something?

@Snoopy-HSS
Copy link
Author

Snoopy-HSS commented Feb 3, 2025

It's in VSCODE on Windows 11
All current Versions.

@Lzw655
Copy link
Collaborator

Lzw655 commented Feb 5, 2025

Hi @Snoopy-HSS,

Sorry for the late. Please refer to the documentation and configure the corresponding files based on your development board type before using the ESP_Panel drivers.

@Snoopy-HSS
Copy link
Author

Snoopy-HSS commented Feb 6, 2025

Image

Did all the config.
But getting this undefined reference error...

Using the ESP_LCD.json as Board in PIO

@Lzw655
Copy link
Collaborator

Lzw655 commented Feb 8, 2025

Was the ESP_PANEL_USE_SUPPORTED_BOARD macro enabled as well?

@Lzw655
Copy link
Collaborator

Lzw655 commented Feb 8, 2025

You are probably not using the default example from this repository, right? Based on the error log you provided, the example includes a main.cpp file, but the default example in this repository does not have it. I suggest trying the default example from this repository first for testing.

@Snoopy-HSS
Copy link
Author

Image

Image

Same if I user app.cpp instead of main.cpp

Linking .pio\build\ESP-LCD\firmware.elf
/.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: /.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/lib/esp32s3/no-rtti\libc.a(libc_a-getentropyr.o):(.literal+0x4): warning: _getentropy is not implemented and will always fail
/.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: /.platformio/packages/framework-arduinoespressif32-libs/esp32s3/qio_opi\libesp_system.a(startup.c.obj):(.literal.__esp_system_init_fn_init_components0+0x8): undefined reference to _Unwind_SetEnableExceptionFdeSorting' /.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: /.platformio/packages/framework-arduinoespressif32-libs/esp32s3/qio_opi\libesp_system.a(startup.c.obj): in function __esp_system_init_fn_init_components0':
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/startup.c:497:(.text.__esp_system_init_fn_init_components0+0x1e): undefined reference to _Unwind_SetEnableExceptionFdeSorting' /.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: /.platformio/packages/framework-arduinoespressif32-libs/esp32s3/lib\libnewlib.a(reent_init.c.obj):(.iram1.0.literal+0x4): undefined reference to _cleanup_r'
/.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: /.platformio/packages/framework-arduinoespressif32-libs/esp32s3/lib\libnewlib.a(newlib_init.c.obj):(.data.s_stub_table+0x98): undefined reference to _cleanup_r' /.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: .pio/build/ESP-LCD/src/app.cpp.o:(.literal._Z5setupv+0x24): undefined reference to ESP_Panel::ESP_Panel()'
/.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: .pio/build/ESP-LCD/src/app.cpp.o:(.literal._Z5setupv+0x28): undefined reference to ESP_Panel::init()' /.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: .pio/build/ESP-LCD/src/app.cpp.o:(.literal._Z5setupv+0x2c): undefined reference to ESP_Panel::begin()'
/.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: .pio/build/ESP-LCD/src/app.cpp.o:(.literal._Z5setupv+0x30): undefined reference to ESP_Panel::getLcd()' /.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: .pio/build/ESP-LCD/src/app.cpp.o:(.literal._Z5setupv+0x34): undefined reference to ESP_Panel::getTouch()'
/.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: .pio/build/ESP-LCD/src/app.cpp.o: in function setup()': \OneDrive\Elektronik\ESP-LCD/src/app.cpp:26:(.text._Z5setupv+0x6b): undefined reference to ESP_Panel::ESP_Panel()'
/.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: \OneDrive\Elektronik\ESP-LCD/src/app.cpp:27:(.text._Z5setupv+0x73): undefined reference to ESP_Panel::init()' /.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: \OneDrive\Elektronik\ESP-LCD/src/app.cpp:34:(.text._Z5setupv+0x7b): undefined reference to ESP_Panel::begin()'
/.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: \OneDrive\Elektronik\ESP-LCD/src/app.cpp:37:(.text._Z5setupv+0x8e): undefined reference to ESP_Panel::getLcd()' /.platformio/packages/toolchain-xtensa-esp-elf@13.2.0+20240530/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: \OneDrive\Elektronik\ESP-LCD/src/app.cpp:37:(.text._Z5setupv+0x9c): undefined reference to ESP_Panel::getTouch()'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\ESP-LCD\firmware.elf] Error 1

@Snoopy-HSS
Copy link
Author

with platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.11/platform-espressif32.zip it works...

@Lzw655
Copy link
Collaborator

Lzw655 commented Feb 11, 2025

Although I cannot reproduce your issue, the platform link you provided also works and supports Arduino v3.1.1. I will use this link in the new version. Thanks for sharing!

@Lzw655 Lzw655 mentioned this issue Feb 17, 2025
10 tasks
Lzw655 added a commit that referenced this issue Feb 17, 2025
Closes #108
Closes #130
Closes #131
Closes #138
Closes #150
Closes #155
@Lzw655 Lzw655 closed this as completed in 8861c38 Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants