zachmorr / esper

Ad Blocking with an ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to resolve component 'littlefs' while running idf menuconfig or build commands

syedautherabbas opened this issue · comments

syed@syeds-ubuntu:~/pihole/esper/software/firmware$ idf.py erase-flash
Executing action: erase-flash
Running cmake in directory /home/syed/pihole/esper/software/firmware/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=0 /home/syed/pihole/esper/software/firmware"...
-- IDF_TARGET not set, using default target: esp32
-- Found Git: /usr/bin/git (found version "2.37.2")
-- Component directory /home/syed/pihole/esper/software/firmware/components/littlefs 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: /home/syed/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/syed/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-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: /home/syed/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
CMake Error at /home/syed/matter/tools/esp-idf/tools/cmake/build.cmake:200 (message):
Failed to resolve component 'littlefs'.
Call Stack (most recent call first):
/home/syed/matter/tools/esp-idf/tools/cmake/build.cmake:231 (__build_resolve_and_add_req)
/home/syed/matter/tools/esp-idf/tools/cmake/build.cmake:232 (__build_expand_requirements)
/home/syed/matter/tools/esp-idf/tools/cmake/build.cmake:232 (__build_expand_requirements)
/home/syed/matter/tools/esp-idf/tools/cmake/build.cmake:512 (__build_expand_requirements)
/home/syed/matter/tools/esp-idf/tools/cmake/project.cmake:378 (idf_build_process)
CMakeLists.txt:8 (project)

This happened to me, the components/littlefs folder was empty so I had to git submodule update --init in it

commented

This happened to me, the components/littlefs folder was empty so I had to git submodule update --init in it

I had the same problem too. The components/littlefs directory contains yet another "commit-referenced" folder, components/littlefs/src/littlefs, so you need to run git submodule update --init --recursive