1. Install developer tools
    Follow steps in http://www.webkit.org/building/tools.html
    Installing Directx SDK if there is a S1023 error, refer this link http://support.microsoft.com/kb/2728613
    Installing php, do not change apt-cyg script
  2. Getting webkit source
    http://www.webkit.org/building/checkout.html
    recommend http://nightly.webkit.org/files/WebKit-SVN-source.tar.bz2,
  3. Building
    2 ways: run build-webkit –debug, or open solution in visual studio 2013
    recommend way2
  4. run webkit WinLauncher
    in fact, it is to load webkit in safari; install safari first, and set WinLauncher as startup project, press F5

    if 运行run-safari –debug后出现错误对话框:

     failed to determine path to aas directory

    解决:修改\WebKit\Tools\win\DLLLauncher\DLLLauncherMain.cpp中的常量pathPrefix 为:static const wstring pathPrefix = L"d:\\Program Files (x86)\\Safari\\Apple Application Support";

  5. run webkit TestWebKitAPI
    need to copy some dll files from Safari\Apple Application Support to bin32 dir
    image

  6. Sound that if we need to develope application with webkit, we can use webkitdotnet, or awesomium, or Chromium Embedded Framework (CEF)), instead of compiling the whole webkit source.
    or using http://docs.oracle.com/javafx/2/webview/jfxpub-webview.htm may be a choice.

  7. OK, let me try javafx/webview firstly.
    setting a cookie for a webview session. http://stackoverflow.com/questions/14385233/setting-a-cookie-using-javafxs-webengine-webview

Problems:

  1. http://blog.csdn.net/jordanxinwang/article/details/12229131
  2. http://blog.csdn.net/dangercheng/article/details/8128549
  3. http://blog.csdn.net/intimater/article/details/6596607
  4. http://blog.csdn.net/dreamkid/article/details/11859143
  5. may install File::Copy::Recursive module
  6. add d:\cygwin64\bin to PATH
  7. remove PYTHON related env var, for example PYTHONHOME
  8. Misc links
    https://community.oracle.com/thread/2319640?tstart=0 communication from webview to javafx scene
    https://www.perlscriptsjavascripts.com/js/cookies.html get/set cookies with javascripts
    http://answer.techwikihow.com/1167782/log-cookies-urlconnectionjavafx-webview.html sound that it does not work for logging cookies
    https://community.oracle.com/thread/2326092?start=0&tstart=0 turning on cookie
    http://download.java.net/jdk8/jfxdocs/javafx/scene/web/WebEngine.html WebEngine help
Advertisements