本帖最后由 xhowu 于 2023-11-14 18:36 编辑
一、VS CODE
1.修改中文
2.安装插件
二、GIT
1.选择常用编辑器(其余皆默认)
2.克隆源码(若无法粘贴则拖拽:git clone https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git)
cd AiPi-Open-Kits/
git submodule initgit submodule update
执行完后,再执行:
cd aithinker_Ai-M6X_SDK/
git submodule init
git submodule update
(自动弹出红紫黄色字即执行完成)
再执行:
aithinker_Ai-M6X_SDK/
git clone https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git
三、编译工具路径(设置—系统—关于—高级系统设置—环境变量——系统变量—Path(双击打开)—新建—浏览(找到下列路径))
aithinker_Ai-M6X_SDK\toolchain_gcc_t-head_windows\bin
aithinker_Ai-M6X_SDK\tools\make
aithinker_Ai-M6X_SDK\tools\ninja
要把aithinker_Ai-M6X_SDK\tools\make路径上移到最高层。
验证:
make -v
riscv64-unknown-elf-gcc -v
四、编译
不知为何找不到指定文件
|