编译与libWebKitSystemInterfaceMountainLion.a相关的webkit错误

时间:2013-09-12 14:02:18

标签: webkit

当我在我的macbook pro 10.8.2上构建WebKit时,遇到以下问题。发生什么事?非常感谢你。

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -dynamiclib -L/Users/pro/MyWork/WebKit/WebKitBuild/Debug -L/Users/pro/MyWork/WebKit/Source/WebKit/../../WebKitLibraries -F/Users/pro/MyWork/WebKit/WebKitBuild/Debug -F/System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks -F/System/Library/Frameworks/Carbon.framework/Frameworks -F/System/Library/Frameworks/Quartz.framework/Frameworks -F/System/Library/Frameworks/CoreServices.framework/Frameworks -F/System/Library/PrivateFrameworks -filelist /Users/pro/MyWork/WebKit/WebKitBuild/WebKit.build/Debug/WebKit.build/Objects-normal/x86_64/WebKit.LinkFileList -Xlinker --no-demangle -exported_symbols_list /Users/pro/MyWork/WebKit/WebKitBuild/Debug/DerivedSources/WebKit/WebKit.LP64.exp -install_name /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit -mmacosx-version-min=10.8 -dead_strip -licucore -framework JavaScriptCore -framework QuartzCore -framework WebCore -sub_umbrella WebCore -framework Carbon -framework Cocoa -framework DiskArbitration -framework IOKit -framework OpenGL -framework Security -lWebKitSystemInterfaceMountainLion -stdlib=libc++ -fobjc-link-runtime -framework WebCore -framework Security -framework QuartzCore -framework OpenGL -licucore -framework JavaScriptCore -framework IOKit -framework DiskArbitration -framework Cocoa -framework Carbon -single_module -compatibility_version 1 -current_version 538.1 -o /Users/pro/MyWork/WebKit/WebKitBuild/Debug/WebKit.framework/Versions/A/WebKit
Undefined symbols for architecture x86_64:
  "__kCFURLCachePartitionKey", referenced from:
      _WKCachePartitionKey in libWebKitSystemInterfaceMountainLion.a(WebKitSystemInterface.o)
  "__CFHostIsDomainTopLevel", referenced from:
      _WKIsPublicSuffix in libWebKitSystemInterfaceMountainLion.a(WebKitSystemInterface.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:0)

您可能拥有较旧的副本WebKitLibraries。尝试升级它们并再次尝试构建。 WebKitLibraries位于Webkit源的根目录中。您可以从主干复制它们或使用脚本(update-webkit-auxiliary-libs,update-webkit-support-libs)。

另外,请务必遵循webkit site上提到的构建说明。

希望它有所帮助。