#!/bin/bash
sudo chmod 777 /opt


sudo apt update && sudo apt upgrade -y

sudo apt install libxcb-cursor0 libxcb-cursor-dev  mesa-utils libgl1-mesa-dev  libxcb-xinerama0 gcc g++ -y




如果是ubuntu20.04系统  先进去把中文输入法改好


qt官方文档  qt找插件机制
https://doc.qt.io/qt-5/deployment-plugins.html

qt解决缺少xcb的位置
export QT_DEBUG_PLUGINS=1
https://blog.csdn.net/sinat_26106275/article/details/82778951