无法使用MSVC 2010 x86构建qt5.2.1静态

时间:2014-04-24 14:24:49

标签: qt windows-7 static-libraries qt5 visual-studio-2010

我有Win 7 x64,我正在尝试从源winth MSVC 2010 x86构建静态qt5.2.1。 问题是

Generating Code...
        link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "
/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture
='*'" /MANIFEST /MANIFESTFILE:release\musicplayer.exe.embed.manifest /OUT:releas
e\musicplayer.exe @C:\Users\AuST\AppData\Local\Temp\nm7949.tmp
   Creating library release\musicplayer.lib and object release\musicplayer.exp
        mt.exe /nologo /manifest release\musicplayer.exe.embed.manifest /outputr
esource:release\musicplayer.exe;1
        cd quickplayer\ && ( if not exist Makefile E:\Lib\qt521static\qtbase\bin
\qmake E:\Lib\qt521static\qtwinextras\examples\winextras\quickplayer\quickplayer
.pro -o Makefile ) && "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BI
N\nmake.exe" -f Makefile
Project ERROR: Plugin qml_winextras is missing a classname entry, please add one
 to the qmldir file.
NMAKE : fatal error U1077: 'cd' : return code '0x3'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

我该怎么做才能解决这个问题?

1 个答案:

答案 0 :(得分:2)

万一有人遇到同样的问题,不编译示例就行不通,虽然这似乎是一个明显的解决方案。在qtwinextras和另一个模块的目录中比较.qmake.conf之后,我在.qmake.conf中添加了以下行(看起来这个模块的配置存在错误):

CONFIG += qt_example_installs
CONFIG += warning_clean

之后,编译工作进展顺利 - 当然没有例子。