Page 1 of 1

ESP-IDF "internal networking example" comiling error

Posted: Fri Nov 23, 2018 6:41 pm
by sandhan26
Hi, I was trying to compile the example program under esp-idf/examples/mesh/internal_communication/

But if I try to compile, I receive the following error:
  1. LD /home/sandhan/Documents/Projects/ESP-Projects/mesh/internal_communication/build/internal_communication.elf
  2. /home/sandhan/Documents/Projects/ESP-Projects/mesh/internal_communication/build/esp32/libesp32.a(phy_init.o):(.literal.esp_phy_rf_init+0xc): undefined reference to `esp_wifi_internal_update_mac_time'
  3. /home/sandhan/Documents/Projects/ESP-Projects/mesh/internal_communication/build/esp32/libesp32.a(phy_init.o): In function `phy_update_wifi_mac_time':
  4. /home/sandhan/.local/opt/esp/esp-idf/components/esp32/phy_init.c:86: undefined reference to `esp_wifi_internal_update_mac_time'
  5. collect2: error: ld returned 1 exit status
  6. /home/sandhan/.local/opt/esp/esp-idf/make/project.mk:452: recipe for target '/home/sandhan/Documents/Projects/ESP-Projects/mesh/internal_communication/build/internal_communication.elf' failed
  7. make: *** [/home/sandhan/Documents/Projects/ESP-Projects/mesh/internal_communication/build/internal_communication.elf] Error 1
Thanks

Re: ESP-IDF "internal networking example" comiling error

Posted: Mon Nov 26, 2018 3:16 am
by ESP_yudong
Hi sandhan,
First, can you compile the example examples/wifi/scan successfully?
Make sure your submodule is clean and updated. git submodule update --init and git status.

Please provide more information about your environment. Thanks.
  • IDF version
  • Build System
  • Operating System
  • Compiler version
  • How to reproduce this problem
  • Full log