本帖最后由 YunShu 于 2023-11-19 22:45 编辑
准备工作
首先安装 git,和 vscode
- yay -S git visual-studio-code-bin
复制代码
之后打开 vscode, 安装以下插件:
- clangd 用于代码提示和跳转
- CMake Tools 用于方便的配置cmake
- Cpp Reference 用于方便的在vscode中查阅cpp reference
- GitLens 更强大的git工具
- Todo Tree 方便识别TODO,FIXME等标记
- Material Icon Theme 好看的图标
拉取仓库
- git clone git@github.com:Ai-Thinker-Open/aithinker_Ai-M6X_SDK.git --recurse-submodules
复制代码
clone
添加PATH
之后进入目录添加工具链到 PATH, `export.sh` 将工具链添加到PATH中,source命令可以在当前环境下执行该脚本,保证后续操作可以找到工具链。
- cd aithinker_Ai-M6X_SDK
- source ./export.sh
复制代码
编译 hello world
- cd examples/helloworld
- make
复制代码
|