更新时间:2024-05-20
安装qt5.15以上版本
系统:ubuntu20.04.06
本文安装:linux-5.15.2
下载安装
# 安装编译套件g++
sudo apt-get install build-essential
#安装OpenGL
sudo apt-get install libgl1-mesa-dev# 下载qt安装器
https://download.qt.io/official_releases/online_installers/
# 下载安装 登录账号并选中Archive 然后filter就可以显示5.15的版本
./qt-online-installer-linux-x64-4.8.0.run
运行报错:
qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Aborted (core dumped)
解决方法:
sudo apt-get install libxcb-xinerama0