当前位置:   article > 正文

Ubuntu安装QT未找到编译器解决方法_ubuntu上qt识别不到编译器

ubuntu上qt识别不到编译器

首先官网下载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
操作完以上即可编译通过…

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/510627
推荐阅读
相关标签
  

闽ICP备14008679号