Failed to resolve component error while adding esp-va-sdk to esp idf project

akshaay24
Posts: 13
Joined: Wed Jul 14, 2021 5:21 am

Failed to resolve component error while adding esp-va-sdk to esp idf project

Postby akshaay24 » Thu Apr 14, 2022 6:55 am

Hello,
I have followed below steps to run amazon_alexa example on esp idf:
1. Clone esp-va-sdk from https://github.com/espressif/esp-va-sdk.
2. Created a blank project on ESP IDF and copied amazon_alexa project files to this blank project.
3. Copied the C:\esp-va-sdk\components folder to this blank project.
4. While building the project facing below error

Code: Select all

Building in: C:\workspace-eclipse\testing_AVS\build
Configuring in: C:\workspace-eclipse\testing_AVS\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\esp-idf_4_4\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCCACHE_ENABLE=1 -DIDF_TARGET=esp32 C:\workspace-eclipse\testing_AVS
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.32.0.windows.2") 
-- ccache will be used for faster recompilation
-- 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: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - 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: C:/Espressif/tools/xtensa-esp32-elf/esp-2021r2-patch2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - 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 esp32
-- Checking Python dependencies...
Python requirements from C:/esp-idf_4_4/requirements.txt are satisfied.
CMake Error at C:/esp-idf_4_4/tools/cmake/build.cmake:200 (message):
  Failed to resolve component 'esp_codec'.
-- Configuring incomplete, errors occurred!
See also "C:/workspace-eclipse/testing_AVS/build/CMakeFiles/CMakeOutput.log".
Call Stack (most recent call first):
  C:/esp-idf_4_4/tools/cmake/build.cmake:231 (__build_resolve_and_add_req)
  C:/esp-idf_4_4/tools/cmake/build.cmake:512 (__build_expand_requirements)
  C:/esp-idf_4_4/tools/cmake/project.cmake:378 (idf_build_process)
  CMakeLists.txt:7 (project)


cmake --build . -- -v
ninja: error: loading 'build.ninja': The system cannot find the file specified.


Build complete (0 errors, 0 warnings): C:\workspace-eclipse\testing_AVS\build
Total time taken to build the project: 8,438 ms


Questions:
1. Is this the correct process to run amazon_alexa example on ESP IDF?
2. I have imported amazon_alexa project to ESP IDF that is showing below error

Code: Select all

make all 
makefile:15: /c/esp-idf_4_4/make/project.mk: No such file or directory
make: *** No rule to make target `/c/esp-idf_4_4/make/project.mk'.  Stop.
"make all" terminated with exit code 2. Build might be incomplete.
Need help to integrate this sdk with ESP IDF.

Thank You,
Akshaay

Who is online

Users browsing this forum: No registered users and 128 guests