当前位置:网站首页>Try compiling QT test on Allwinner V853 development board
Try compiling QT test on Allwinner V853 development board
2022-08-01 18:53:00 【51CTO】
Record yourself cross-compilingQT的过程,At present, after experiencing the first time compiling the image,编译这个QTStill relatively quick,Because all the required libraries are installed.
The first is that I need to find where our cross-compiler is installed,This is downloadingTinaIt was still easy to find after that.tina-v853-open/prebuilt/rootfsbuilt/arm/toolchain-sunxi-musl-gcc-830/toolchain/bin
Tina OL jcby Download: qt5.12.6.tar
如上路径.

This is what we usually use,We can add its path to our system's environment,这样在编译QT的时候就比较简单了.
Usually I add it directly/etc/profile下的,That's it after restarting.

敲一下arm-openwrt-linux-gcc -vThis will bring up the above promptOK了.
Next we are ready to compileQTCompile beforetslibThis is more convenient when using a touch screen at the bottom.

这里我选择的1.15版本的,这个都可以,本身TinaIt seems to have been taken when rebuildingtslib.
This section needs to be executed before configuration,This section is to find the library files of the cross compiler,头文件的.

进行配置生成makefile文件.

然后直接make,make结束之后就是make install,This will generate ours in the folder we configuredarm-tslib.

It's actually just for thatQTCross compiling to find the header file library.

然后我们选择一个QT5版本,这里我选择了QT5.12.6.Then create a new folder where the cross-compilation is completed and I will name itarm-qt.After that we generally choose to build a script.

Here I built one called make.sh的.So here we are done soQT的配置工作,具体如下:
The end is to just build and then install.
-xplatform linux-arm-gnueabi-g++
In the middle we pay attention to this configuration,This configuration is to correspond to our cross compiler.


Replace all the contents of the above file with the name of our cross compiler.然后执行脚本即可.


Find out if we agree with itlicense.输入yes即可,If there is no error in the middle, it will be built and installed directly.

Here are some components we configured,You can choose to install it yourself.That is, you can modify the script.

Here is the compilation completed,Waited about half an hour in between,Check your personal virtual machine configuration.

A lot of files are generated under the path,我们放到armThat is on the development boardlib,和pluginsThere are no font files in it yet,可以自己添加.

来到底层,We need to put the file to the bottom layer,Then I actually found that the system I compiled did nottar指令,There is no way we can only be rightSDCard is off,我给sd格式化成ext4Format is supportlinux系统的格式.
我在Ubuntu下安装了gparted工具.Just format the card directly.
This way we can directly mount and then use the library.This purpose is because of some.SoThe file cannot be decompressed.
Then initialize our library path,This will workQT了,效果如下:

QTThe necessary accessories are as follows: qt5.12.6.tar
边栏推荐
猜你喜欢

explain each field introduction

Prometheus的Recording rules实践

Zabbix6.0 DingTalk robot alarm

Become a Contributor in 30 minutes | How to participate in OpenHarmony's open source contributions in multiple ways?

【神经网络】一文带你轻松解析神经网络(附实例恶搞女友)

kubernetes-部署nfs存储类

XML配置

How to solve the dynamic binding of el-form-item prop attribute does not take effect

Website construction process

在表格数据上,为什么基于树的模型仍然优于深度学习?
随机推荐
When compiling a program with boost library with VS2013, it prompts fatal error C1001: An internal error occurred in the compiler
C#/VB.NET: extracted from the PDF document all form
AntDB database appeared in the 24th high-speed exhibition, helping smart high-speed innovative applications
modbus总线模块DAM-8082
C#/VB.NET:从 PDF 文档中提取所有表格
生命周期和作用域
国标GB28181协议EasyGBS平台兼容老版本收流端口的功能实现
ClassID的计算中,&表示啥意思
2022年 PHP面试问题记录
【LeetCode】Day109-the longest palindrome string
Leetcode75. Color Classification
金鱼哥RHCA回忆录:CL210管理OPENSTACK网络--章节实验
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
[Kapok] #Summer Challenge# Hongmeng mini game project - Sudoku (3)
MySQL数据库————存储过程和函数
SQL函数 TO_DATE(二)
【木棉花】#夏日挑战赛# 鸿蒙小游戏项目——数独Sudoku(3)
Keras深度学习实战——交通标志识别
安装GBase 8c数据库的时候,报错显示“Resource:gbase8c already in use”,这怎么处理呢?
Go GORM事务实例分析