Error on building the Switch example from esp-rainmaker

rodrigopandini
Posts: 1
Joined: Sun Mar 23, 2025 11:09 am

Error on building the Switch example from esp-rainmaker

Postby rodrigopandini » Sun Mar 23, 2025 11:29 am

Hi.

I'm getting the error bellow when I try to build the Switch example from esp-rainmaker.
Not sure if is wrong version or something else.
Can someone help me?

Code: Untitled.bsh Select all


/home/myuser/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/esp_wifi/libesp_wifi.a(esp_adapter.c.obj):(.data.g_wifi_osi_funcs+0x150): undefined reference to `__wrap_esp_log_write'
/home/myuser/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: esp-idf/esp_wifi/libesp_wifi.a(esp_adapter.c.obj):(.data.g_wifi_osi_funcs+0x154): undefined reference to `__wrap_esp_log_writev'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

* The terminal process "ninja" terminated with exit code: 1.

Not sure if this can help, but I'm attaching an image that show all information that Arduino IDE provide me about my esp32 device, when I successfully run a simple example for blink led.
Attachments
Screenshot from 2025-03-23 07-25-43.png
Screenshot from 2025-03-23 07-25-43.png (60.46 KiB) Viewed 1059 times
Screenshot from 2025-03-23 07-14-49.png
Screenshot from 2025-03-23 07-14-49.png (13.22 KiB) Viewed 1059 times
Last edited by rodrigopandini on Mon Mar 24, 2025 9:19 am, edited 1 time in total.

ahsrabrifat
Posts: 201
Joined: Sat Jan 18, 2025 2:31 pm

Re: Error on building the Switch example from esp-rainmaker

Postby ahsrabrifat » Sun Mar 23, 2025 5:48 pm

Check if your CMakeLists.txt includes the logging component:

Code: Select all

idf_component_register(SRCS "main.c"
                       INCLUDE_DIRS "."
                       REQUIRES log)

Who is online

Users browsing this forum: No registered users and 1 guest