0

当我在我的 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)
4

1 回答 1

0

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

另外,请记住遵循webkit 站点上提到的构建说明。

希望能帮助到你。

于 2014-02-27T23:42:37.937 回答