Changes between Version 19 and Version 20 of BuildingCairoOnWindows
- Timestamp:
- Jun 13, 2013, 8:57:33 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingCairoOnWindows
v19 v20 18 18 == Building from within Visual Studio == 19 19 WebKit can be built from within Visual Studio by setting two environment variables: 20 * {{{WEBKIT OUTPUTDIR}}} - An absolute Windows-style path pointing to the directory where you want the build products to go.21 * {{{WEBKIT LIBRARIESDIR}}} - An absolute Windows-style path pointing to the WebKitLibraries/win folder in your WebKit checkout.20 * {{{WEBKIT_OUTPUTDIR}}} - An absolute Windows-style path pointing to the directory where you want the build products to go. 21 * {{{WEBKIT_LIBRARIES}}} - An absolute Windows-style path pointing to the WebKitLibraries/win folder in your WebKit checkout. 22 22 23 23 == Common Build Errors == 24 24 === Error spawning cmd.exe === 25 Sometimes, Visual Studio complains that it 'cannot spawn cmd.exe'. Should this happen, check if both your Cygwin\bin folder and c:\windows\sytem32are both in the Visual Studio list of executable files (Tools -> Options -> VC++ Directories).25 Sometimes, Visual Studio complains that it 'cannot spawn cmd.exe'. Should this happen, check if both your `Cygwin\bin` folder and `c:\windows\sytem32` are both in the Visual Studio list of executable files (Tools -> Options -> VC++ Directories). 26 26 27 27 === Bad line endings === 28 When you see errors in WebCore/css/makeprops or WebCore/css/maketokenizer, open those files in a suitable editor (SciTE works) and convert the line endings to LF only (Unix-style). Then restart the build.28 When you see errors in `WebCore/css/makeprops` or `WebCore/css/maketokenizer`, open those files in a suitable editor (SciTE works) and convert the line endings to LF only (Unix-style). You can also use the `dos2unix` command from the Cygwin shell. Then restart the build. 29 29 30 30 === Missing Autogenerated Files === 31 If you have the Visual Studio IDE open while you are performing an {{{update-webkit}}}, you can sometimes run into a strange problem where Visual Studio is unable to locate the autogenerated files. These files are usually things like HTMLNames.cpp, which are generated by Perl as part of the WebCoreGenerated target.31 If you have the Visual Studio IDE open while you are performing an {{{update-webkit}}}, you can sometimes run into a strange problem where Visual Studio is unable to locate the autogenerated files. These files are usually things like `HTMLNames.cpp`, which are generated by Perl as part of the WebCoreGenerated target. 32 32 33 33 The best way to resolve this is to exit from the IDE, then relaunch. This usually fixes the problem, though you may wish to clean and rebuild the JavaScriptCoreGenerated and WebCoreGenerated projects. … … 37 37 {{{ 38 38 webkitpy.common.system.autoinstall: INFO Auto-installing package: eliza.py 39 webkitpy.common.system.autoinstall: INFO From: "http://www.adambarth.com 40 /webkit/eliza" 41 webkitpy.common.system.autoinstall: INFO To: "/cygdrive/e/Projects/Web 42 Kit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/eliza.py" 39 webkitpy.common.system.autoinstall: INFO From: "http://www.adambarth.com/webkit/eliza" 40 webkitpy.common.system.autoinstall: INFO To: "/cygdrive/e/Projects/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/eliza.py" 43 41 Traceback (most recent call last): 44 File "/cygdrive/e/Projects/WebKit/Tools/Scripts/test-webkitpy", line 266, in < 45 module> 42 File "/cygdrive/e/Projects/WebKit/Tools/Scripts/test-webkitpy", line 266, in <module> 46 43 Tester().run_tests(sys.argv, external_package_paths) 47 44 File "/cygdrive/e/Projects/WebKit/Tools/Scripts/webkitpy/test/main.py", line 1 … … 59 56 == Running the tests == 60 57 After successfully building WebKit, in order to run the tests you need to: 61 1. copy the DLLs from C:\Program Files\Safari\ into your WebKitBuild\bin folder, otherwise {{{jsc}}} won't run properly. When you are doing this, be careful not to overwrite the WebKit.dll file in WebKitBuild\bin with the one in C:\Program Files\Safari. (If you use the DOS copy command, it will ask you before overwriting.)58 1. copy the DLLs from `%WEBKIT_LIBRARIES%\bin32\` into your build output folder, otherwise {{{jsc}}} won't run properly. 62 59 1. Make sure the Cairo, JPEG, and PNG libraries are either in this directory, or in your PATH. 63 64 Note: Safari will most likely not work, as various methods needed for Safari may not be implemented. I am only aware of WinLauncher working with Cairo-based WebKit at this time.