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

推荐订阅源

Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
IT之家
IT之家
MongoDB | Blog
MongoDB | Blog
博客园_首页
S
SegmentFault 最新的问题
H
Help Net Security
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
T
The Blog of Author Tim Ferriss
量子位
GbyAI
GbyAI
M
MIT News - Artificial intelligence
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
B
Blog
月光博客
月光博客
博客园 - 聂微东
Vercel News
Vercel News
罗磊的独立博客
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
Arctic Wolf
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
L
Lohrmann on Cybersecurity
I
Intezer
小众软件
小众软件
T
The Exploit Database - CXSecurity.com
Jina AI
Jina AI
C
Check Point Blog
AWS News Blog
AWS News Blog
C
Cisco Blogs
Martin Fowler
Martin Fowler
The Last Watchdog
The Last Watchdog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
宝玉的分享
宝玉的分享
S
Security Affairs
大猫的无限游戏
大猫的无限游戏
N
News and Events Feed by Topic
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hacker News: Front Page
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Full Disclosure
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog

博客园 - 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
重新执行打包
即可完成。