当前位置:网站首页>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 .
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 .
边栏推荐
- 等保三级密码复杂度是多少?多久更换一次?
- 特殊函数计算器
- # Cesium实现卫星在轨绕行
- Event listening mechanism
- Redis系列2:数据持久化提高可用性
- Mode setting of pulseaudio (21)
- 基于 Nebula Graph 构建百亿关系知识图谱实践
- 鴻蒙發力!HDD杭州站·線下沙龍邀您共建生態
- 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
- LeetCode每日一练(无重复字符的最长子串)
猜你喜欢
Smart wind power | Tupu software digital twin wind turbine equipment, 3D visual intelligent operation and maintenance
Redis系列2:数据持久化提高可用性
数据中心表格报表实现定制统计加班请假汇总记录分享
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
开源二三事|ShardingSphere 与 Database Mesh 之间不得不说的那些事
一场分销裂变活动,不止是发发朋友圈这么简单!
树莓派初步使用
Etcd visualization tool: kstone deployment (I), rapid deployment based on Helm
express
Vulnerability recurrence ----- 34. Yapi remote command execution vulnerability
随机推荐
Leetcode daily practice (longest substring without repeated characters)
C语言课程设计
P.A.R.A 方法在思源的简易应用(亲测好用)
MySQL中符号@的作用
Hung - Mung! HDD Hangzhou station · salon hors ligne vous invite à construire l'écologie
基于 Nebula Graph 构建百亿关系知识图谱实践
深耕数字化,引领云原生,服务更多开发者
Bit. Store: long bear market, stable stacking products may become the main theme
The array of C language is a parameter to pass a pointer
logstash排除特定文件或文件夹不采集上报日志数据
3.4 fixed number of cycles II
请问阿里云实验中 k8s 对于3306端口转发,同时开启mysql客户端就会异常终止,是什么原因呢?
QT audio playback upgrade (7)
Jialichuang EDA professional edition all offline client release
tensorflow求解泊松方程
Julia constructs diagonal matrix
Luogu_ P1008 [noip1998 popularization group] triple strike_ enumeration
Realize simple three-D cube automatic rotation
C语言教师工作量管理系统
【牛客刷题】NowCoder号称自己已经记住了1-100000之间所有的斐波那契数。 为了考验他,我们随便出一个数n,让他说出第n个斐波那契数。如果第n个斐波那契大于6位则只取后6位。