赞
踩
首先官网下载Qt需要的版本
~Qt Download Url:http://download.qt.io/archive/qt
打开QT安装包,都是可视化界面,全部下一步就好
~Open Qt installPack --> Visual Interface --> Next -->Ok
配置apt源,自带的在安装C++编译器可能无法下载,我配置的清华镜像源
~Configuration apt Source -->
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
配置镜像源后安装下面两个包build-essential 和 libgl1-mesa-dev 里面自带很多编译器和依赖项
~Ubuntu --> sudo apt-get install build-essential -If Hava Error Cannot find -lGL -> sudo apt-get install libgl1-mesa-dev
~Centos --> yum groupinstall “Development Tools” And yum install mesa-libGL-devel mesa-libGLU-devel …yum install freeglut-devel
操作完以上即可编译通过…
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。