Closed C47D closed 3 years ago
@tore-espressif Should I set the target chip before make? Like this: TARGET=esp32 make
? I've never cross this bug before.
First line of your log says that you are using toolchain for esp32s2. It is only weird if you didn't set it yourself: esp32 should be default.
Running idf.py set-target esp32
should fix the problem.
(Since ESP32S2 support was introduced in ESP-IDF 4.2, there is no alternative command for make
, AFAIK)
Yep, it's weird because I've never used the esp32-s2 target. I will try your suggestion.
EDIT
After running idf.py set-target esp32
I had to remove both sdkconfig
and sdkconfig.old
files and now I'm able to build with make, until reaching the build of the demo example
Generating esp32.project.ld
LD build/lvgl-demo.elf
/home/dev/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/dev/lv_port_esp32/build/lvgl_esp32_drivers/liblvgl_esp32_drivers.a(disp_spi.o):(.iram1.24.literal+0x4): undefined reference to `_lv_refr_get_disp_refreshing'
/home/dev/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/dev/lv_port_esp32/build/lvgl_esp32_drivers/liblvgl_esp32_drivers.a(disp_spi.o):(.iram1.24.literal+0x8): undefined reference to `lv_disp_flush_ready'
/home/dev/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/dev/lv_port_esp32/build/lvgl_esp32_drivers/liblvgl_esp32_drivers.a(disp_spi.o): in function `spi_ready':
/home/dev/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_tft/disp_spi.c:308: undefined reference to `_lv_refr_get_disp_refreshing'
/home/dev/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/dev/lv_port_esp32/components/lvgl_esp32_drivers/lvgl_tft/disp_spi.c:313: undefined reference to `lv_disp_flush_ready'
/home/dev/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /home/dev/lv_port_esp32/build/lv_examples/liblv_examples.a(lv_demo_widgets.o):(.literal.tab_content_anim_create+0x0): undefined reference to `lv_obj_set_y'
Attached is the output lvgl_esp32_make_output.txt
I was able to compile this project using make with the following patch https://github.com/lvgl/lvgl/pull/2108
I was able to compile this project using make with the following patch lvgl/lvgl#2108
Yep, that was the last missing thing :)
Just saw it got merged, will update the lvgl submodule in a bit.
We use GitHub issues for development related discussions. Please use the forum to ask questions.
Describe the issue Can't build using make, I got the error below.
Code to reproduce the issue Clone the current master and run make.
Expected Results Being able to build the project using make
Actual Results
ESP32 Chip version
ESP32
ESP-IDF version 4.2
Development kit used None
Development machine OS Ubuntu (WSL)
Compilation warnings/errors (if available)
If possible, copy the compilation log into a file and attach it here