1、执行qmake,提示下图的错误
Command 'qmake' not found, but can be installed with:
sudo apt install qtchooser
解决方法:
sudo apt install qtchooser
2、执行qmake,提示一下错误
qmake: could not find a Qt installation of ''
解决步骤:
步骤一:找到qmke命令链接路径
which qmake
具体操作
cxx@cxx-virtual-machine:~/Demo/qBreakpad-master$ which qmake
/usr/bin/qmake
步骤二:删除连接
sudo rm /usr/bin/qmake
具体操作
cxx@cxx-virtual-machine:~/Demo/qBreakpad-master$ sudo rm /usr/bin/qmake
步骤三:重新链接【这里我安装的qt,在/opt/Qt5.14.2,所以qmake路径就是/opt/Qt5.14.2/5.14.2/gcc_64/bin/qmake】
sudo ln -s /opt/Qt5.14.2/5.14.2/gcc_64/bin/qmake /usr/bin/qmake
文章来源:https://www.toymoban.com/news/detail-520518.html
文章来源地址https://www.toymoban.com/news/detail-520518.html
到了这里,关于安装qt qmake assistant 错误:could not find a Qt installation of ‘‘的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!