我有 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.
我可以做什么来解决这个问题?
最佳答案
以防万一有人遇到同样的问题,不编译示例将不起作用,尽管这似乎是一个明显的解决方案。在比较 qtwinextras 和另一个模块目录中的 .qmake.conf 后,我将以下行添加到 .qmake.conf 中(似乎该模块的配置存在错误):
CONFIG += qt_example_installs
CONFIG += warning_clean
之后,编译进展顺利——当然没有示例。
关于qt - 无法使用 MSVC 2010 x86 构建 qt5.2.1 静态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23271746/