大家好,我在编译IDF example/hello_world例程时,编译报错说找不到lwip inet.h头文件,但是我到该路径下发现了该头文件,这是为什么?还有组件lwip并没有源码,该如何更新lwip源码 ?git submodule update指令不能更新该代码,期待你的回答,谢谢!
编译信息如下:
jinming.lu@CNSHA0900L MINGW32 ~/esp/esp-idf
$ git submodule update
jinming.lu@CNSHA0900L MINGW32 ~/esp/esp-idf
$ cd ..
jinming.lu@CNSHA0900L MINGW32 ~/esp
$ cd hello_world/
jinming.lu@CNSHA0900L MINGW32 ~/esp/hello_world
$ make
Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5
Compiler version: 5.2.0
Python requirements from C:/esp32/msys32/home/jinming.lu/esp/esp-idf/requirement s.txt are sa
tisfied.
Project is not inside a git repository, will not use 'git describe' to determine PROJECT_VER.
App "hello-world" version: 1
CC build/coap/libcoap/src/address.o
In file included from C:/esp32/msys32/home/jinming.lu/esp/esp-idf/components/coa p/libcoap/src/address.c:11:0:
C:/esp32/msys32/home/jinming.lu/esp/esp-idf/components/lwip/port/esp32/include/a rpa/inet.h:18:49: fatal error: ../../../lwip/src/include/lwip/inet.h: No such fi le or directory
compilation terminated.
make[1]: *** [/home/jinming.lu/esp/esp-idf/make/component_wrapper.mk:290:libcoa p/src/address.o] 错误 1
make: *** [C:/esp32/msys32/home/jinming.lu/esp/esp-idf/make/project.mk:551:comp onent-coap-build] 错误 2