本帖最后由 花海雨梦 于 2023-11-13 15:33 编辑
1.安装vscode及插件和git(原本就有,略)
2.拉取文件
git clone https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git
3.拉取M61 sdk 子模块
cd aithinker_Ai-M6X_SDK/
git submodule init
git submodule update
git clone https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git
4.添加环境变量
aithinker_Ai-M6X_SDK\toolchain_gcc_t-head_windows\bin
aithinker_Ai-M6X_SDK\tools\make
aithinker_Ai-M6X_SDK\tools\ninja
5.验证环境
power shell执行以下指令
make -v
riscv64-unknown-elf-gcc -v
得到输出:
6.编译天气例程
鼠标右键 选择 在集成终端中打开 ,终端输入make,等待5s左右得到输出。
ps:如果在编译过程中出现:
make (e=2): 系统找不到指定的文件。
make: *** [../aithinker_Ai-M6X_SDK/project.build:75: build] Error 2
的报错,打开"\AiPi-Open-Kits\aithinker_Ai-M6X_SDK\project.build"文件,将75,76,90三行注释掉,即可解决
|