当我在我的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)发布于 2014-02-28 07:42:38
您可能有一个较旧的副本WebKitLibraries。尝试升级它们,然后再次尝试构建。WebKitLibraries位于Webkit源代码的根目录下。您可以从主干复制它们,也可以使用脚本(update-webkit-auxiliary libs,update-webkit-support-libs)。
此外,一定要记住遵循webkit site上提到的构建说明。
希望能有所帮助。
https://stackoverflow.com/questions/18766411
复制相似问题