espressif / esp-iot-bridge

A smart bridge to make both ESP and the other MCU or smart device can access the Internet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: src/core/ipv4/ip4.c: Patch konnte nicht angewendet werden (AEGHB-332)

rinstrum-franz opened this issue · comments

Get this every time at Compile:

-- Adding linker script /home/franz/esp-idf-v5.1/components/soc/esp32/ld/esp32.peripherals.ld
error: Anwendung des Patches fehlgeschlagen: src/core/ipv4/ip4.c:332
error: src/core/ipv4/ip4.c: Patch konnte nicht angewendet werden

Full log here:

https://gist.github.com/rinstrum-franz/8fb27d45e1fab2b0428b50e74c913e71

Hello, due to the fact that a part of the idf's lwip component hasn't been updated yet, we have created a patch. This patch will be applied to the lwip component within the iot_bridge component's CMake. If this patch has already been applied or if lwip has been modified in some other way, you might encounter the errors mentioned above. If you can ensure that the lwip patch has been applied, you can disregard the errors mentioned earlier.

    execute_process(COMMAND
                    git apply ${CMAKE_CURRENT_LIST_DIR}/patch/ip4_forward.patch
                    WORKING_DIRECTORY $ENV{IDF_PATH}/components/lwip/lwip/)

请问idf5.1需要打ip4_forward.patch这个补丁吗?我在编译的时候报错error: patch failed: src/core/ipv4/ip4.c:332
error: src/core/ipv4/ip4.c: patch does not apply,按照你们的文档打补丁也报错error: patch failed: src/core/ipv4/ip4.c:332
error: src/core/ipv4/ip4.c: patch does not apply,请问下这个怎么能解决?

目前是 CMake 自动给 idf 的 component/lwip/lwip 子模块打 patch 的,不需要用户手动打 patch。你可以去 esp-idf/components/lwip/lwip 里面看一下是否已经打上 patch 了,如果已经打上 patch 了,后面 CMake 编译会提示错误,但是可以忽略。