找不到组件 LWIP的头文件inet.h

lujinming
Posts: 9
Joined: Wed Mar 13, 2019 6:36 am

找不到组件 LWIP的头文件inet.h

Postby lujinming » Wed Mar 13, 2019 6:54 am

大家好,我在编译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 satisfied.

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

jinming.lu@CNSHA0900L MINGW32 ~/esp/hello_world

lujinming
Posts: 9
Joined: Wed Mar 13, 2019 6:36 am

Re: 找不到组件 LWIP的头文件inet.h

Postby lujinming » Thu Mar 14, 2019 5:42 am

已经解决,在C:\esp32\msys32\home\jinming.lu\esp\esp-idf\components\lwip\lwip\src放置 LwIP的源码就能编译通过,谢谢大家的关注

Who is online

Users browsing this forum: No registered users and 62 guests