简介

ubuntu中执行qmake出现

  • qmake: could not find a Qt installation of ”或
  • qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’

原因是qt指向的qt安装位置不正确

这里写图片描述

可以看到qmake实际上软连接到了一个文件夹qtchooser,修改default.conf 文件

cd /usr/lib/x86_64-linux-gnu/qt-default/qtchooser 
sudo vi default.conf 

修改为qt的安装路径

/home/codebee/Qt5.6.2/5.6/gcc_64/bin
/home/codebee/Qt5.6.2/5.6

保持退出后键入命令qmake ,看到已经ok

这里写图片描述

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:22 天前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐