short version:
after typing
idf set-target esp32c3 (actually also fails for esp32)
...
Failed to resolve component 'nghttp'.
...
long version:
esp5> rm -rf build
esp5> idf set-target esp32c3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/cs/system/danny/src/esp32/KeyPad/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32c3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /cs/system/danny/src/esp32/KeyPad/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=0 /cs/system/danny/src/esp32/KeyPad"...
-- Found Git: /usr/local/bin/git (found version "2.32.0")
-- Component directory /cs/system/danny/src/esp32/components/blinkled does not contain a CMakeLists.txt file. No component will be added
-- Component directory /cs/system/danny/src/esp32/components/buzzer does not contain a CMakeLists.txt file. No component will be added
-- Component directory /cs/system/danny/src/esp32/components/ethernet does not contain a CMakeLists.txt file. No component will be added
-- Component directory /cs/system/danny/src/esp32/components/ip5306 does not contain a CMakeLists.txt file. No component will be added
-- Component directory /cs/system/danny/src/esp32/components/ledc does not contain a CMakeLists.txt file. No component will be added
-- Component directory /cs/system/danny/src/esp32/components/ngraphics does not contain a CMakeLists.txt file. No component will be added
-- Component directory /cs/system/danny/src/esp32/components/qr does not contain a CMakeLists.txt file. No component will be added
-- Component directory /cs/system/danny/src/esp32/components/rmt does not contain a CMakeLists.txt file. No component will be added
-- Component directory /cs/system/danny/src/esp32/components/rtcmodule does not contain a CMakeLists.txt file. No component will be added
-- Component directory /cs/system/danny/src/esp32/components/serial does not contain a CMakeLists.txt file. No component will be added
-- Component directory /cs/system/danny/src/esp32/components/touch does not contain a CMakeLists.txt file. No component will be added
-- 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: /cs/system/danny/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /cs/system/danny/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /cs/system/danny/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32c3
CMake Error at /vol/src/esp/esp-idf.5.0/esp-idf/tools/cmake/build.cmake:197 (message):
Failed to resolve component 'nghttp'.
Call Stack (most recent call first):
/vol/src/esp/esp-idf.5.0/esp-idf/tools/cmake/build.cmake:225 (__build_resolve_and_add_req)
/vol/src/esp/esp-idf.5.0/esp-idf/tools/cmake/build.cmake:512 (__build_expand_requirements)
/vol/src/esp/esp-idf/tools/cmake/project.cmake:422 (idf_build_process)
CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred!
See also "/cs/system/danny/src/esp32/KeyPad/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
can't compile using latest master version
-
- Posts: 31
- Joined: Thu Mar 30, 2017 10:39 am
Re: can't compile using latest master version
Could you run "git status" on esp-idf to double check that all submodules are up to date as well?
-
- Posts: 31
- Joined: Thu Mar 30, 2017 10:39 am
Re: can't compile using latest master version
did that, more than once
Re: can't compile using latest master version
Could you please post the commit ID you are currently compiling with?
-
- Posts: 31
- Joined: Thu Mar 30, 2017 10:39 am
Re: can't compile using latest master version
I don't know much about git . but doing a git log this is what i get
btw, this is my last working version:
commit ef98a363e35dbc6bfd1caadfab8706874930f278 (HEAD -> master, origin/master, origin/HEAD)
Merge: 140efc3857 9cecde6fb4
Author: Mahavir Jain <mahavir@espressif.com>
Date: Thu Nov 25 09:01:59 2021 +0000
Merge branch 'feature/adds_fault_injection_protection_for_check_anti_rollback' into 'master'
bootloader_support: Adds fault injection protection for check_anti_rollback
See merge request espressif/esp-idf!15662
...
this is the problematic one:
commit 84f9aa13c9a01b8776fe5615e10683a8fcc5eb67 (HEAD -> master, origin/master, origin/HEAD)
Merge: 2b3b192375 f57ccaabee
Author: Kapil Gupta <kapil.gupta@espressif.com>
Date: Thu Mar 3 00:10:25 2022 +0800
Merge branch 'bugfix/dpp_sdkconfig_default' into 'master'
esp_example: Enable MbedTLS for DPP enrollee by default
Closes WIFI-4275
See merge request espressif/esp-idf!16624
commit 2b3b192375853a4358a3a2da284774960b8401bf
Merge: 6e0308d352 2571aaf3c9
Author: Omar Chebib <omar.chebib@espressif.com>
Date: Wed Mar 2 21:07:20 2022 +0800
Merge branch 'refactor/remove_g0_driver_dependency' into 'master'
G0: target component (components/esp32*) doesn't depend on driver anymore
See merge request espressif/esp-idf!16991
commit 2571aaf3c998f128787554cd5db2933126cc555f
Author: Omar Chebib <omar.chebib@espressif.com>
Date: Fri Jan 28 19:47:04 2022 +0800
G0: target component (components/esp32*) doesn't depend on driver anymore
commit 6e0308d352c43ec0fde8f133b6b25ad1668120ff
Merge: 8363f88cd5 18fa343161
Author: Shubham Kulkarni <shubham.kulkarni@espressif.com>
Date: Wed Mar 2 05:45:09 2022 +0800
Merge branch 'bugfix/http_client_body' into 'master'
esp_http_client: Fix data corruption in http_on_body callback
Closes IDF-4597
See merge request espressif/esp-idf!17219
commit 8363f88cd5c8bad44c6b2ffda42cd7cc9996e64c
Merge: 78165c541e f7b842bbc7
Author: David Čermák <cermak@espressif.com>
Date: Wed Mar 2 04:12:09 2022 +0800
...
btw, this is my last working version:
commit ef98a363e35dbc6bfd1caadfab8706874930f278 (HEAD -> master, origin/master, origin/HEAD)
Merge: 140efc3857 9cecde6fb4
Author: Mahavir Jain <mahavir@espressif.com>
Date: Thu Nov 25 09:01:59 2021 +0000
Merge branch 'feature/adds_fault_injection_protection_for_check_anti_rollback' into 'master'
bootloader_support: Adds fault injection protection for check_anti_rollback
See merge request espressif/esp-idf!15662
...
this is the problematic one:
commit 84f9aa13c9a01b8776fe5615e10683a8fcc5eb67 (HEAD -> master, origin/master, origin/HEAD)
Merge: 2b3b192375 f57ccaabee
Author: Kapil Gupta <kapil.gupta@espressif.com>
Date: Thu Mar 3 00:10:25 2022 +0800
Merge branch 'bugfix/dpp_sdkconfig_default' into 'master'
esp_example: Enable MbedTLS for DPP enrollee by default
Closes WIFI-4275
See merge request espressif/esp-idf!16624
commit 2b3b192375853a4358a3a2da284774960b8401bf
Merge: 6e0308d352 2571aaf3c9
Author: Omar Chebib <omar.chebib@espressif.com>
Date: Wed Mar 2 21:07:20 2022 +0800
Merge branch 'refactor/remove_g0_driver_dependency' into 'master'
G0: target component (components/esp32*) doesn't depend on driver anymore
See merge request espressif/esp-idf!16991
commit 2571aaf3c998f128787554cd5db2933126cc555f
Author: Omar Chebib <omar.chebib@espressif.com>
Date: Fri Jan 28 19:47:04 2022 +0800
G0: target component (components/esp32*) doesn't depend on driver anymore
commit 6e0308d352c43ec0fde8f133b6b25ad1668120ff
Merge: 8363f88cd5 18fa343161
Author: Shubham Kulkarni <shubham.kulkarni@espressif.com>
Date: Wed Mar 2 05:45:09 2022 +0800
Merge branch 'bugfix/http_client_body' into 'master'
esp_http_client: Fix data corruption in http_on_body callback
Closes IDF-4597
See merge request espressif/esp-idf!17219
commit 8363f88cd5c8bad44c6b2ffda42cd7cc9996e64c
Merge: 78165c541e f7b842bbc7
Author: David Čermák <cermak@espressif.com>
Date: Wed Mar 2 04:12:09 2022 +0800
...
Re: can't compile using latest master version
Has this issue been resolved yet? I'm having a similar issue when compiling code that combines examples from esp-idf and esp-mdf and am at a loss on how to resolve this error. Thanks.
Re: can't compile using latest master version
@karunt
Build on ef98a363e35dbc6bfd1caadfab8706874930f278 works fine for me. As for the error "Failed to resolve component 'nghttp'.", please double check that...
Build on ef98a363e35dbc6bfd1caadfab8706874930f278 works fine for me. As for the error "Failed to resolve component 'nghttp'.", please double check that...
- Both ESP-IDF and ESP-MDF submodules are updated (call "git status" to check for out of date submodules in both repos)
- Check that the example versions are compatible. Each version of ESP-MDF is tied to a particular ESP-IDF version, so make sure you're not combining code from a different version.
Re: can't compile using latest master version
Hi,
Same problem yet.
"does not contain a CMakeLists.txt file. No component will be added".
viewtopic.php?f=40&t=30957
Same problem yet.
"does not contain a CMakeLists.txt file. No component will be added".
viewtopic.php?f=40&t=30957
Who is online
Users browsing this forum: No registered users and 124 guests