2
使用這些不同的配置:不能建立的Qt 4.8下OS X Leopard的(10.5)
./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
想法是最受歡迎的。
該錯誤指10.6(Snow Leopard)下的建築物。我試圖在10.5(Leopard)上構建。謝謝。 – JasonGenX 2012-03-08 17:15:27
這是重要的SDK。 – 2012-03-08 18:26:17
謝謝。會試一試。 – JasonGenX 2012-03-09 15:41:27