linux下qt的安装
2016-04-01 10:45
375 查看
![](https://images2015.cnblogs.com/blog/740559/201604/740559-20160401104234363-793800649.png)
2.1环境的搭建
linux->
2.1.1 ./qt-opensource-linux-x86-5.5.0.run
2.1.2 vim /etc/profile (.bashrc)
export PATH=/home/gec/Qt5.5.0/5.5/gcc/bin:$PATH
验证:关闭终端,再打开 或者source ~/.bashrc
which qmake
首次体验:
#include <QApplication>
#include <QLabel>
int main(int argc, char **argv)
{
QApplication app (argc, argv);
QLabel *hello = new QLabel("Hello Qt!”);
hello->show();
return app.exec();
}
2.qmake -project
--> .pro (工程文件)--> QT +=widgets
3.qmake
--> makefile gcc -L -l -I/
Cxx=
INCPATH= //头文件路径
LIBS= //库
4.make
相关文章推荐
- Linux 下让进程在后台可靠运行的几种方法
- linux下/dev/shm设备
- Linux芯片级移植与底层驱动(基于3.7.4内核)
- Linux高可用性方案之Heartbeat的CRM配置
- 在VMWare中,使用软路由实现不同LAN互访
- linux 权限这个东西
- CentOS6.5安装Code::Blocks
- 使用 GDB 调试 Linux 软件
- rt3070sta GNU / Linux 64 bit driver working
- Linux驱动基础:msm平台,modem等framework加载
- Linux驱动基础:msm平台,modem等framework加载
- Centos 系统时间与当前时间相差和时区解决办法
- linux命令--traceroute
- Linux iptables重启后失效
- linux 下 取进程占用内存(MEM)最高的前10个进程
- 【13】Linux-驱动访问大揭秘
- Linux 2.6 调度系统分析
- linux下验证码功能不能正常显示
- Linux nohup 命令
- Linux nohup 命令