栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Buildroot--如何配置安装带Qt5的文件系统

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Buildroot--如何配置安装带Qt5的文件系统

一. 通过menuconfig配置Qt5

选择【Target packages  --->】

 选择【Graphic libraries and applications (graphic/text)  --->】

 选择【Qt5  --->】

  选择【 -*-     gui module                                                                                       │ │  
  │ │      [*]       widgets module】

【[*]     Enable Tslib support】

​​​​​​​

如果发现没有Qt5选项,则需要使能【Toolchain  --->】

【*- Enable WCHAR support 】和

【[*] Enable C++ support   】

二.  查看Buildroot中Qt 的默认版本
cd ./package/qt5/qt5.mk

 三. 通过脚本手动配置

1. 修改 package/qt5/Config.in的描述

config BR2_PACKAGE_QT5_VERSION_LATEST
	bool "LATEST (5.12)"

2. 修改package/qt5/qt5.mk

QT5_VERSION_MAJOR = 5.12
QT5_VERSION = $(QT5_VERSION_MAJOR).0

3. 修改对应的qt5*.hash文件,写个脚本方便执行,新增个package/qt5/qt5base/5.12.0目录。新建qt5base.hash文件

#!/bin/bash
for i in qt5*}
	context=`curl http://download.qt.io/official_releases/qt/5.12/5.12.0/submodules/$tmp-everywhere-src-5.12.0.tar.xz.sha256`
	echo sha256 $context >> $i
done

把脚本放到package/qt5/目录下执行就一次改完了。

四. 生成的Qt目标文件

路径在如下:

/home/cll/MYZR-IMX6-EK140/my_work/MingYuan/buildroot-2021.05.3/output/target/usr/lib

编译完成后, 可以找到qmake 

cll@ubuntu:~/MYZR-IMX6-EK140/my_work/MingYuan/buildroot-2021.05.3/output/build/qt5base-5.15.2/bin$ ./qmake -v
QMake version 3.1
Using Qt version 5.15.2 in /home/cll/MYZR-IMX6-EK140/my_work/MingYuan/buildroot-2021.05.3/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib
五. 打包文件系统

解压缩*.tar.bz2文件

tar -vxjf xxx.tar.bz2

压缩成*.tar.bz2文件

tar -vcjf xxx.tar.bz2 xxx

将当前文件系统打包成tar.bz2格式

tar -cjf L4115-core-image-base-myimx6a7.tar.bz2 ./*
cp L4115-core-image-base-myimx6a7.tar.bz2 /mnt/hgfs/M_Share/

然后通过烧录软件下载。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/964381.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号