ESP32-S2使用IDF MASTER分支编译出现/http-parser 文件夹缺失

inkfish321
Posts: 14
Joined: Thu Apr 22, 2021 6:23 am

ESP32-S2使用IDF MASTER分支编译出现/http-parser 文件夹缺失

Postby inkfish321 » Mon Jun 14, 2021 6:25 am

git describe --tags

v4.4-dev-1594-g1d7068e4b

如下输入

idf.py set-target esp32s2 menuconfig
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/mnt/g/project/LinuxProjectsDir/esp32/esp-dev-kits/esp32-s2-kaluga-1/examples/tago_wifi_s2/build' is empty. Nothing to clean.
Executing action: set-target
Set Target to: esp32s2, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /mnt/g/project/LinuxProjectsDir/esp32/esp-dev-kits/esp32-s2-kaluga-1/examples/tago_wifi_s2/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s2 -DIDF_TARGET=esp32s2 -DCCACHE_ENABLE=0 /mnt/g/project/LinuxProjectsDir/esp32/esp-dev-kits/esp32-s2-kaluga-1/examples/tago_wifi_s2"...
-- Found Git: /usr/bin/git (found version "2.25.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/inkfish/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc
-- Check for working C compiler: /home/inkfish/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc
-- Check for working C compiler: /home/inkfish/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/inkfish/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++
-- Check for working CXX compiler: /home/inkfish/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s2
-- Project sdkconfig file /mnt/g/project/LinuxProjectsDir/esp32/esp-dev-kits/esp32-s2-kaluga-1/examples/tago_wifi_s2/sdkconfig
Loading defaults file /mnt/g/project/LinuxProjectsDir/esp32/esp-dev-kits/esp32-s2-kaluga-1/examples/tago_wifi_s2/sdkconfig.defaults...
/mnt/g/project/LinuxProjectsDir/esp32/esp-dev-kits/esp32-s2-kaluga-1/examples/tago_wifi_s2/sdkconfig.defaults:237 CONFIG_ESP32S2_MEMPROT_FEATURE was replaced with CONFIG_ESP_SYSTEM_MEMPROT_FEATURE
/mnt/g/project/LinuxProjectsDir/esp32/esp-dev-kits/esp32-s2-kaluga-1/examples/tago_wifi_s2/sdkconfig.defaults:238 CONFIG_ESP32S2_MEMPROT_FEATURE_LOCK was replaced with CONFIG_ESP_SYSTEM_MEMPROT_FEATURE_LOCK
/mnt/g/project/LinuxProjectsDir/esp32/esp-dev-kits/esp32-s2-kaluga-1/examples/tago_wifi_s2/sdkconfig.defaults:435 CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE was replaced with CONFIG_ESP_COREDUMP_ENABLE_TO_NONE
-- Found PythonInterp: /home/inkfish/.espressif/python_env/idf4.4_py3.8_env/bin/python (found version "3.8.5")
-- Found Perl: /usr/bin/perl (found version "5.30.0")
-- App "app_main" version: a335f49-dirty
-- Adding linker script /mnt/g/project/LinuxProjectsDir/esp32/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.ld
-- Adding linker script /mnt/g/project/LinuxProjectsDir/esp32/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.api.ld
-- Adding linker script /mnt/g/project/LinuxProjectsDir/esp32/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.libgcc.ld
-- Adding linker script /mnt/g/project/LinuxProjectsDir/esp32/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.newlib-funcs.ld
-- Adding linker script /mnt/g/project/LinuxProjectsDir/esp32/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.newlib-data.ld
-- Adding linker script /mnt/g/project/LinuxProjectsDir/esp32/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.spiflash.ld
-- Adding linker script /mnt/g/project/LinuxProjectsDir/esp32/esp-dev-kits/esp32-s2-kaluga-1/examples/tago_wifi_s2/build/esp-idf/esp32s2/esp32s2_out.ld
-- Adding linker script /mnt/g/project/LinuxProjectsDir/esp32/esp-idf/components/esp32s2/ld/esp32s2.project.ld.in
-- Adding linker script /mnt/g/project/LinuxProjectsDir/esp32/esp-idf/components/esp32s2/ld/esp32s2.peripherals.ld
CMake Error at /mnt/g/project/LinuxProjectsDir/esp32/esp-idf/tools/cmake/component.cmake:305 (message):
Include directory
'/mnt/g/project/LinuxProjectsDir/esp32/esp-idf/components/nghttp/nghttp2/third-party/http-parser'
is not a directory.
Call Stack (most recent call first):
/mnt/g/project/LinuxProjectsDir/esp32/esp-idf/tools/cmake/component.cmake:477 (__component_add_include_dirs)
/mnt/g/project/LinuxProjectsDir/esp32/esp-idf/tools/cmake/component.cmake:538 (idf_component_register)
main/CMakeLists.txt:23 (register_component)


-- Configuring incomplete, errors occurred!
See also "/mnt/g/project/LinuxProjectsDir/esp32/esp-dev-kits/esp32-s2-kaluga-1/examples/tago_wifi_s2/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1


请问怎么解决

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ESP32-S2使用IDF MASTER分支编译出现/http-parser 文件夹缺失

Postby ESP_Gargamel » Tue Jun 15, 2021 1:31 am

rm build sdkconfig sdkconfig.old 后再试一下。
在 idf 目录下 git submodule update --init --recursive --progress 确保所有 submodule 都已更新。
master 的 idf 并没有 esp-idf/components/nghttp/nghttp2/third-party/http-parser 这个目录,可以到 esp-idf/components/nghttp/nghttp2 目录下 git submodule 看下 nghttp2 的 submodules。

Who is online

Users browsing this forum: No registered users and 51 guests