当前位置:网站首页>QT5.5.1桌面版安装配置过程中的疑难杂症处理(配置ARM编译套件)
QT5.5.1桌面版安装配置过程中的疑难杂症处理(配置ARM编译套件)
2022-06-27 15:34:00 【华为云】
记录在红帽6.3系统下安装QT5.5.1环境时,编译过程中,配置编译套件的过程中遇到各种问题的解决办法。介绍了如何配置Android编译环境、嵌入式ARM的编译环境等。
QT5.5.1桌面版安装配置过程中的疑难杂症处理(配置ARM编译套件)
QT 5.5.1红帽子编译
红帽子6.3安装QT5.5.1编译程序问题解决:
安装包命令:rpm -ivh xxxxx.rpm
解决问题1:构建arm编译器套件。
出错原因:选择arm编译器路径时软件会崩溃。
解决办法:手动填写arm编译器g++的路径即可。
好处:通过QT IDE软件即可直接编译出开发板可以直接运行的程序。
.png)





将可执行文件手动拷贝到开发板即可运行!
解决问题2:编译PC桌面版QT程序报错。
错误问题:
error: cannot find -lGL
error: collect2: ld returned 1 exit status
出错原因:缺少以下3个库
mesa-libGL-devel
mesa-libGLU-devel
freeglut-devel
解决办法:红帽子iso虚拟光盘中自带有安装包,直接进入到/media/RHEL_6.3 i386 Disc 1/Packages目录下进行安装即可。
注意:需要先点击虚拟机右下角将iso虚拟光盘挂载到Linux系统里。
安装步骤:
通过文件管理器进入到Packages目录,找到对应安装包,然后鼠标右键安装即可。







以上安装包安装成功之后,就可以直接运行QT程序:

解决问题3:嵌入式开发板qt5字体放置问题 。
问题描述: qt5字体必须放在移植时候指定的安装目录中才可以找到
解决办法:
export QT_QPA_FONTDIR=$QTDIR/lib/fonts 设置环境变量,解决字体路径问题 。
关键是前面加了export关键字,否则设置不起作用。
解决问题4:红帽子QT5.5 android配置

注意:搭建安卓环境需要下载Android版本的QT。


解决问题5:报错gtk库链接错误
将QT安装目录下的libqgtk2.so库删除掉即可。
示例:
/opt/Qt5.5.1.1/5.5/gcc/plugins/platformthemes/libqgtk2.so |
解决后这个问题后,QT程序才可以打开本地文件系统,浏览文件路径。否则遇到需要操作文件系统,或者需要选择路径时,程序就会崩溃掉。

解决后以下代码才可正常运行:
void Widget::on_pushButton_clicked() { QFileDialog::getOpenFileName(this, tr("Open File"), "/", tr("Images (*.png *.xpm *.jpg)")); } |
解决问题6:
QT5.5.1在红帽子中只要点击涉及到浏览文件系统相关选项时,软件将会崩溃。
错误提示:
./qtcreator: symbol lookup error: /opt/Qt5.5.1.1/Tools/QtCreator/bin/plugins/platformthemes/libqgtk2.so: undefined symbol: gtk_dialog_get_widget_for_response |
问题原因:QT自带的GTK库版本不兼容。
解决办法:将QT安装目录下的libqgtk2.so删除掉即可解决问题。
解决步骤:
rm /opt/Qt5.5.1.1/Tools/QtCreator/bin/plugins/platformthemes/libqgtk2.so |
注意:红色部分是自己QT的安装路径。


边栏推荐
- Mobile terminal click penetration
- Eolink 推出面向中小企业及初创企业支持计划,为企业赋能!
- Gin general logging Middleware
- Introduction to TTCAN brick moving
- Pisa-Proxy 之 SQL 解析实践
- Typescript learning materials
- If you want to use DMS to handle database permissions, can you only use Alibaba cloud ram accounts (Alibaba cloud RDS)
- 16 -- remove invalid parentheses
- Regular matching starts with what, ends with what, starts with what, and ends with what
- VS编译遇到的问题
猜你喜欢

About tensorflow using GPU acceleration

Source NAT address translation and server mapping web page configuration of firewall Foundation

ICML 2022 ぷ the latest fedformer of the Dharma Institute of Afghanistan ⻓ surpasses SOTA in the whole process of time series prediction

开源二三事|ShardingSphere 与 Database Mesh 之间不得不说的那些事

E ModuleNotFoundError: No module named ‘psycopg2‘(已解决)

Slow bear market, bit Store provides stable stacking products to help you cross the bull and bear

Introduction to TTCAN brick moving

E modulenotfounderror: no module named 'psychopg2' (resolved)

LeetCode每日一练(主要元素)
![Luogu_ P1002 [noip2002 popularization group] crossing the river_ dp](/img/80/4edf21e0ac316fe3dd727159621acb.png)
Luogu_ P1002 [noip2002 popularization group] crossing the river_ dp
随机推荐
Eolink 推出面向中小企业及初创企业支持计划,为企业赋能!
手机号码的格式
泰山OFFICE技术讲座:第一难点是竖向定位
A distribution fission activity is more than just a circle of friends!
3.1 simple condition judgment
PSS: vous n'êtes qu'à deux niveaux du NMS Free + Lifting point | 2021 Paper
Condom giants' sales have fallen by 40% in the past two years. What are the reasons for the decline?
洛谷_P1008 [NOIP1998 普及组] 三连击_枚举
Scrapy framework (I): basic use
[kotlin] the next day
PolarDB-X开源版有没有支持 mysql5.7 的版本?
Go error collection | when a function uses a return value with a parameter name
Jialichuang EDA professional edition all offline client release
Bit. Store: long bear market, stable stacking products may become the main theme
Centos8 PostgreSQL initialization error: initdb: error: invalid locale settings; check LANG and LC_* environment
Design of spread spectrum communication system based on FPGA (with main code)
[issue 18] share a Netease go classic
等保2.0密码要求是什么?法律依据有哪些?
带你认识图数据库性能和场景测试利器LDBC SNB
等保三级密码复杂度是多少?多久更换一次?