当前位置:网站首页>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 .


边栏推荐
- List转Table
- Design of FIR digital filter
- Source NAT address translation and server mapping web page configuration of firewall Foundation
- # Cesium实现卫星在轨绕行
- Julia constructs diagonal matrix
- 鸿蒙发力!HDD杭州站·线下沙龙邀您共建生态
- LeetCode每日一练(两数之和)
- Hung - Mung! HDD Hangzhou station · salon hors ligne vous invite à construire l'écologie
- C語言教師工作量管理系統
- Event listening mechanism
猜你喜欢

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

ICML 2022 | 阿⾥达摩院最新FEDformer,⻓程时序预测全⾯超越SOTA

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

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

Vulnerability recurrence ----- 34. Yapi remote command execution vulnerability

Bit. Store: long bear market, stable stacking products may become the main theme
MySQL中符号@的作用

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

Yyds dry inventory solution sword finger offer: a path with a certain value in the binary tree (3)

【Pygame小游戏】这款“吃掉一切”游戏简直奇葩了?通通都吃掉嘛?(附源码免费领)
随机推荐
E modulenotfounderror: no module named 'psychopg2' (resolved)
express
[pygame Games] ce jeu "eat Everything" est fantastique? Tu manges tout? (avec code source gratuit)
Scrapy framework (I): basic use
Open source 23 things shardingsphere and database mesh have to say
带你认识图数据库性能和场景测试利器LDBC SNB
ICML 2022 | 阿⾥达摩院最新FEDformer,⻓程时序预测全⾯超越SOTA
关于#mysql#的问题:问题遇到的现象和发生背景
【牛客刷题】NowCoder号称自己已经记住了1-100000之间所有的斐波那契数。 为了考验他,我们随便出一个数n,让他说出第n个斐波那契数。如果第n个斐波那契大于6位则只取后6位。
National food safety risk assessment center: do not blindly and unilaterally pursue "zero addition" and "pure natural" food
Etcd可视化工具:Kstone部署(一),基于Helm快速部署
A robot is located in the upper left corner of an M x n grid. The robot can only move down or right one step at a time. The robot attempts to reach the lower right corner of the grid. How many differe
Smart wind power | Tupu software digital twin wind turbine equipment, 3D visual intelligent operation and maintenance
List转Table
事务的四大特性
Redis Series 2: data persistence improves availability
Yyds dry inventory solution sword finger offer: a path with a certain value in the binary tree (3)
LeetCode每日一练(主要元素)
Open source 23 things shardingsphere and database mesh have to say
A distribution fission activity is more than just a circle of friends!