在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
最佳答案
安装qt5-default后,我的问题已解决:
sudo apt-get install qt5-default
谢谢
关于c++ - Ubuntu Qmake不是可执行文件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24978201/