Linux QT版本安装不正确,请运行make install
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14581528/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
QT version is not properly installed, please run make install
提问by Tio Pepe
I installed QT-creator from a downloaded copy of qt-creator-linux-x86-opensource-2.6.1.bin
using
我从一个下载的副本安装QT-创作者qt-creator-linux-x86-opensource-2.6.1.bin
使用
sudo ./qt-creator-linux-x86-opensource-2.6.1.bin
in Ubuntu 11.04
在 Ubuntu 11.04 中
I tried to add QT versions in QT-Creator/Build/QT-versions configuration and it asked for a qmake executable.
我试图在 QT-Creator/Build/QT-versions 配置中添加 QT 版本,它要求一个 qmake 可执行文件。
I installed it using:
我使用以下方法安装它:
sudo apt-get install qt4-devel
which deployed qmake in /usr/bin/qmake
其中部署了 qmake /usr/bin/qmake
I selected it in QT-Creator/Build/QT-versions configuration as manual, Qt-4.7.2 (System) /usr/bin/qmake-qt4
but QT version is not properly installed, please run make install
message appears and I can't use it in QT-Creator/Build/Kits configuration.
我在 QT-Creator/Build/QT-versions 配置中选择了它作为手册,Qt-4.7.2 (System) /usr/bin/qmake-qt4
但是QT version is not properly installed, please run make install
出现消息并且我无法在 QT-Creator/Build/Kits 配置中使用它。
How can I solve the problem and configure qmake for Qt-creator use in project creation?
如何解决问题并为 Qt-creator 在项目创建中使用配置 qmake?
采纳答案by Tio Pepe
Just so this no longer shows up as unanswered:
只是这样这不再显示为未答复:
To install all qt-devel libraries, use
要安装所有 qt-devel 库,请使用
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
回答by vovan888
This solved the problem for me on recent Ubuntu version:
这在最近的 Ubuntu 版本上为我解决了这个问题:
sudo apt-get install qt5-default