搜索
bottom↓
回复: 3

ESP AI智能机器人程序编译失败,求解?

[复制链接]

出0入0汤圆

发表于 2025-3-28 14:48:01 | 显示全部楼层 |阅读模式
按照教程安装了vscode和esp-idf插件,版本V5.3.2,安装目录C:\esp32

编译factory_demo_v1工程时输出:

-- Found Git: C:/esp32/esp32_tools/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- 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: C:/esp32/esp32_tools/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/esp32/esp32_tools/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/xtensa-esp32s3-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:/esp32/esp32_tools/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/xtensa-esp32s3-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 esp32s3        
CMake Error at C:/esp32/v5.3.2/esp-idf/tools/cmake/build.cmake:552 (message):
  ERROR: The "path" field in the manifest file
  "B:\AI_robot\esp_sparkbot-master
  (1)\esp_sparkbot-master\example\factory_demo_v1\components\esp_sparkbot_bsp\idf_component.yml"
  does not point to a directory.  You can safely remove this field from the
  manifest if this project is an example copied from a component repository.
  The dependency will be downloaded from the ESP component registry.
  Documentation:
  https://docs.espressif.com/proje ... .html#override-path


Call Stack (most recent call first):
  C:/esp32/v5.3.2/esp-idf/tools/cmake/project.cmake:710 (idf_build_process)
  CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!

*  The terminal process "c:\esp32\esp32_tools\tools\cmake\3.30.2\bin\cmake.exe '-G', 'Ninja', '-DPYTHON_DEPS_CHECKED=1', '-DESP_PLATFORM=1', '-B', 'e:\Data_2025\esp32_bot\factory_demo_v1\build', '-S', 'e:\Data_2025\esp32_bot\factory_demo_v1', '-DSDKCONFIG=e:\Data_2025\esp32_bot\factory_demo_v1\sdkconfig'" terminated with exit code: 1.

阿莫论坛21周年了!感谢大家的支持与爱护!!

“战争只是一群老头的政治游戏,可冲上去的却是一群年轻人,战争结束后,资本家满载而归,政客握手言和,只有母亲抱着墓碑哭泣!”

出0入0汤圆

 楼主| 发表于 2025-3-28 17:45:11 | 显示全部楼层

删除components\esp_sparkbot_bsp\idf_component.ym
可以继续编译,但还是出错:

In function 'DCT_Upsample::Matrix44 DCT_Upsample::operator+(const Matrix44&, const Matrix44&)',
    inlined from 'void jpeg_decoder::transform_mcu_expand(int)' at ../../../../managed_components/espressif__thorvg/thorvg/src/loaders/jpg/tvgJpgd.cpp:1745:38:
../../../../managed_components/espressif__thorvg/thorvg/src/loaders/jpg/tvgJpgd.cpp:870:49: warning: '*&S.DCT_Upsample::Matrix44::v[3][3]' may be used uninitialized [-Wmaybe-uninitialized]
  870 |                 ret.at(r, 3) = a.at(r, 3) + b.at(r, 3);
      |                                             ~~~~^~~~~~
../../../../managed_components/espressif__thorvg/thorvg/src/loaders/jpg/tvgJpgd.cpp: In member function 'void jpeg_decoder::transform_mcu_expand(int)':
../../../../managed_components/espressif__thorvg/thorvg/src/loaders/jpg/tvgJpgd.cpp:1672:41: note: 'S' declared here
1672 |         DCT_Upsample::Matrix44 P, Q, R, S;
      |                                         ^
[80/80] Linking static target src/libthorvg.a
ninja: build stopped: subcommand failed.


出0入10汤圆

发表于 2025-4-8 17:51:25 来自手机 | 显示全部楼层
1、工程路径一定不要有中文路径哈;2、编译前先清除下工程 重新构建工程;我之前也折腾了挺久的 各种编译报错;3、路径不要深;

出0入51汤圆

发表于 2025-4-22 12:19:31 | 显示全部楼层
本帖最后由 my_avr 于 2025-4-22 12:20 编辑

我也遇到了你的问题,经过折腾,修改dependencies.lock文件成功了
236行,这里需要修改为你的实际文件路径
path: B:\AI_robot\esp_sparkbot-master (1)\esp_sparkbot-master\example\factory_demo_v1\components\esp_sparkbot_bsp
我这里改为工程文件的存放目录
D:\ESP32\factory_demo_v1\components\esp_sparkbot_bsp

357行,同样也要需改
path: D:\esp_32\idf\v5.2.3\esp-idf\examples\common_components\protocol_examples_common
我这里改为ESP-IDF的安装目录
path: C:\Espressif\frameworks\esp-idf-v5.4.1\examples\common_components\protocol_examples_common
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2026-3-16 00:44

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表