23集 编译调试AI对话工程-《MCU嵌入式AI开发笔记》
参考文档:
https://lceda001.feishu.cn/wiki/Xqx3wH8wMi3BrrkmeTXcgLL7nQk
我们修改了secretkey等,之后我们修改menuconfig
配置menuconfig
之后出现问题了:问题见下面:你遇到这个问题了么?
评论区讨论留言
里面有个error:
---------------------------ERROR--------------------------
CMake Error at D:/ESP-IDF/tools/cmake/build.cmake:544 (message):
ERROR: Because espressif/esp_lcd_touch_ft5x06 (1.0.6) depends on
espressif/esp_lcd_touch (^1.0.4) which doesn’t match any versions,
那我们看
esp_lcd_touch_ft5x06 (1.0.6)这个没有依赖。
我们在乐鑫官网上找一下
https://components.espressif.com/components?q=esp_lcd_touch_ft5x06
我们点进去
之后在vscode里面执行这个命令:
idf.py add-dependency esp_lcd_touch_ft5x061.0.0
但是出现如下错误:
PS D:\workspace\esp-idf\ai_chat> idf.py add-dependency esp_lcd_touch_ft5x061.0.0
idf.py : 无法将“idf.py”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确
,然后再试一次。
所在位置 行:1 字符: 1
- idf.py add-dependency esp_lcd_touch_ft5x06==1.0.0
+ CategoryInfo : ObjectNotFound: (idf.py:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException +
要解决VSCODE里面无法识别idf.py这个问题了。
== SDK Configuration Editor]
---------------------------ERROR--------------------------
WARNING: Python interpreter “D:\Espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe” used to start idf.py is not from installed venv “D:/Espressif/python_env/idf5.2_py3.11_env”
-----------------------END OF ERROR-----------------------
Executing action: confserver
Running cmake in directory D:\workspace\esp-idf\ai_chat\build
Executing “cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=D:\Espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 D:\workspace\esp-idf\ai_chat”…
– Found Git: D:/Espressif/tools/idf-git/2.44.0/cmd/git.exe (found version “2.44.0.windows.1”)
– ccache will be used for faster recompilation
– The C compiler identification is GNU 13.2.0
– The CXX compiler identification is GNU 13.2.0
– The ASM compiler identification is GNU
– Found assembler: D:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: D:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-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: D:/Espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– git rev-parse returned ‘fatal: not a git repository (or any of the parent directories): .git’
– Could not use ‘git describe’ to determine PROJECT_VER.
– Building ESP-IDF components for target esp32c3
Dependencies lock doesn’t exist, solving dependencies.
Using component placed at D:\workspace\esp-idf\ai_chat\components\espressif__esp_lcd_touch_ft5x06 for dependency espressif/esp_lcd_touch_ft5x06(^1.0.6), specified in D:/workspace/esp-idf/ai_chat/main\idf_component.yml
…Using component placed at D:\workspace\esp-idf\ai_chat\components\espressif__esp_lcd_touch_ft5x06 for dependency espressif/esp_lcd_touch_ft5x06(^1.0.6), specified in D:/workspace/esp-idf/ai_chat/main\idf_component.yml
---------------------------ERROR--------------------------
CMake Error at D:/ESP-IDF/tools/cmake/build.cmake:544 (message):
ERROR: Because espressif/esp_lcd_touch_ft5x06 (1.0.6) depends on
espressif/esp_lcd_touch (^1.0.4) which doesn’t match any versions,
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
espressif/esp_lcd_touch_ft5x06 is forbidden.
So, because project depends on espressif/esp_lcd_touch_ft5x06 (1.0.6),
version solving failed.
Call Stack (most recent call first):
D:/ESP-IDF/tools/cmake/project.cmake:605 (idf_build_process)
CMakeLists.txt:8 (project)
-----------------------END OF ERROR-----------------------
…-- Configuring incomplete, errors occurred!
See also “D:/workspace/esp-idf/ai_chat/build/CMakeFiles/CMakeOutput.log”.
---------------------------ERROR--------------------------
cmake failed with exit code 1, output of the command is in the D:\workspace\esp-idf\ai_chat\build\log\idf_py_stderr_output_19612 and D:\workspace\esp-idf\ai_chat\build\log\idf_py_stdout_output_19612
-----------------------END OF ERROR-----------------------
---------------------------ERROR--------------------------
SDK Configuration editor confserver process exited with code: 2
-----------------------END OF ERROR----------------------- ==