手里一台Win7 32位老古董,搭建测试一下。
先上结论,32位不可以,需要64位。
软件:
git 版本管理工具用于拉取、同步和管理代码,由于代码库需要初始化及拉取子模块,为了减少麻烦,此为必装项。
VS code 代码编辑器用于管理和修改代码,不是必装项。
TortoiseGit Git可视化工具,非必装项。
RapidEEx 环境变量编辑器用于修改系统环境变量,也不是必装项。
下载git:
下载页面
https://mirrors.tuna.tsinghua.ed ... /git/LatestRelease/
Windows 32位 选择Git-2.42.0.2-32-bit.exe,64位 选择Git-2.42.0.2-64-bit.exe
可选官网 https://git-scm.com/downloads(不推荐,慢,容易断链接)
按需选择,官网显示2.42.1版本,下载windows版实为2.42.0.2版本,官方也不严谨
安装git:
自选编辑器,不安装VS code可选Notepad(记事本),安装VS code选择VS code
取消勾选View Release Notes
其他均为Next默认即可
拉取代码:
在需要保存代码的文件夹内,如C:/Git,单击右键,点击Open Git Bash here或Shift+右键 单击在此处打开命令窗口 打开CMD
输入
git clone https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git
或
git clone https://github.com/Ai-Thinker-Open/AiPi-Open-Kits.git(不推荐,慢,断链接)
初始化和拉取子模块:
cd AiPi-Open-Kits
git submodule init
git submodule update
默认从Github拉取,可先修改C:\Git\AiPi-Open-Kits\.gitmodules中Github为Gitee再运行
git submodule init
git submodule update
如未修改运行时拉取失败,可在修改C:\Git\AiPi-Open-Kits\.gitmodules中Github为Gitee的同时,删除C:\Git\AiPi-Open-Kits\.git\modules\aithinker_Ai-M6X_SDK和C:\Git\AiPi-Open-Kits\aithinker_Ai-M6X_SDK,再运行初始化和更新命令。
拉取编译工具:
cd aithinker_Ai-M6X_SDK
. install.sh
. export.sh (windows下无用,可不执行)
拉取博流编译工具
git clone https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git
设置环境变量:
计算机属性--高级系统设置--环境变量--系统变量--Path,添加
;C:\Git\AiPi-Open-Kits\aithinker_Ai-M6X_SDK\tools\make;C:\Git\AiPi-Open-Kits\aithinker_Ai-M6X_SDK\tools\ninja;C:\Git\AiPi-Open-Kits\aithinker_Ai-M6X_SDK\toolchain_gcc_t-head_windows\bin
编译AiPi-DSL_Dashboard:
C:\Git\AiPi-Open-Kits\AiPi-DSL_Dashboard\AiPi-DSL_Dashboard_code
Shift+右键 单击在此处打开命令窗口
输入make 回车
编译失败,提示与32位系统不兼容。
解决方案也很简单,将整个C:\Git\AiPi-Open-Kits迁移到64位系统,安装Git(可选),按新路径设置环境变量再编译即可。
|