wifi station 例子编译通不过,跪求!

zhaolei_cpp
Posts: 2
Joined: Mon Feb 08, 2021 4:11 pm

wifi station 例子编译通不过,跪求!

Postby zhaolei_cpp » Mon Feb 08, 2021 4:18 pm

成功安装esp-idf后,
把 esp-idf\examples\wifi\getting_started\station 拷贝出来
编译后失败。大概意思是说:链接时 lwip_* 函数都找不到。
跪求帮助。

===============================================================
FAILED: wifi_station.elf
cmd.exe /C "cd . && C:\Users\Nameless\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\wifi_station.elf.rsp -o wifi_station.elf && cd ."
c:/users/nameless/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/lwip/liblwip.a(vfs_lwip.c.obj):(.literal.lwip_ioctl_r_wrapper+0x0): undefined reference to `lwip_ioctl'
c:/users/nameless/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/lwip/liblwip.a(vfs_lwip.c.obj):(.literal.lwip_fcntl_r_wrapper+0x0): undefined reference to `lwip_fcntl'
c:/users/nameless/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/lwip/liblwip.a(vfs_lwip.c.obj):(.literal.esp_vfs_lwip_sockets_register+0x0): undefined reference to `lwip_write'
c:/users/nameless/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/lwip/liblwip.a(vfs_lwip.c.obj):(.literal.esp_vfs_lwip_sockets_register+0x4): undefined reference to `lwip_read'
c:/users/nameless/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/lwip/liblwip.a(vfs_lwip.c.obj):(.literal.esp_vfs_lwip_sockets_register+0x8): undefined reference to `lwip_close'
c:/users/nameless/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/lwip/liblwip.a(vfs_lwip.c.obj):(.literal.esp_vfs_lwip_sockets_register+0x14): undefined reference to `lwip_select'
c:/users/nameless/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/lwip/liblwip.a(vfs_lwip.c.obj): in function `lwip_ioctl_r_wrapper':
C:/Users/Nameless/Desktop/esp-idf/components/lwip/port/esp32/vfs_lwip.c:57: undefined reference to `lwip_ioctl'
c:/users/nameless/.espressif/tools/xtensa-esp32-elf/esp-2020r2-8.2.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: esp-idf/lwip/liblwip.a(vfs_lwip.c.obj): in function `lwip_fcntl_r_wrapper':
C:/Users/Nameless/Desktop/esp-idf/components/lwip/port/esp32/vfs_lwip.c:52: undefined reference to `lwip_fcntl'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

zhaolei_cpp
Posts: 2
Joined: Mon Feb 08, 2021 4:11 pm

Re: wifi station 例子编译通不过,跪求!

Postby zhaolei_cpp » Tue Feb 09, 2021 9:29 am

重新安装搞定。

Who is online

Users browsing this forum: No registered users and 64 guests