[webkit-dev] JavaScriptCore in Windows Applications

Brent Fulgham bfulgham at gmail.com
Tue Jun 23 21:15:39 PDT 2009

Hi Eric,

Let me try to answer your last few questions in order.  Unfortunately,  
I'm on vacation this week and don't have my Windows machine available,  
otherwise I would have tried to get you the DLLs you asked for.

1.  You *should* be able to mix/match the CFLite.lib and DLL from the  
CallJS example and the files in the Release and Debug WebKit zipfiles  
on my iDisk.  I generated them at the same time (or around the same  
day) trying to get them in sync, so they should be compatible.

2.  The build errors you are seeing are because there are a few things  
missing from the WebKit SVN repository.  These are packaged up in a  
ever-shrinking patch attached to https://bugs.webkit.org/show_bug.cgi?id=17484 
.  Currently it patches the WebView.cpp file to exclude some printing  
logic that I have not ported to Cairo yet, and it modifies the WebCore/ 
config.h file to instruct the Windows build includes to use the Cairo/ 
cURL support, rather than the CG/CFNetwork stuff.

3.  The following error looks like it's building the "Debug" target,  
rather than the "Debug_Cairo" target, as the FrameCGWin.cpp file is  
not part of the files in the Cairo build manifest (and neither are the  
CFNetwork-based files):

> FrameCGWin.cpp
> ..\page\win\FrameCGWin.cpp(69) : error C2664:
> 'WebCore::GraphicsContext::GraphicsContext(PlatformGraphicsContext  
> *)' :
> cannot convert parameter 1 from 'CGContextRef' to  
> 'PlatformGraphicsContext
> *'
>        Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> FrameWin.cpp
> PageWin.cpp


> ResourceLoaderCFNet.cpp
> ..\loader\cf\ResourceLoaderCFNet.cpp(34) : error C2039:
> 'shouldCacheResponse' : is not a member of 'WebCore::ResourceLoader'
>        c:\cygwin\home\ericbrunstad\WebKit\WebCore\loader 
> \ResourceLoader.h(50)
> : see declaration of 'WebCore::ResourceLoader'

I unfortunately don't have a license for Windows to run on my laptop  
(MacBookPro), so I am somewhat limited in what I can do remotely at  
the moment.

Please make sure you are selecting the "Debug_Cairo" or  
"Release_Cairo" build target in Visual Studio, or that you are  
building with the command line flag "--cairo-win32" if you are using  



More information about the webkit-dev mailing list