我对使用QT5的Qt Quick Components for Desktop有一些安装问题。QT5-安装用于桌面的Qt Quick Components
以下是我所遵循的步骤(基于these instructions):
从http://qt.gitorious.org/qt-components/desktop/trees/master下载tar.gz的,和解压的组件。
加入到环境变量
PATH
变量值(OS:Windows 8中)C:\Qt\Qt5.3.1\5.3\msvc2012_opengl\bin;C:\Qt\Qt5.3.1\Tools\QtCreator\bin;
运行
vcvars32.bat
脚本(的Visual Studio 2012)。运行命令:
qmake && nmake install
在\qt-components-desktop\components
文件夹中。运行命令:
qmake && nmake install
在\qt-components-desktop\src
文件夹中。该命令已自动将已编译的组件文件复制到QT导入文件夹。
在步骤,我得到了这些错误:
fatal error C1083: Cannot open include file: 'QtGui/qmenu.h': No such file or directory
fatal error C1083: Cannot open include file: 'QtGui/qmenu.h': No such file or directory
fatal error C1083: Cannot open include file: 'QtGui/qgraphicsitem.h': No such file or directory
fatal error C1083: Cannot open include file: 'QtGui/QStyle': No such file or directory
.\qdeclarativefolderlistmodel.cpp(162) : error C3861: 'setRoleNames': identifier not found
fatal error C1083: Cannot open include file: 'QtGui/QStyle': No such file or directory
fatal error C1083: Cannot open include file: 'QtGui/qgraphicssceneevent.h': No such file or directory
fatal error C1083: Cannot open include file: 'QtGui/QAction': No such file or directory
fatal error C1083: Cannot open include file: 'QtGui/QApplication': No such file or directory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2' Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2' Stop.
据我所知,在发生这些错误,因为源代码是QT4,这其中就包括减速(如QtGui/QApplication
)没有在QT5中存在时间更长。
我google了很多,但我找不到如何下载QT5的插件,如QT4的http://qt.gitorious.org/qt-components/desktop/trees/master。
有什么想法?或者也许还有另一个我错过的问题?