NotePublic/Software/Applications/QtCreator/Qt_Creator_远程部署和调试.md

20 lines
698 B
Markdown
Raw Normal View History

# Qt Creator 远程部署和调试TODO
WORKSPACE = /home/src
deploy0.files=$$WORKSPACE/build0/app0
deploy0.path=/root
deploy1.files=$$WORKSPACE/build1/app1
deploy1.path=/root
INSTALLS += deploy0 deploy1
<https://blog.csdn.net/qq21497936/article/details/79722924>
<https://blog.csdn.net/foxbryant/article/details/78196142>
1. 先添加设备,可通过 IP 添加通用 Linux 设备(目标机需开启 SSH 服务);
2. 设定编译工具链,在工具链的目标设备中选择已添加好的设备;
3. 为工程选择编译工具链,设置好部署命令,如 scp
4. 调整 Run 参数,在调试时选择编译和运行方案为刚才新添加的方案。