【问题标题】:Failed to build qt5.2.1 static with MSVC 2010 x86无法使用 MSVC 2010 x86 构建 qt5.2.1 静态
【发布时间】:2014-06-09 21:45:12
【问题描述】:

我有 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.

我能做些什么来解决这个问题?

【问题讨论】:

  • 不要编译示例:)

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


【解决方案1】:

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

CONFIG += qt_example_installs
CONFIG += warning_clean

在那之后,编译继续进行——当然没有示例。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-08-01
    • 2021-11-12
    • 1970-01-01
    • 1970-01-01
    • 2012-07-09
    • 2015-12-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多