Ubuntu16.04安装Qt5.12.2
第一步:下载文件
https://download.qt.io/official_releases/qt/5.12/5.12.2/
第二步:安装依赖库
sudo apt-get install build-essential
sudo apt-get install libqt4dev
sudo apt-get install g++
sudo apt-get install libx11-dev libxext-dev libxtst-dev
sudo apt-get install xlibmesa-gl-dev libglu1-mesa-dev
第三步:安装qt
./qt-opensource-linux-x64-5.12.2.run
一路next即可,注册账号的步骤可跳过
来源:https://my.oschina.net/u/4000302/blog/3107564