在Ubuntu和
中安装新版本的QtCreator之后tux-world@alachiq:~ > sudo apt-get install qt5-qmake build-essential g++ gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
g++ is already the newest version.
g++ set to manually installed.
gcc is already the newest version.
qt5-qmake is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 247 not upgraded.
在Build & Run
的选项中并在`/ usr / bin / qmake'中选择qmake我收到此错误:
The qmake executable /usr/lib/i386-linux-gnu/qt4/bin/qmake could not be added: qmake '/usr/lib/i386-linux-gnu/qt4/bin/qmake' is not an executable.
在家庭系统中我在安装这些软件包并在选项
中设置Qmake后没有任何问题其他信息:
tux-world@alachiq:~ > apt-cache search qt5-qmake
qt5-qmake - Qt 5 qmake Makefile generator tool
tux-world@alachiq:~ > ldd /opt/qtForArm/bin/qmake
ldd: /opt/qtForArm/bin/qmake: No such file or directory
tux-world@alachiq:~ > sudo chmod +x /usr/lib/i386-linux-gnu/qt4/bin/qmake
[sudo] password for tux-world:
chmod: cannot access ‘/usr/lib/i386-linux-gnu/qt4/bin/qmake’: No such file or directory
更新:
安装此目录下的Qmake后:
tux-world@alachiq:~ > whereis qmake
qmake: /usr/bin/qmake /usr/bin/X11/qmake
列出/usr/sbin
上的目录:
tux-world@alachiq:~ > ls -a /usr/sbin/qmake
ls: cannot access /usr/sbin/qmake: No such file or directory
检查可执行文件和其他信息qmake:
tux-world@alachiq:~ > ls -a -l /usr/bin/qmake
lrwxrwxrwx 1 root root 9 فوریه 19 15:53 /usr/bin/qmake -> qtchooser
答案 0 :(得分:6)
安装qt5-default后我的问题解决了:
sudo apt-get install qt5-default
由于
答案 1 :(得分:1)
从更新的问题中可以清楚地看出
/ usr / bin / qmake是qtchooser的软链接
使用qtchooser的错误消息是正常的,尽管没有信息。
实质上,你试图用自己执行qtchooser,这是行不通的。
在终端上运行 $ man qtchooser 命令,了解如何使用qtchooser
如果您无法看到 qtchooser 的手册页,或者问题仍然存在,那么我建议您安装
$ sudo apt-get install qt-sdk
希望这可以解决您的问题
答案 2 :(得分:1)
尝试将qmake路径设置为/ usr / lib / i386-linux-gnu / qt5 / bin / qmake。这是qt5-qmake安装其qmake可执行文件的地方。