本帖最后由 I2C 于 2023-11-12 19:31 编辑
前置条件
* 安装VSCODE(用来查看编辑代码)
* 安装Git(用来克隆代码仓库)
克隆代码仓库
- git clone https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git
复制代码
修改.gitmodules文件
把文件中的github修改问gitee,保存后就可以拉取子模块了。
拉取子模块
- cd AiPi-Open-Kits/
- git submodule init
- git submodule update
复制代码- cd aithinker_Ai-M6X_SDK/
- git submodule init
- git submodule update
复制代码
克隆windows编译工具链
在aithinker_Ai-M6X_SDK/下执行如下命令:
- git clone https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git
复制代码 配置系统环境变量
查看环境是否生效
- make -v
- riscv64-unknown-elf-gcc -v
复制代码
编译AiPi-Eyes_weather项目
进入AiPi-Eyes_weather,并用VScode打开。
- cd AiPi-Eyes_weather
- code .
复制代码 在VScode中编译项目,执行make
项目编译成功
|