Ubuntu 14.04下安装并配置Qt5.7.0
|
1、去官网下载离线安装包 (需要注册) linux 64bit : qt-opensource-linux-x64-5.7.0.run 2、安装libgl1-mesa-dev ,否则在编译时会出错,提示 cannot find -lGL collect2:error:ld returned 1 exit status sudo apt-get install libgl1-mesa-dev 3、安装QT (1)赋可执行权限 sudo chmod u+x qt-opensource-linux-x64-5.7.0.run (2)安装 ./qt-opensource-linux-x64-5.7.0.run 安装目录选择了默认目录/opt/Qt5.7.0 安装完后,还要配置Qt,否则是不能使用的。当你在命令行下输入qmake时,会报这样的错误qmake:could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’:NO such file or directory(32位的ubuntu报的是这样的错 qmake:could not exec ‘/usr/lib/i386-linux-gnu/qt4/bin/qmake’:NO such file or directory) sudo gedit /usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf 将内容修改为: /opt/Qt5.7.0/5.7/gcc_64/bin /opt/Qt5.7.0/5.7/gcc_64 (编辑:日照站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- laravel – 启动Ubuntu Server时,Supervisor不会自动启动
- 在 Ubuntu on Windows 下Webpack 错误:uv_interface_addre
- ubuntu下建立PPTP-VPN客户端拨号连接
- ubuntu 16.04 网络配置及ssh 连接问题
- Secure CRT连接VirtualBox虚拟机中的Ubuntu 15
- ubuntu下mysql版本升级到5.7
- 基于PowerShell在Ubuntu系统的使用详解
- 碉堡了Ubuntu Core Linux支持 TS-4900 物联网开发板
- Ubuntu 16.04下MATLAB R2016b启动时崩溃的修复方法
- Ubuntu14.04 系统下安装IDL开发环境
