我想编译并运行qtify项目,以查看使用桌面组件的后续示例。本项目使用:
import QtQuick 2.0 // I must have Qt 5 or later
import QtDesktop 1.0 // I search an extension which compile with Qt 5.1
我刚刚安装了Qt 5.1。我想安装一个兼容版本的"Qt-desktop-components",支持QtDesktop 1.0。我的QtCreator版本是2.7.0。我试图安装这个版本的qtdesktopcomponent,但当我编译:
`qmake && nmake install`
我得到了这个错误:(这个命令在Visual Studio命令提示符(2010)中使用)
C:UsersLucioleDownloadsdesktop-componentqtquickcontrols>qmake && nmake
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
"c:Program Files (x86)Microsoft Visual Studio 10.0VCBINnmake.exe" -
f Makefile.Debug
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -DUNIC
ODE -DWIN32 -DQT_NO_EXCEPTIONS -DQT_GUI_LIB -DQT_CORE_LIB -I"." -I"C:UsersLuci
oleDownloadsqt-everywhere-opensource-src-5.1.0-alphaqtbaseinclude" -I"C:Use
rsLucioleDownloadsqt-everywhere-opensource-src-5.1.0-alphaqtbaseincludeQtG
ui" -I"C:UsersLucioleDownloadsqt-everywhere-opensource-src-5.1.0-alphaqtbas
eincludeQtCore" -I".mocdebug_shared" -I"C:UsersLucioleDownloadsqt-everywh
ere-opensource-src-5.1.0-alphaqtbasemkspecswin32-msvc2010" -Fo.objdebug_shar
ed @C:UsersLucioleAppDataLocalTempnm54D2.tmp
main.cpp
toolsqmlwidgetmain.cpp(43) : fatal error C1083: Cannot open include file: 'QtQ
ml': No such file or directory
NMAKE : fatal error U1077: '"c:Program Files (x86)Microsoft Visual Studio 10.0
VCBINcl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:Program Files (x86)Microsoft Visual Studio 10.0
VCBINnmake.exe"' : return code '0x2'
Stop.
my PATH的值为:
C:UsersLucioleDownloadsqt-everywhere-opensource-src-5.1.0-alphaqtbaseqmake;C:UsersLucioleDownloadsqt-everywhere-opensource-src-5.1.0-alphaqtbasebin;C:Qtqtcreator 2.7.0bin;C:Gitcmd;C:Python27;C:Ruby200;C:Perl64sitebin;C:Perl64bin;
并且我已经验证:我的Qt.5.1中没有"QtQml.h"。α安装。你觉得这个怎么样?你能帮我解决这个bug吗,或者你能告诉我使用哪个版本的Qt和qtdesktopcomponent吗?(请附上资料库的连结)
请参考此链接,您不需要安装Qt Desktop,它包含在包中。名称已由Qt Desktop Components
改为Qt Quick Controls
文档快照可以从这里找到