无法在OS X Leopard(10.5)下构建Qt 4.8

时间:2012-03-07 21:11:02

标签: qt

使用这些单独的配置:

./configure -platform macx-g++ -arch x86
./configure -platform macx-g++ -arch i386 -arch x86_64 -sdk /Developer/SDKs/MacOSX10.5.sdk -release

在OS X Leopard(10.5)下使用时,我在尝试制作QT 4.8时遇到以下构建错误:

/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50:
error: expected unqualified-id before ‘[’ token
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50:
error: abstract declarator ‘_CALayerTransaction*’ used as declaration
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50:
error: expected ‘;’ before ‘[’ token
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50:
error: expected unqualified-id before ‘[’ token
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50:
error: abstract declarator ‘_CALayerTransaction*’ used as declaration
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50:
error: expected ‘;’ before ‘[’ token
platform/graphics/mac/MediaPlayerPrivateQTKit.mm: In static member
function ‘static void
WebCore::MediaPlayerPrivateQTKit::getSitesInMediaCache(WTF::Vector<WTF::String,
0ul>&)’:
platform/graphics/mac/MediaPlayerPrivateQTKit.mm:1514: warning: Mac OS
X version 10.5 or later is needed for use of
foreach-collection-statement
lipo: can't open input file:
/var/folders/kW/kWtAUN43HtqED7ITylqlo++++TM/-Tmp-//ccbBnUJg.out (No
such file or directory)
make[2]: *** [.obj/release-shared/MediaPlayerPrivateQTKit.o] Error 1
make[1]: *** [sub-WebCore-make_default-ordered] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

我们非常欢迎您的想法。

1 个答案:

答案 0 :(得分:2)

这是Qt 4.8中的已知错误:https://bugreports.qt-project.org/browse/QTBUG-23258

您需要应用报告中包含的补丁或等待Qt修复它。