当前位置:网站首页>Handling of difficult and miscellaneous problems during the installation and configuration of qt5.5.1 desktop version (configuring arm compilation Kit)
Handling of difficult and miscellaneous problems during the installation and configuration of qt5.5.1 desktop version (configuring arm compilation Kit)
2022-06-27 16:23:00 【Hua Weiyun】
Recorded in red hat 6.3 Installation under system QT5.5.1 Environmental time , During compilation , Solutions to various problems encountered in the process of configuring the compilation Suite . Describes how to configure Android Compile environment 、 The embedded ARM Compilation environment, etc .
QT5.5.1 Handling of difficult and miscellaneous problems during the installation and configuration of desktop version ( To configure ARM Compilation Suite )
QT 5.5.1 Red hat compiler
red cap 6.3 install QT5.5.1 Compiler problem solving :
Install package command :rpm -ivh xxxxx.rpm
solve the problem 1: structure arm Compiler Suite .
Cause of error : choice arm The software crashes when the compiler path .
terms of settlement : Fill in by hand arm compiler g++ The path of .
benefits : adopt QT IDE The software can directly compile the program that the development board can run directly .
.png)





Manually copy the executable file to the development board to run !
solve the problem 2: compile PC The desktop version QT Application error .
Error problem :
error: cannot find -lGL
error: collect2: ld returned 1 exit status
Cause of error : The following are missing 3 Databases
mesa-libGL-devel
mesa-libGLU-devel
freeglut-devel
terms of settlement : red cap iso The installation package comes with the virtual CD , Direct access to /media/RHEL_6.3 i386 Disc 1/Packages Install in the directory .
Be careful : You need to click on the lower right corner of the virtual machine to display iso Mount the virtual disc to Linux In the system .
Installation steps :
Go to through the file manager Packages Catalog , Find the corresponding installation package , Then right click to install .







After the above installation package is successfully installed , You can run it directly QT Program :

solve the problem 3: Embedded development board qt5 Font placement problem .
Problem description : qt5 Fonts can only be found in the installation directory specified during migration
terms of settlement :
export QT_QPA_FONTDIR=$QTDIR/lib/fonts Set the environment variable , Solve the font path problem .
The key is to add export keyword , Otherwise the settings don't work .
solve the problem 4: red cap QT5.5 android To configure

Be careful : To build an Android environment, you need to download Android Version of QT.


solve the problem 5: Report errors gtk Library link error
take QT Install under directory libqgtk2.so Delete the library .
Example :
/opt/Qt5.5.1.1/5.5/gcc/plugins/platformthemes/libqgtk2.so |
After solving this problem ,QT The program can open the local file system , Browse file path . Otherwise, you need to operate the file system , Or when you need to select a path , The program will crash .

The following code will not work properly until it is resolved :
void Widget::on_pushButton_clicked() { QFileDialog::getOpenFileName(this, tr("Open File"), "/", tr("Images (*.png *.xpm *.jpg)")); } |
solve the problem 6:
QT5.5.1 In the red hat, just click the options related to browsing the file system , The software will crash .
Error message :
./qtcreator: symbol lookup error: /opt/Qt5.5.1.1/Tools/QtCreator/bin/plugins/platformthemes/libqgtk2.so: undefined symbol: gtk_dialog_get_widget_for_response |
Question why :QT Self contained GTK Incompatible library version .
terms of settlement : take QT Install under directory libqgtk2.so Delete it to solve the problem .
Solution steps :
rm /opt/Qt5.5.1.1/Tools/QtCreator/bin/plugins/platformthemes/libqgtk2.so |
Be careful : The red part is self QT Installation path for .


边栏推荐
- About MySQL: the phenomenon and background of the problem
- 等保三级密码复杂度是多少?多久更换一次?
- C語言教師工作量管理系統
- localDateTime类型的时间(2019-11-19T15:16:17) 用oracle的时间范围查询
- LeetCode每日一练(主要元素)
- Vulnerability recurrence ----- 34. Yapi remote command execution vulnerability
- 机械硬盘和ssd固态硬盘的原理对比分析
- substrate 技术每周速览 20220411
- Realize simple three-D cube automatic rotation
- SIGKDD22|图“预训练、提示、微调”范式下的图神经网络泛化框架
猜你喜欢

Distributed session solution

等保三级密码复杂度是多少?多久更换一次?

Construction and management practice of ByteDance buried point data flow

A distribution fission activity is more than just a circle of friends!

Event listening mechanism

数据中心表格报表实现定制统计加班请假汇总记录分享

守护雪山之王:这些AI研究者找到了技术的新「用武之地」

Smart wind power | Tupu software digital twin wind turbine equipment, 3D visual intelligent operation and maintenance

【牛客刷题】NowCoder号称自己已经记住了1-100000之间所有的斐波那契数。 为了考验他,我们随便出一个数n,让他说出第n个斐波那契数。如果第n个斐波那契大于6位则只取后6位。

一个机器人位于一个 m x n 网格的左上角 。机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角。问总共有多少条不同的路径?【LeetCodeHot100】
随机推荐
【Pygame小游戏】这款“吃掉一切”游戏简直奇葩了?通通都吃掉嘛?(附源码免费领)
QT5 之信号与槽机制(演示控件自带的信号与槽函数关联)
Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
Distributed session solution
[pyGame games] this "eat everything" game is really wonderful? Eat them all? (with source code for free)
OpenSSF安全计划:SBOM将驱动软件供应链安全
一场分销裂变活动,不止是发发朋友圈这么简单!
MySQL中符号@的作用
Yyds dry inventory solution sword finger offer: a path with a certain value in the binary tree (3)
About tensorflow using GPU acceleration
Leetcode daily practice (main elements)
Mobile terminal click penetration
Use redis to automatically cancel orders within 30 minutes
What is RPC
Redis Series 2: data persistence improves availability
Event listening mechanism
Vulnerability recurrence ----- 34. Yapi remote command execution vulnerability
Markdown syntax
如果想用dms来处理数据库权限问题,想问下账号只能用阿里云的ram账号吗(阿里云的rds)
鸿蒙发力!HDD杭州站·线下沙龙邀您共建生态