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


边栏推荐
- Hung - Mung! HDD Hangzhou station · salon hors ligne vous invite à construire l'écologie
- #yyds干货盘点#简述chromeV8引擎垃圾回收
- #yyds干货盘点# 解决剑指offer:二叉树中和为某一值的路径(三)
- New method of cross domain image measurement style relevance: paper interpretation and code practice
- Google Earth Engine(GEE)——Export. image. The difference and mixing of toasset/todrive, correctly export classification sample data to asset assets and references
- 基于 Nebula Graph 构建百亿关系知识图谱实践
- Sigkdd22 | graph generalization framework of graph neural network under the paradigm of "pre training, prompting and fine tuning"
- 树莓派初步使用
- Julia constructs diagonal matrix
- If you want to use DMS to handle database permissions, can you only use Alibaba cloud ram accounts (Alibaba cloud RDS)
猜你喜欢

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

#yyds干货盘点# 解决剑指offer:二叉树中和为某一值的路径(三)

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

LeetCode每日一练(主要元素)

About MySQL: the phenomenon and background of the problem

智慧风电 | 图扑软件数字孪生风机设备,3D 可视化智能运维

Centos8 PostgreSQL initialization error: initdb: error: invalid locale settings; check LANG and LC_* environment

基于 Nebula Graph 构建百亿关系知识图谱实践

一场分销裂变活动,不止是发发朋友圈这么简单!

面试半年,上个月成功拿到阿里P7offer,全靠我啃烂了这份2020最新面试题!
随机推荐
SQL parsing practice of Pisa proxy
List转Table
Distributed session solution
Can polardb-x be accessed through the client of related tools as long as the client supporting JDBC / ODBC protocol is afraid?
Sigkdd22 | graph generalization framework of graph neural network under the paradigm of "pre training, prompting and fine tuning"
C语言教师工作量管理系统
logstash排除特定文件或文件夹不采集上报日志数据
What is the open source compatibility of the current version of polardb-x? mysql8?
#yyds干货盘点#简述chromeV8引擎垃圾回收
Redis Series 2: data persistence improves availability
OpenSSF安全计划:SBOM将驱动软件供应链安全
Bit. Store: long bear market, stable stacking products may become the main theme
Luogu_ P1002 [noip2002 popularization group] crossing the river_ dp
Introduce you to ldbc SNB, a powerful tool for database performance and scenario testing
【Pygame小游戏】这款“吃掉一切”游戏简直奇葩了?通通都吃掉嘛?(附源码免费领)
Leetcode daily practice (longest substring without repeated characters)
PolarDB-X开源版有没有支持 mysql5.7 的版本?
# Cesium实现卫星在轨绕行
The two trump brand products of Langjiu are resonating in Chengdu, continuously driving the consumption wave of bottled liquor
一个机器人位于一个 m x n 网格的左上角 。机器人每次只能向下或者向右移动一步。机器人试图达到网格的右下角。问总共有多少条不同的路径?【LeetCodeHot100】