当我试图用Project ERROR: Unknown module(s) in QT: positioning构建依赖于QT5的项目时,出现了错误的qmake,我怀疑以前安装的旧QT4安装中可能会出现问题。
qmake -version
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
所以我的问题是:
1.如何解决这一错误?
2.如何完全删除Qt4 (并可能重新安装QT5?)?
更新:
which qmake
/usr/bin/qmake
ls -l /usr/bin/qmake
lrwxrwxrw
我尝试使用KDE Neon运行部署脚本。我已经从bash手动启动了脚本,并且没有找到qmake。
当试图直接从bash运行qmake时,我得到以下错误:
$ qmake -v
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
该bin文件夹几乎为空,不包含qmake。在路径/usr/lib/x86_64-linux-gnu/qt5/bin/中,可以找到完整的Qt安装,但也找不到qmake。/usr/bin/qmake显然是一个指向缺少的/usr/l
在Ubuntu和
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 manu
我想为ARM设备编译一个Qt程序。
我安装了ARM的工具链,下面是我的qmake.conf文件的样子:
#
# qmake configuration for building with arm-none-linux-gnueabi-g++
#
include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)
# modifications to g++.conf
QMAKE_
我已经用Creator安装了Qt5.6。我有一个简单的Qt项目,我正试图‘做’。如果在项目目录中运行qmake && make,则得到以下结果:
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
我在网上找到了几个建议为QT4安装qmake来解决这个问题的帖子,使用:
sudo apt-get install qt4-qmake
我实际上是这样做的,它似乎使Qmake工作起来,但是make过程失败了。
make: /usr/lib
我已经通过一个*.run文件从官方网站安装了Qt5.6。安装目录在我的主文件夹中。当我跑的时候
qmake --version
我收到以下信息:
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
我认为问题在于操作系统没有在正确的目录中查找qmake (我已经在我的主文件夹中安装了Qt )。
如何告诉操作系统在我的主文件夹中搜索Qt?
anisha@linux-dopx:~> which qmake
which: no qmake in (/opt/qtcreator-2.0.92/bin/:/opt/qtsdk-2010.05/qt/bin/:/opt/qtcreator-2.0.92/bin/:/opt/qtsdk-2010.05/qt/bin/:/usr/lib64/mpi/gcc/openmpi/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin)
我正在尝试使用命令行编译qt-dab:
qmake qt-dab.pro
make
但我得到了以下错误消息:
/usr/bin/ld : ne peut trouver -lqwt-qt5
collect2: error: ld returned 1 exit status
make: *** [linux-bin/qt-dab-0.998] Erreur 1
"qmake -v“在/usr/lib/x86_64-linux-gnu中给出了使用Qt版本5.2.1的QMake version 3.0。
此外,我还安装了qwt-6.1.3库。对此有解决方案吗?
我正在使用Ubuntu 14.04。我正在尝试安装一个需要cmake的程序。当我运行cmake src/时,我得到:
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
我做错了什么?
我想在Ubuntu14.04.2上安装PyQt5。下载并解压缩后,我运行python configure.py,因为它在前面的链接中提到过。但是,它要求我安装QT 5或更高版本。我做了什么。
当我回来运行上面的命令时,我会得到相同的错误:
begueradj@begueradj-hacker:~/Bureau/PyQt-gpl-5.4.1# python configure.py
Querying qmake about your Qt installation...
Error: PyQt5 requires Qt v5.0 or later. You seem to be using v
我目前正在尝试在Rails3.2应用程序上安装Capybara-Webkit。每次我尝试安装gem时,我都会得到以下输出。我在使用Debian不稳定。
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
/home/james/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
qmake: could not find a Qt installation of ''
Command 'qmake
我正在Linux上工作,我已经安装了Qt 2.5.2、Qt库4.7.4和4.4.3,这些都是从源代码中获得的。由于版本之间的不兼容性,我不能直接安装二进制文件。QT4.7.4和QT4.4.3的安装过程都是相同的。我面临的问题是Qt承认QT4.7.4,但没有QT4.4.3,这是错误的。
Qt版本无效:无法确定Qt安装的二进制文件的路径,可能路径是错误的。
每个库都安装在/home/$username/qt/Qt-$version中。当我手动编译一个项目时
cd directory
/home/$username/qt/Qt-4.4.3/qmake $PATHPRO
make
一切都很有魅
在我的Ubuntu16.04上,我安装了一些软件包(通过Synaptic),它们的QT版本为5.5.1。我所拥有的软件(例如TeXstudio)似乎需要它们。
但是作为一名开发人员,我尝试使用QT5.9.1,它是我从Qt网站下载的(比如)。但是当我运行qmake时,它运行的版本是错误的。如何选择要使用的版本?
$ qmake --version
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu
但我想要这个:
~/lib/Qt5.9.1/5.9.1/gcc_64/bin/qmake --version
Q
我觉得应该有一个简单的方法来做到这一点,但是我的googlefu失败了,所以我很想知道在做qmake时如何切换(甚至永久更改)使用Qt的哪个版本。如果我问哪个版本,我会得到以下内容:
~ $ qmake --version
QMake version 3.0
Using Qt version 5.0.1 in /usr/lib/x86_64-linux-gnu
我已经安装了QtCreator,但我不知道从这里到哪里。
在Ubuntu和
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 manu