发帖
3 0 1

Ai-M61-32S开发环境搭建 一点小问题【make (e=2): 系统找不到指定的文件

清晨鱼
注册会员

1

主题

2

回帖

126

积分

注册会员

积分
126
112403.png
612.png


先看结果,和帖子内容结果一致。
其中步骤看这个【新提醒】零基础搭建小安派Windows 开发环境 - 小安派S1教程合集 - 物联网开发者社区-安信可论坛 - Powered by Discuz! (ai-thinker.com)

最后一步我看很多人有这个问题
13019.png
05.png

看命令是复制文件出错的,但是去路径下面看,文件是已经存在的,可以手动复制过去,
路径是项目路径的 AiPi-Eyes_weather\build\build_out   文件夹 。
139.png 3352.png

然后编译还是会出错的,打开项目路径 AiPi-Open-Kits\aithinker_Ai-M6X_SDK\project.build 这个文件,

在第75/76行cp复制命令前注释 #
保存重新编译即可通过
13612.png





──── 0人觉得很赞 ────

使用道具 举报

2023-11-10 11:50:20
插个眼给七哥看
2025-7-21 00:41:28
在C:/Windows目录下新建一个cp.bat 贴入以下代码保存即可

@echo off
setlocal enabledelayedexpansion

:: 智能路径格式转换器
:ConvertPath
set "path=%~1"
set "path=!path:/=\!"
set "path=!path:\\=\!"
set "path=!path:./=!"
if "!path:~0,2!"==".." set "path=!path:~2!"
set "%~1=!path!"
goto :eof

:: 主程序
if "%~1"=="" (
    echo Usage: cp.bat [source] [destination]
    echo    or: cp.bat [source] [destination directory]
    exit /b 1
)

:: 转换源路径格式
set "source=%~1"
call :ConvertPath source

:: 转换目标路径格式
set "destination=%~2"
call :ConvertPath destination

:: 智能目录检测和路径补全
if exist "%destination%\" (
    set "destination=%destination%\%~nx1"
) else if not exist "%destination%" (
    echo %destination%|findstr "[\\/]$" >nul
    if errorlevel 1 set "destination=%destination%\%~nx1"
)

:: 执行复制操作
if not exist "%source%" (
    echo Error: Source file not found - "%source%"
    exit /b 1
)

echo Copying: "%source%" to "%destination%"
copy /Y "%source%" "%destination%" >nul

if errorlevel 1 (
    echo Error: Copy failed. Check destination path.
    exit /b 1
) else (
    echo Success: File copied
)
endlocal
您需要登录后才可以回帖 立即登录
高级模式
返回
统计信息
  • 会员数: 29867 个
  • 话题数: 43665 篇