本帖最后由 Yummy 于 2023-11-19 09:10 编辑
依次运行git命令,下载库,然后切换分支。
这一步是下载整个库
- git clone <a href="https://github.com/Ai-Thinker-Open/AiPi-Open-Kits.git" target="_blank">https://github.com/Ai-Thinker-Open/AiPi-Open-Kits.git</a>
- cd AiPi-Open-Kits/
复制代码
下载编译环境
- git clone <a href="https://github.com/bouffalolab/toolchain_gcc_t-head_windows.git" target="_blank">https://github.com/bouffalolab/toolchain_gcc_t-head_windows.git</a>
- git submodule init
- git submodule update
复制代码
下载数据包
- cd aithinker_Ai-M6X_SDK/
- git submodule init
- git submodule update
复制代码
我比较喜欢Github,gitee git有时候会出现拉到没同步镜像的情况。
然后Export Path到gcc目录
- aithinker_Ai-M6X_SDK\toolchain_gcc_t-head_windows\bin
- aithinker_Ai-M6X_SDK\tools\make
- aithinker_Ai-M6X_SDK\tools\ninja
复制代码
这里需要检查一下有没有弄对。
最后进入Example里面需要的路径里面直接make就行,非常方便。
然后运行
编译成功
看到有别的坛友发的用VScode的,但是我没有弄成功,一直在报路径的错误,怀疑是权限问题?
|