发帖
1 0 0

【板子申请】Ai-M61-32S开发环境搭建记录

qinzhisu
注册会员

1

主题

0

回帖

80

积分

注册会员

积分
80
板子申请专区 493 1 2023-11-14 19:56:45

1.安装vs code

2.利用命令在git中克隆源码

git clone [https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git](https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git)

运行上述代码克隆源码,该指令会将源码直接克隆到运行git bash的路径下,需要更改路径可以将路径加在后面

如:

git clone [https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git](https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git) D:\downloads

3.修改子模块来源,拉取SDK,并初始化,更新相关模块

依次运行下列代码

cd AiPi-Open-Kits/
git submodule init
git submodule update

cd aithinker_Ai-M6X_SDK/
git submodule init
git submodule update

4.克隆windows的编译工具链

该工具链需要克隆到aithinker_Ai-M6X_SDK/路径下,运行前要确保在该路径下

git clone [https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git](https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git)

5.配置系统环境变量

在系统环境变量中将

aithinker_Ai-M6X_SDK\toolchain_gcc_t-head_windows\bin
aithinker_Ai-M6X_SDK\tools\make
aithinker_Ai-M6X_SDK\tools\ninja

这三条环境变量加入,并将make的那个环境变量置顶

XEDH@3WE@`[email]UO7OS31Z@Q.png[/email]

编译天气站程序

选中AiPi-Eyes_weather的文件夹,右键选择进入终端,在终端中运行

make

等待运行完成即可

屏幕截图2023-11-14192344.png

至此完成开发环境的搭建

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

使用道具 举报

2023-11-14 20:05:52
插眼给园长看(2)
您需要登录后才可以回帖 立即登录
高级模式
返回
统计信息
  • 会员数: 27951 个
  • 话题数: 39404 篇