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

推荐订阅源

S
Schneier on Security
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Threat Research - Cisco Blogs
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Cisco Talos Blog
Cisco Talos Blog
The Hacker News
The Hacker News
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cyber Attacks, Cyber Crime and Cyber Security
Security Latest
Security Latest
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
C
Cisco Blogs
AWS News Blog
AWS News Blog
T
Threatpost
L
LINUX DO - 热门话题
Simon Willison's Weblog
Simon Willison's Weblog
Scott Helme
Scott Helme
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tor Project blog
Cyberwarzone
Cyberwarzone
P
Proofpoint News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
The Exploit Database - CXSecurity.com
The Register - Security
The Register - Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
罗磊的独立博客
云风的 BLOG
云风的 BLOG
V
Vulnerabilities – Threatpost
N
News | PayPal Newsroom
Project Zero
Project Zero
NISL@THU
NISL@THU
博客园_首页
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
F
Full Disclosure
T
Troy Hunt's Blog
Recorded Future
Recorded Future
N
Netflix TechBlog - Medium
P
Privacy International News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
Arctic Wolf
C
Check Point Blog
W
WeLiveSecurity
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes

博客园 - zhaocundang

MLX90640迷你热像仪管道测温电路维修酒店巡检科研实验数据采集 树莓派4b 安装ubuntu18.04 server glibc2.27 打包分发qt软件 树莓派4b qt打包软件 树莓派4b ubuntu24.04安装qt配置软件源 海曼HTPA80X64红外热成像 测温采集记录仪 多点实时温度分析 海曼HTPA32X32红外热成像 测温采集记录仪 多点实时温度分析 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 电容不稳定导致死机
在Ubuntu上的QT创建工程并打包项目
zhaocundang · 2024-06-14 · via 博客园 - zhaocundang

ubuntu16 qt5.14.2
其他版本大同小异
下载2个软件
1、下载两个工具
链接如下:
https://gitcode.com/probonopd/linuxdeployqt/releases?utm_source=csdn_github_accelerator&isLogin=1

https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.gz

2、下载好后复制进UBuntu

3、配置linuxdeployqt

重命名为linuxdeployqt
sudo mv linuxdeployqt-continuous-x86_64.AppImage linuxdeployqt
移动到/usr/local/bin目录下
sudo mv ./linuxdeployqt /usr/local/bin
进入目录下
cd /usr/local/bin
赋权限
chmod 777 linuxdeployqt

检查安装
linuxdeployqt -version 注意 (sudo linuxdelpoyqt --version 我这里显示找不到命令)

4、**配置patchelf **

tar -zxvf patchelf-0.9.tar.gz

进入解压后的文件夹,进行编译执行

./configure
make
sudo make install

5、配置Qt系统环境(已配置环境可跳过此步骤)

终端输入vim ~/.bashrc 或者 gedit ~/.bashrc 命令
vim ~/.bashrc

修改 .bashrc 文件,在文件末尾追加以下内容

QtVersion=5.12.3
QtRoot="/opt/Qt5.12.3/${QtVersion}/gcc_64"
export PATH=${QtRoot}/bin:${PATH}
export LD_LIBRARY_PATH=${QtRoot}/lib:${LD_LIBRARY_PATH}
export QT_PLUGIN_PATH=${QtRoot}/plugins:${QT_PLUGIN_PATH}

输入i进行修改,退出:esc 按下:输入wq

刷新一下bashrc

source ~/.bashrc

查看qmake -v

解决方法如下:
解决步骤:

步骤一:找到qmke命令链接路径

which qmake

步骤二:删除连接

sudo rm /usr/bin/qmake
具体操作

步骤三:重新链接
xiaobo@ubuntu:~/Desktop/AppDir$ sudo ln -s /home/xiaobo/Qt5.14.2/5.14.2/gcc_64/bin/qmake /usr/bin/qmake

再次输入
xiaobo@ubuntu:~/Desktop/AppDir$ qmake -v

可以看到与我安装的版本一致

6、打包发布Qt应用程序
将Qt项目用release方式运行,生成可执行文件。
将可执行文件负责到任意文件夹里面
在里面运行
sudo linuxdeployqt filename -appimage
OK

执行程序

./AppRun