当前位置:网站首页>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
边栏推荐
猜你喜欢
JVM运行时数据区与JMM内存模型是什么
Prometheus's Recording rules practice
Keras deep learning practice - traffic sign recognition
XML配置
将ENS域名转化为音乐需要几步?
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
Shell script topic (07): file from cfs to bos
el-form-item prop属性动态绑定不生效如何解决
Zabbix6.0钉钉机器人告警
How many steps does it take to convert an ENS domain name into music?
随机推荐
AntDB数据库亮相24届高速展,助力智慧高速创新应用
Use of message template placeholders
Leetcode75. Color Classification
kubernetes-部署nfs存储类
2022,程序员应该如何找工作
MySQL database - stored procedures and functions
【pyqt5】自定义控件 实现能够保持长宽比地缩放子控件
SQL function TO_DATE (1)
选择合适的 DevOps 工具,从理解 DevOps 开始
Leetcode72. Edit Distance
暑假第一周总结博客
Go GORM事务实例分析
国标GB28181协议EasyGBS平台兼容老版本收流端口的功能实现
深入浅出Flask PIN
1065 A+B and C (64bit)
将ENS域名转化为音乐需要几步?
opencv syntax Mat type summary
C#/VB.NET Extract table from PDF
日志工厂(详细)
odoo+物联网