博客
关于我
linux centos7系统安装Qt
阅读量:114 次
发布时间:2019-02-26

本文共 583 字,大约阅读时间需要 1 分钟。

1.打开终端下载安装包:

wget http://download.qt.io/archive/qt/5.9/5.9.4/qt-opensource-linux-x64-5.9.4.run

 

2.等待下载完成。然后给安装包文件授权:

chmod +x qt-opensource-linux-x64-5.9.4.run

 

3.运行安装包:

./qt-opensource-linux-x64-5.9.4.run

​弹出安装向导界面

 

根据提示点击下一步,选择要安装的组件,最后等待安装完成。

 

4.运行第一个程序

从应用程序中找到QtCreator并打开

 

 

从Qt creator中找一个示例程序进行编译,出现如下问题:

 

 

原因是缺少gcc c++,接着安装gcc c++,命令如下:

yum install gcc-c++

 

gcc c++安装完成后配置编译套件,如下图所示为c++选择编译器。

 

 

配置完成后再编译一次发现新的问题:

 

据说是缺少了openGL,好吧,继续安装:

yum -y install mesa-libGL-devel

 

安装完成后再次编译程序,成功运行。

 

万里长征走出了第一步,后面还有一堆坑在等着!

————————————————
原文链接:https://blog.csdn.net/can3981132/article/details/79936296

你可能感兴趣的文章
nginx+Tomcat性能监控
查看>>
nginx+uwsgi+django
查看>>
nginx+vsftp搭建图片服务器
查看>>
Nginx-http-flv-module流媒体服务器搭建+模拟推流+flv.js在前端html和Vue中播放HTTP-FLV视频流
查看>>
nginx-vts + prometheus 监控nginx
查看>>
Nginx/Apache反向代理
查看>>
Nginx: 413 – Request Entity Too Large Error and Solution
查看>>
nginx: [emerg] getpwnam(“www”) failed 错误处理方法
查看>>
nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:
查看>>
nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
查看>>
nginx:Error ./configure: error: the HTTP rewrite module requires the PCRE library
查看>>
Nginx:objs/Makefile:432: recipe for target ‘objs/src/core/ngx_murmurhash.o‘解决方法
查看>>
nginxWebUI runCmd RCE漏洞复现
查看>>
nginx_rtmp
查看>>
Vue中向js中传递参数并在js中定义对象并转换参数
查看>>
Nginx、HAProxy、LVS
查看>>
nginx一些重要配置说明
查看>>
Nginx下配置codeigniter框架方法
查看>>
Nginx与Tengine安装和使用以及配置健康节点检测
查看>>
Nginx中使用expires指令实现配置浏览器缓存
查看>>