[webkit-help] no WebKit2.h

Yanke (Yon) Hu huyanke at gmail.com
Fri Sep 23 12:36:37 PDT 2011

Thank you, Adam,

Now what I am hoping to do is:

Since I already have all dlls I need(WebKit.dll from nightly build,
CoreFoundation.dll, etc from safari). And I also have Project sln file from
nightly source.

I want to solely build MiniBrowser.exe, so that I can get familiar with
Webkit API, and do some modifications (Build every thing cost too long

You said I need to build WebKit2 first.    I built WebKit , and see
\WebKitBuild\Release have  4 folders: include, lib, obj, bin (include folder
has WebKit2\WebKit2.h as you mentioned, and bin folder has things similar to
nightly build)

I guess what I need is just \WebKitBuild\Release\include (header files) ,
and dlls(I use dlls in directory of   \Common Files\Apple\Apple Application
Support for convenience)

I open the WebKit.sln in  Source\WebKit\Win\WebKit.vcproj,

I only care about MiniBrowser project, right click it, choose  Properties.
 In Configuration Properties->C/C++->General->Additional Include
Directories, I add :  \WebKitBuild\Release\include (header files)

In  In Configuration Properties->Linker->General->Additional Library
Directories , I add the position of \Common Files\Apple\Apple Application

Then I rebuild only MiniBrowser,

It shows some error message like:

1>Deleting intermediate and output files for project 'MiniBrowser',
configuration 'Debug_All|Win32'
1>Performing Pre-Build Event...
1>cygwin warning:
1>  MS-DOS style path detected: \Debug_All\buildfailed
1>  Preferred POSIX equivalent is: /cygdrive/c/Debug_All/buildfailed
1>  CYGWIN environment variable option "nodosfilewarning" turns off this
1>  Consult the user's guide for more details about POSIX paths:
1>    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
1>Project : error PRJ0002 : Error result 1 returned from
1>Project : warning PRJ0018 : The following environment variables were not
1>Build log was saved at "file://c:\Debug_All\obj\MiniBrowser\BuildLog.htm"
1>MiniBrowser - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Do you think if there is a way I can solely build MiniBrowser? Assume I
already build everything beforehand.

 I think building everything once is fine, but I don't want to build
everything every time even when I made a little change for a single
project(like Minibrowser).

Thanks very much,  and have a great day!!


On Fri, Sep 23, 2011 at 3:26 AM, Adam Roben <aroben at apple.com> wrote:

> On Sep 22, 2011, at 5:05 PM, Yanke (Yon) Hu wrote:
> > Another question is, I see minibrowser.exe is also in nightly build. If I
> solely want to run it, can I just put minibrowser.exe in the directory of
> \Common Files\Apple\Apple Application Support ?
> >
> > That directory is due to installing Safari, and it provide bunch of dlls
> required by MiniBrowser.exe ?
> Sure, you can do that, but it means it will be using whatever WebKit came
> with the version of Safari you have installed, not whatever version of
> WebKit came in the nightly build (unless you copy over WebKit.dll and
> JavaScriptCore.dll, too).
> > Previously, I thought I can just put MiniBrowser.exe into that directory,
> and it will run. But after I did that, it shows
> >
> > "The application has failed to start because its side-by-side
> configuration is incorrect. Please see the application event log or use the
> command-line sxstrace.exe tool for more details".
> Instructions for fixing this error can be found here:
> https://bugs.webkit.org/show_bug.cgi?id=68406#c10
> -Adam


Yanke Hu
phone: (469) 644-8799
email: huyanke at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20110923/a3d9a2b6/attachment-0001.html>

More information about the webkit-help mailing list