简体   繁体   English

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

[英]Build webkit error on mac os x 10.9: 'WebKitSystemInterface.h' file not found

When i try to build webkit-r164553 on mac os x 10.9 (xcode 5.0.2), I encounter the following build error: 当我尝试在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: fatal error: 'WebKitSystemInterface.h' file not found /Users/justyn/develop/project/webkit/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm:33:9:致命错误:找不到'WebKitSystemInterface.h'文件

I have set Products and Intermediates location to WebKitBuild in workspace settings. 我在工作区设置中将产品和中间体位置设置为WebKitBuild。

Does anyone know why this error happened? 有谁知道为什么会发生这个错误?

Here is the full log: 这是完整的日志:

CompileC /Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/Objects-normal/x86_64/NetscapePluginHostManager.o mac/Plugins/Hosted/NetscapePluginHostManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler 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 cd / Users / justyn / develop / project / webkit / Source / WebKit

setenv LANG en_US.US-ASCII 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-repeated-use-of-weak -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-implement /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-原型-Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -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-const-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-implement ations -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_M ations -Wno-C ++ 11的扩展-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_M ATHML -DENABLE_MEDIA_CONTROLS_SCRIPT -DENABLE_MEDIA_SOURCE -DENABLE_METER_ELEMENT -DENABLE_MOUSE_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 ATHML -DENABLE_MEDIA_CONTROLS_SCRIPT -DENABLE_MEDIA_SOURCE -DENABLE_METER_ELEMENT -DENABLE_MOUSE_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 -Wototocol -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/Users/justyn/develop/project/webkit/WebKitBuild/Debug/WebCore.framework/PrivateHeaders/ForwardingHeaders -I/Users/justyn/develop/project/webkit/WebKitBuild/Debug/WebCore.framework/PrivateHeaders/icu -I/Users/justyn/develop/project/webkit/WebKitBuild/Debug/DerivedSources/WebKit -I/Users/justyn/develop/project/webkit/WebKitBuild/Debug/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/DerivedSources/x86_64 -I/Users/justyn/develop/project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/DerivedSources -Wall -Wextra -Wchar-subscripts -Wextra-tokens -Wformat-security -W -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 / Users / justyn / develop / project / webkit / WebKitBuild / Debug / WebCore.framework / PrivateHeaders / ForwardingHeaders -I / Users / justyn / develop / project / webkit / WebKitBuild / Debug / WebCore.framework / PrivateHeaders / icu -I / Users / justyn / develop / project / webkit / WebKitBuild / Debug / DerivedSources / WebKit -I / Users / justyn / develop / project / webkit / WebKitBuild / Debug / usr / local / include -I / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / include -I / Users / justyn / develop /project/webkit/WebKitBuild/WebKit.build/Debug/WebKit.build/DerivedSources/x86_64 -I / Users / justyn / develop / project / webkit / WebKitBuild / WebKit.build / Debug / WebKit.build / DerivedSources -Wall -Wextra -Wchar-subscripts -Wextra-tokens -Wformat-security -W init-self -Wmissing-format-attribute -Wmissing-noreturn -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-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. init-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。框架/框架-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 dependencies -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 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 dependencies -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 /开发/项目/ WebKit的/ WebKitBuild / WebKit.build /调试/ WebKit.build /目标正常/ x86_64的/ NetscapePluginHostManager.o

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

import "WebKitSystemInterface.h" 导入“WebKitSystemInterface.h”

  ^ 

1 error generated. 生成1个错误。

I would assume you are referring to the trunk branch. 我假设你指的是树干分支。 The strange thing is that the bots are green for the revision you have checked out. 奇怪的是,你检查过的修改版机器人是绿色的。 See it at Apple Mavericks Debug or Apple Mavericks Release . Apple Mavericks DebugApple Mavericks Release上看到它。

However, after a bit of debugging, I found that the file WebKitSystemInterface.h is located in <webkit_root>/WebKitLibraries/WebKitSystemInterface.h . 但是,经过一些调试后,我发现文件WebKitSystemInterface.h位于<webkit_root>/WebKitLibraries/WebKitSystemInterface.h Now, during the build phase, this file gets copied over to <webkit_root>/WebKitBuild/<Configuration>/usr/local/include/WebKitSystemInterface.h 现在,在构建阶段,此文件将被复制到<webkit_root>/WebKitBuild/<Configuration>/usr/local/include/WebKitSystemInterface.h

I found a hack that copying over the file manually to the target folder gets you past the error. 我发现一个hack,手动将文件复制到目标文件夹会让你超过错误。 You can try it if you like till an actual fix lands in or someone having a deeper insight into the code helps you. 如果您喜欢直到实际修复,或者对代码有更深入了解的人可以帮助您,您可以尝试。

Let me know if it works for you or not. 如果它适合你,请告诉我。

Thanks ! 谢谢 !

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM