在mac os x 10.9上构建webkit错误:找不到'WebKitSystemInterface.h'文件

时间:2014-02-25 15:53:13

标签: xcode macos webkit

当我尝试在mac os x 10.9(xcode 5.0.2)上构建webkit-r164553时,遇到以下构建错误:

  

/Users/justyn/develop/project/webkit/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm:33:9:   致命错误:' WebKitSystemInterface.h'找不到文件

我已在工作区设置中将产品和中间体位置设置为WebKitBuild。

有谁知道为什么会发生这个错误?

这是完整的日志:

  

CompileC   /Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/Objects-normal/x86_64/NetscapePluginHostManager.o   mac / Plugins / Hosted / NetscapePluginHostManager.mm正常x86_64   objective-c ++ com.apple.compilers.llvm.clang.1_0.compiler

     

cd / Users / justyn / develop / project / webkit / Source / WebKit

     

setenv LANG en_US.US-ASCII

     

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang   -x objective-c ++ -arch x86_64 -fmessage-length = 0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit = 0 -std = gnu ++ 11 -stdlib = libc ++ -fobjc-gc -Wno- trigraphs -fno-exceptions -fno-rtti -fpascal-strings -O0 -Werror -Wno-missing-field-initializers -Wmissing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-重复使用弱-Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno- unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion - Wint-conversion -Wbool-conversion -Wenum-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno- deprecated-implementation -Wno-c ++ 11-extensions -DDISABLE_THREAD_CHECK -DENABLE_WEBKIT_UNSET_DYLD_FRAMEWORK_PATH -DENABLE_3D_RENDERING -DENABLE_BLOB -DENABLE_CACHE_PARTITIONING -DENABLE_CANVAS_PATH -DENABLE_CHANNEL_MESSAGING -DENABLE_CSS_BOX_DECORATION_BREAK -DENABLE_CSS_COMPOSITING -DENABLE_CSS_EXCLUSIONS -DENABLE_CSS_FILTERS -DENABLE_CSS_REGIONS -DENABLE_CSS_SHAPES -DENABLE_CSS_SHAPE_INSIDE -DENABLE_CSS_STICKY_POSITION -DENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED -DENABLE_CURSOR_VISIBILITY -DENABLE_DASHBOARD_SUPPORT -DENABLE_DETAILS_ELEMENT -DENABLE_DOM4_EVENTS_CONSTRUCTOR -DENABLE_ENCRYPTED_MEDIA -DENABLE_ENCRYPTED_MEDIA_V2 -DENABLE_FILTERS -DENABLE_FULLSCREEN_API -DENABLE_GEOLOCATION -DENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING -DENABLE_ICONDATABASE -DENABLE_INDEXED_DATABASE -DENABLE_INDIE_UI -DENABLE_INPUT_TYPE_COLOR -DENABLE_INPUT_TYPE_COLOR_POPOVER -DENABLE_INSPECTOR -DENABLE_LEGACY_CSS_VENDOR_PREFIXES -DENABLE_LEGACY_NOTIFICATIONS -DENABLE_LEGACY_VENDOR_PREFIXES -DENABLE_LEGACY_WEB_AUDIO -DENABLE_MATHML -DENABLE_MEDIA_CONTROLS_SCRIPT -DENABLE_MEDIA_SOURCE -DENABLE_METER_ELEMENT -DENABLE_MO USE_CURSOR_SCALE -DENABLE_NOTIFICATIONS -DENABLE_PAGE_VISIBILITY_API -DENABLE_PDFKIT_PLUGIN -DENABLE_PROGRESS_ELEMENT -DENABLE_PROMISES -DENABLE_PUBLIC_SUFFIX_LIST -DENABLE_REQUEST_ANIMATION_FRAME -DENABLE_REMOTE_INSPECTOR -DENABLE_SHARED_WORKERS -DENABLE_SPEECH_SYNTHESIS -DENABLE_SQL_DATABASE -DENABLE_SUBPIXEL_LAYOUT -DENABLE_SUBTLE_CRYPTO -DENABLE_SVG_FONTS -DENABLE_TEMPLATE_ELEMENT -DENABLE_USERSELECT_ALL -DENABLE_VIDEO -DENABLE_VIDEO_TRACK -DENABLE_WEBGL -DENABLE_WEB_ANIMATIONS -DENABLE_WEB_AUDIO -DENABLE_WEB_SOCKETS -DENABLE_WORKERS -DENABLE_XHR_TIMEOUT - DENABLE_XSLT -DFRAMEWORK_NAME = WebKit -DWEBKIT_VERSION_MIN_REQUIRED = WEBKIT_VERSION_LATEST -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk   -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min = 10.9 -g -fvisibility-inlines-hidden -fno-threadsafe-statics -Wno-sign-conversion -I / Users /justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/WebKit.hmap   -I / Users / justyn / develop / project / webkit / WebKitBuild / Debug / include -I / Users / justyn / develop / project / webkit / WebKitBuild / Debug / usr / local / include   -I /用户/ justyn /开发/项目/ WebKit的/ WebKitBuild /调试/ WebCore.framework / PrivateHeaders / ForwardingHeaders   -I /用户/ justyn /开发/项目/ WebKit的/ WebKitBuild /调试/ WebCore.framework / PrivateHeaders / ICU   -I /用户/ justyn /开发/项目/ WebKit的/ WebKitBuild /调试/ DerivedSources / WebKit的   -I /用户/ justyn /开发/项目/ WebKit的/ WebKitBuild /调试的/ usr /本地/包括   -I /应用/ Xcode.app /内容/开发商/工具链/ XcodeDefault.xctoolchain / usr / include目录   -I /用户/ justyn /开发/项目/ WebKit的/ WebKitBuild / WebKit.build /调试/ WebKit.build / DerivedSources / x86_64的   -I /用户/ justyn /开发/项目/ WebKit的/ WebKitBuild / WebKit.build /调试/ WebKit.build / DerivedSources   -Wall -Wextra -Wchar-subscripts -Wextra-tokens -Wformat-security -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite -strings -Wexit-time-destructors -Wglobal-constructors -Wetutological-compare -Wimplicit-fallthrough -F / Users / justyn / develop / project / webkit / WebKitBuild / Debug -F / Applications / Xcode.app / Contents / Developer / Platforms /MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer /SDKs/MacOSX10.9.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks   -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Carbon.framework/Frameworks   -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Quartz.framework/Frameworks   -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks   -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/PrivateFrameworks   -include /Users/justyn/develop/project/webkit/WebKitBuild/PrecompiledHeaders/WebKitPrefix-aldduogwfpkmuvaozdblpomjxfqh/WebKitPrefix.h   -MMD -MT依赖项-MF /Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/Objects-normal/x86_64/NetscapePluginHostManager.d   --serialize-diagnostics /Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/Objects-normal/x86_64/NetscapePluginHostManager.dia   -c /Users/justyn/develop/project/webkit/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm   -o /Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/Objects-normal/x86_64/NetscapePluginHostManager.o

     

/Users/justyn/develop/project/webkit/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm:33:9:   致命错误:' WebKitSystemInterface.h'找不到文件

     

import" WebKitSystemInterface.h"

    ^
     

生成了1个错误。

1 个答案:

答案 0 :(得分:3)

我认为你指的是树干分支。奇怪的是,你检查过的修改版机器人是绿色的。请参阅Apple Mavericks DebugApple Mavericks Release

然而,经过一些调试后,我发现文件 WebKitSystemInterface.h 位于<webkit_root>/WebKitLibraries/WebKitSystemInterface.h。现在,在构建阶段,此文件将被复制到<webkit_root>/WebKitBuild/<Configuration>/usr/local/include/WebKitSystemInterface.h

我发现一个hack,手动将文件复制到目标文件夹会让你超过错误。如果您喜欢直到实际修复,或者对代码有更深入了解的人可以帮助您,您可以尝试。

让我知道它是否适合你。

谢谢!