Building webkit - LemontechSA/TideSDK GitHub Wiki
Building WebKit
Currently, WebKit is the core component for TideSDK. It is where the HTML is interpreted and displayed.
WinCairo (Webkit on Windows)
Visual Studio 2005
- To be able to compile on Windows, you can follow the next tutorial
- From Sept 2011: http://blog.ashodnakashian.com/2011/09/building-webkit-on-windows/
- Some important notes:
- On Windows 7 I had to follow the steps to make the rebaseall on cygwin as described on http://www.webkit.org/building/tools.html, please note that the ash shell has to be run from _cmd _(not from cygwin).
- The code i downloaded was directly from http://nightly.webkit.org/ inside Source section. (22MB)
- I had to modify print-vse-failure-logs (inside Tools/Scripts) line 60,
sln_path = os.path.join(**scm.find_checkout_root()**, "WebKit", "win", "WebKit.vproj", "WebKit.sln")
I replaced the scm.find_checkout_root() with "c:/cygwin/home/user/webkit/Source" (quotes included and forward slash intended).
-
I compiled first the apple windows port, and then the wincairo port.
-
Also I installed Safari and copied the dlls from C:\Program Files (x86)\Safari\Apple Application Support and C:\Program Files (x86)\Safari\ to C:\cygwin\home_user_\webkit\WebKitBuild\Release_Cairo_CFLite\bin (without overriding webkit.dll and other dlls)
-
To test the compilation, I added a registry like this picture http://www.cnblogs.com/xyz2abc/archive/2012/04/09/2438913.html
-
To test the compilation i run WinLauncher app inside C:\cygwin\home_user_\webkit\WebKitBuild\Release_Cairo_CFLite\bin
-
Also I tested CallJS https://github.com/bfulgham/CallJS. I used the vcproj inside the CallJS folder to compile. It generated a Debug on CallJS debug (!! this folder was added on the parent folder from the vcproj !!) copied all the files there to C:\cygwin\home_user_\webkit\WebKitBuild\Release_Cairo_CFLite\bin and then run the CallJS.exe
-
Other useful pages are:
- http://www.webkit.org/building/tools.html
- siphon9.net/loune/2009/07/compiling-webkitcairo-on-windows-with-visual-c-express/
- http://trac.webkit.org/wiki/BuildingCairoOnWindows
- http://trac.webkit.org/wiki/BuildingOnWindows
- https://github.com/webkitdotnet/webkitdotnet/wiki/Building-WebKit.NET-with-Visual-Studio-2008-Express%3A-A-Visual-Step-By-Step-Guide
- http://peterdn.com/post/Summer-of-WebKit-Part-1.aspx
- http://whtconstruct.blogspot.mx/
- How to: Use Visual C++ Express Edition with the Microsoft Platform SDK
Visual Studio 2010 (not yet tested)
- This are some useful links we will be trying for compiling wincairo and VS 2010
- http://blog.ashodnakashian.com/2012/01/building-webkit-on-windows-7-with-vs2010/
- Patch for using vs2010 on WebKit: http://whtconstruct.blogspot.mx/2012/06/updates-galore-after-extremely-long.html
Building WebKitGTK+
- Follow instructions on http://trac.webkit.org/wiki/BuildingGtk
- Install following packages on top of the list given in above link
sudo apt-get install libxtst-dev gtk-doc-tools