[英]Project ERROR: Unknown module(s) in QT: quick
I get the above titled error when running qmake with a cloned github project. 在使用克隆的github项目运行qmake时,我得到了上面的标题错误。 Following is the project file. 以下是项目文件。
#-------------------------------------------------
#
# Project created by QtCreator 2013-01-18T22:28:41
#
#-------------------------------------------------
QT += core gui widgets webkitwidgets sql gui-private xml
TARGET = zeal
target.path = /usr/bin
INSTALLS = target
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
zeallistmodel.cpp \
zealsearchmodel.cpp \
zealdocsetsregistry.cpp \
zealsearchresult.cpp \
zealnativeeventfilter.cpp \
lineedit.cpp \
zealsearchitemdelegate.cpp \
zealsearchitemstyle.cpp \
zealsettingsdialog.cpp \
zealnetworkaccessmanager.cpp \
zealsearchquery.cpp \
progressitemdelegate.cpp
HEADERS += mainwindow.h \
zeallistmodel.h \
zealsearchmodel.h \
zealdocsetsregistry.h \
zealsearchresult.h \
zealnativeeventfilter.h \
lineedit.h \
zealsearchitemdelegate.h \
zealsearchitemstyle.h \
zealsettingsdialog.h \
xcb_keysym.h \
zealnetworkaccessmanager.h \
zealsearchquery.h \
progressitemdelegate.h
FORMS += mainwindow.ui \
zealsettingsdialog.ui
QMAKE_CXXFLAGS += -std=c++11
macx:DEFINES += OSX
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.7 -stdlib=libc+
macx:CONFIG += c++11
win32:DEFINES += WIN32 QUAZIP_BUILD
DEFINES += ZEAL_VERSION=\\\"20140110\\\"
LIBS += -lz
unix:!macx: LIBS += -lxcb -lxcb-keysyms
unix:!macx: SOURCES += xcb_keysym.cpp
unix:!macx: DEFINES += LINUX
icons.path=/usr/share/pixmaps/zeal
icons.files=icons/*
desktop.path=/usr/share/applications
desktop.files=zeal.desktop
unix:INSTALLS += icons desktop
include (widgets/widgets.pri)
include (quazip/quazip.pri)
Run qmake --version
to check the Qt version you are using. 运行qmake --version
以检查您正在使用的Qt版本。 You need Qt 5.0 or higher. 你需要Qt 5.0或更高版本。
You might want to double check the error message and maybe close other open projects, because zeal is not a QtQuick application. 您可能想要仔细检查错误消息并关闭其他打开的项目,因为zeal不是QtQuick应用程序。 It has no single occurrence of the string "quick" in the whole code (try git grep -i "quick"
) and no single QML file (try find . -name "*.qml"
). 在整个代码中没有单独出现字符串“quick”(尝试git grep -i "quick"
)而没有单个QML文件(尝试find . -name "*.qml"
)。 Thus it is unlikely to throw the given error. 因此不太可能抛出给定的错误。
Had same issue on lubuntu and Qt 5.2.1 (few more modules were unknown). 在lubuntu和Qt 5.2.1上有同样的问题(还有一些模块未知)。 I removed Qt configuration files from .config folder in my home dir. 我从家庭目录中的.config文件夹中删除了Qt配置文件。
rm -r ~.config/QtProject
rm ~.config/QtProject.conf
Reconfigure project again and all works as expected 重新配置项目,所有工作都按预期工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.