mirror of https://gitee.com/openkylin/docs.git
update 02_基础操作/应用和游戏/在openKylin-RISC-V编译运行Godot.md.
Signed-off-by: DSOE1024 <9680100+DSOE1024@user.noreply.gitee.com>
This commit is contained in:
parent
7eeecb8a54
commit
8081f60733
|
@ -1,12 +1,12 @@
|
|||
# 在openKylin RISC-V编译运行Godot
|
||||
|
||||
为了扩展openkylin RISC-V游戏生态,一直在探索Godot这一开源游戏引擎在RISC-V设备上原生编译,以下编译指南。特别感谢感谢Github开发者[MBCX](https://github.com/MBCX)的RISC-V交叉编译方法提供帮助和参考!
|
||||
为了扩展openkylin RISC-V游戏生态,一直在探索Godot这一开源游戏引擎在RISC-V设备上原生编译,以下是编译指南。特别感谢感谢Github开发者[MBCX](https://github.com/MBCX)的RISC-V交叉编译方法提供帮助和参考!
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
## 基础准备
|
||||
## 一、基础准备
|
||||
|
||||
编译Godot至少需要4G内存,如果不足请开始swap,文章中演示的设备是8G内存。
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
[在SpacemiT_K1上安装openKylin | openKylin文档平台](https://docs.openkylin.top/zh/01_%E5%AE%89%E8%A3%85%E5%8D%87%E7%BA%A7%E6%8C%87%E5%8D%97/%E5%9C%A8riscv%E4%B8%8A%E5%AE%89%E8%A3%85/%E5%9C%A8SpacemiT_K1%E4%B8%8A%E5%AE%89%E8%A3%85openKylin)
|
||||
|
||||
## 克隆源代码
|
||||
## 二、克隆源代码
|
||||
|
||||
克隆Godot 4.3源代码
|
||||
|
||||
|
@ -24,7 +24,7 @@ sudo apt install git
|
|||
git clone https://github.com/godotengine/godot.git -b 4.3-stable --depth=1
|
||||
```
|
||||
|
||||
## 安装编译依赖
|
||||
## 三、安装编译依赖
|
||||
|
||||
安装Godot编译依赖
|
||||
```bash
|
||||
|
@ -101,7 +101,7 @@ Found candidate GCC installation: /usr/bin/../lib/gcc/riscv64-linux-gnu/8
|
|||
Selected GCC installation: /usr/bin/../lib/gcc/riscv64-linux-gnu/13
|
||||
```
|
||||
|
||||
## 开始构建
|
||||
## 四、开始构建
|
||||
|
||||
cd进入源码目录构建
|
||||
```bash
|
||||
|
@ -164,7 +164,7 @@ scons -j8 arch="rv64" use_llvm="yes" linker="mold" lto="none" \
|
|||

|
||||
|
||||
|
||||
## 运行Godot
|
||||
## 五、运行Godot
|
||||
|
||||
cd进入bin目录
|
||||
|
||||
|
@ -183,7 +183,7 @@ chmod +x godot.linuxbsd.editor.rv64.llvm
|
|||

|
||||
|
||||
|
||||
## 设置项目启动参数
|
||||
## 六、设置项目启动参数
|
||||
|
||||
在调试项目时,Godot仍会使用默认的软渲染管线,因此需要将`--display-driver wayland opengl_es3`添加到项目设置
|
||||
|
||||
|
|
Loading…
Reference in New Issue