Files
dps_lib/docs/build-remote.md
2026-05-08 19:03:47 +08:00

41 lines
982 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 远程编译验证
本机只编辑挂载的远程工作区,实际编译在 CentOS 7 编译机上完成。
## 远端环境
- SSH`root@192.168.200.110`
- 项目目录:`/home/Project/dps`
- xmake`/root/.local/bin/xmake`
- 构建目标:`Aurora`
## 常用命令
配置 debug 构建:
```bash
ssh root@192.168.200.110 "cd /home/Project/dps && /root/.local/bin/xmake f -m debug"
```
编译 Aurora
```bash
ssh root@192.168.200.110 "cd /home/Project/dps && /root/.local/bin/xmake build Aurora"
```
一次性配置并编译:
```bash
ssh root@192.168.200.110 "cd /home/Project/dps && /root/.local/bin/xmake f -m debug && /root/.local/bin/xmake build Aurora"
```
## 已知环境提示
SSH 登录时可能出现:
```text
/etc/profile.d/dps-java.sh: line 3: export
JAVA_HOME="/java_env/jdk1.8.0_161": No such file or directory
```
这是远端环境脚本的已知噪音。只要 xmake 返回成功并显示 `build ok`,本项目构建验证视为通过。