As a follow-up to yesterday's irked post. This post is largely for myself in case I wind up getting these or similar errors again and can't remember what I did.
Context: I'm hoping to use WebKit to try out some research ideas. It builds fine using the build-webkit script provided, but balks when I try to build it in XCode.
If you're getting a pile of errors when building WebKitCore (e.g. following the instructions here) that are all about JavaScriptCore/Platform.h, then the problem is just that you need to build JavaScriptCore first. And make sure that you've got the BuildOutput set to be in WebKit/WebKitBuild for both, or they won't see each other.
Also, this seems like a nice summary of the cleanup steps if you're trying to make sure you're not using any old files.
It's still not building perfectly for me, but I'm not getting 10k errors anymore so clearly I'm getting closer to having this working. ;) Of course, I've also discovered the
The biggest problem with webkit other than my current build errors is that a full build takes an hour. That's a lot of time to kill while my code's compiling. And I'm so used to working with web code/scripts that I'm not used to optimizing my time while the compiles happen! I've already caught up on my email, folded the laundry, had a shower... and now I'm blogging while I try to let WebCore finish and see if it gets more than the 4 errors it's already got.
Context: I'm hoping to use WebKit to try out some research ideas. It builds fine using the build-webkit script provided, but balks when I try to build it in XCode.
If you're getting a pile of errors when building WebKitCore (e.g. following the instructions here) that are all about JavaScriptCore/Platform.h, then the problem is just that you need to build JavaScriptCore first. And make sure that you've got the BuildOutput set to be in WebKit/WebKitBuild for both, or they won't see each other.
Also, this seems like a nice summary of the cleanup steps if you're trying to make sure you're not using any old files.
It's still not building perfectly for me, but I'm not getting 10k errors anymore so clearly I'm getting closer to having this working. ;) Of course, I've also discovered the
WebKitTools/Scripts/debug-safari
script which runs it in gdb, so I probably don't need to be doing this anymore to have a debugger, but now I figure it's a halfway decent learning experience.The biggest problem with webkit other than my current build errors is that a full build takes an hour. That's a lot of time to kill while my code's compiling. And I'm so used to working with web code/scripts that I'm not used to optimizing my time while the compiles happen! I've already caught up on my email, folded the laundry, had a shower... and now I'm blogging while I try to let WebCore finish and see if it gets more than the 4 errors it's already got.