惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
S
Securelist
博客园 - Franky
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
N
News and Events Feed by Topic
AI
AI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Schneier on Security
Schneier on Security
Attack and Defense Labs
Attack and Defense Labs
Vercel News
Vercel News
腾讯CDC
Google DeepMind News
Google DeepMind News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
N
Netflix TechBlog - Medium
量子位
S
Schneier on Security
Hacker News: Ask HN
Hacker News: Ask HN
Cyberwarzone
Cyberwarzone
S
Security Affairs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
N
News and Events Feed by Topic
T
Tenable Blog
PCI Perspectives
PCI Perspectives
MyScale Blog
MyScale Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cyber Attacks, Cyber Crime and Cyber Security
W
WeLiveSecurity
N
News | PayPal Newsroom
P
Proofpoint News Feed
O
OpenAI News
C
CERT Recently Published Vulnerability Notes
B
Blog
Cisco Talos Blog
Cisco Talos Blog
Microsoft Security Blog
Microsoft Security Blog
V
Visual Studio Blog
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Y
Y Combinator Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Spread Privacy
Spread Privacy

博客园 - zhaocundang

MLX90640迷你热像仪管道测温电路维修酒店巡检科研实验数据采集 树莓派4b 安装ubuntu18.04 server glibc2.27 打包分发qt软件 树莓派4b ubuntu24.04安装qt配置软件源 海曼HTPA80X64红外热成像 测温采集记录仪 多点实时温度分析 海曼HTPA32X32红外热成像 测温采集记录仪 多点实时温度分析 在Ubuntu上的QT创建工程并打包项目 MLX90640热像仪测温采集 科研实验 非接触测温 FLIR LEPTON3.5 热像仪wifi 科研实验测温采集仪 STM32H750 DMA 串口2 D CACHE缓存问题 热像仪报警器MLX90640 qt c语言双三次线性插值 qt RGB565 转rgb Qt MacOS 打包dmg MLX90640 热成像 热像仪 OV2640 双光融合 seafile配置 安装基于Ubuntu20.04 Desktop的Raid1。 lvgl qt RGB 转RGB565 生成提供单片机LCD显示 STM32F411CE VCAP 电容不稳定导致死机
树莓派4b qt打包软件
zhaocundang · 2026-01-24 · via 博客园 - zhaocundang

用的树莓派4b, 下载的32位系统bullseye , glibc2.31 兼容性更高
https://downloads.raspberrypi.com/raspios_oldstable_armhf/images/raspios_oldstable_armhf-2025-05-07/

2025-05-06-raspios-bullseye-armhf.img.xz 2025-05-06 14:51 904M

用官方烧写软件烧写镜像;

更改树莓派 Raspberry Pi OS (bullseye) 镜像源
树莓派系统基于 Debian,但其软件源分为两部分:‌Raspbian‌(Debian 的 ARM 交叉编译版本)和 ‌Raspberrypi‌(树莓派专用软件包)。因此,需要修改两个文件。

‌备份原配置文件‌:

bash
Copy Code
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak
‌编辑 Raspbian 源文件‌:

sudo nano /etc/apt/sources.list
‌对于 armhf 架构(32位)‌:添加以下内容(以清华源为例):

deb [arch=armhf] http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bullseye main non-free contrib rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bullseye main non-free contrib rpi
‌对于 aarch64 架构(64位)‌:添加以下内容(以清华源为例):

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bullseye-security main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bullseye-security main contrib non-free
‌编辑 Raspberrypi 源文件‌:

sudo nano /etc/apt/sources.list.d/raspi.list
删除文件中所有内容,替换为以下内容(以阿里云镜像为例):

deb https:///mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main
‌更新软件包列表‌:

sudo apt update
安装qt
更新系统软件包列表:

bash
sudo apt update
sudo apt upgrade
安装必要的构建工具和基础库:

bash
sudo apt install build-essential libgl1-mesa-dev
这一步安装了编译Qt应用程序所需的基础工具和OpenGL库。

安装Qt核心开发库和工具:

bash
sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
qtbase5-dev 是Qt 5的核心开发库,qt5-qmake 是项目构建工具。

(可选)安装Qt Creator集成开发环境:

bash
sudo apt install qtcreator
安装后,你可以在应用程序菜单中找到它。

(可选)安装额外模块:
根据你的项目需要,可以选择安装其他模块,例如:

bash

如果需要开发图形界面应用
sudo apt install qtdeclarative5-dev

如果需要串口通信功能
sudo apt install libqt5serialport5-dev

打开qtcreator kit里面配置一下qmake
/usr/lib/qt5/bin/qmake
g++ gcc都配置一下

重新载入工程即可编译;

https://github.com/probonopd/linuxdeployqt/releases/tag/continuous
下载编译 linuxdeployqt 的source源码编译成32位的
解压
文件夹里面执行 qmake
然后 make
等待,在bin文件夹里面找到linuxdeployqt就是执行文件
linuxdeployqt 你的app -appimage
出错, 安装pachelf
sudo apt install pachelf
重新执行打包
即可完成。