Qt Creator 搭建嵌入式开发环境

来源:互联网 发布:七龙珠超漫画软件 编辑:程序博客网 时间:2024/05/08 09:10

1、Qt Creator以及Qt的安装

2、Tools - Options

(1)添加自己的设备

 -- Device

Add -- Generic Linux Device -- IP Address -- UserName -- Password -- > Test Successful;

(2)添加Compiler

-- Build&Run

-Compilers :Add -- GCC -- Name -- CompilerPath 

(3)设置build & Run

-- Build&Run

- Kits Add -- Name -- Device Type -- (Device Auto)-- Compiler --Debugger -- QtVersion

3、Projects

-- Add Kits

选中刚刚配置的kits;

选中Run;

Deployment:这个需要修改工程文件 xxx.pro,添加如下内容:

target.path = /root
INSTALLS += target

这时,打开Projects后会发现Deployment里面的local file Path 和 Remote Directory自动发生变化;

Run Environment

点开Details

Clean Environment。

至此,就可以使用QtCreator编写运行程序了。。。 不用来回切换啊神马的。。。

0 0