<div dir="ltr">Hi Alex,<div><br></div><div>To follow-up on the build problem I was having with DumpRenderTree, I&#39;ve raised a bug and attached a patch which fixes this:</div><div><br></div><div><a href="https://bugs.webkit.org/show_bug.cgi?id=151013">https://bugs.webkit.org/show_bug.cgi?id=151013</a><br></div><div><br></div><div>Thanks,</div><div>Isaac</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 November 2015 at 14:01, Isaac Devine <span dir="ltr">&lt;<a href="mailto:isaac@devinesystems.co.nz" target="_blank">isaac@devinesystems.co.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Alex,<div><br></div><div><div>Thanks for your help and the link, I have made more progress with those instructions.</div><div><br></div><div>The update-webkit-wincairo-libs calls update-webkit-dependency, which looks it requests</div><div>a file called WinCairoRequirements.headers so that it can check the last-modified time.</div><div>I&#39;m not familiar with perl, so I could be mistaken here.</div><div><br></div><div>If I do as you suggest and download and extract it manually (and comment out the check from update-webkit-wincairo-libs) the build proceeds, as I&#39;ve documented below:</div><div><br></div><div>When I call perl build-webkit --wincairo --release from the windows command prompt, I get an error alert dialog appear with the following text:</div><div>---------------------------</div><div>cl.exe - System Error</div><div>---------------------------</div><div>The program can&#39;t start because mspdb140.dll is missing from your computer. Try reinstalling the program to fix this problem. </div><div>---------------------------</div><div>OK   </div><div>---------------------------</div><div><br></div><div><br></div><div>When I click ok the build continues.</div><div><br></div><div>After some time it then fails when building the dumprendertree project, complaining about a missing win-cairo.h, however it does exist under Webkit\WebkitLibraries\win\include\cairo.</div><div>From WebKitBuild\Release\webkit_errors.log:</div><div><br></div><div>C:\work\WebKit\Tools\DumpRenderTree\cairo\PixelDumpSupportCairo.h(38): fatal error C1083: Cannot open include file: &#39;cairo-win32.h&#39;: No such file or directory (compiling source file C:\work\WebKit\Tools\DumpRenderTree\PixelDumpSupport.cpp) [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\DumpRenderTreeLib.vcxproj]</div><div>C:\work\WebKit\Tools\DumpRenderTree\cairo\PixelDumpSupportCairo.h(38): fatal error C1083: Cannot open include file: &#39;cairo-win32.h&#39;: No such file or directory (compiling source file C:\work\WebKit\Tools\DumpRenderTree\win\PixelDumpSupportWin.cpp) [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\DumpRenderTreeLib.vcxproj]</div><div>c:\work\webkit\tools\dumprendertree\cairo\PixelDumpSupportCairo.h(38): fatal error C1083: Cannot open include file: &#39;cairo-win32.h&#39;: No such file or directory (compiling source file C:\work\WebKit\Tools\DumpRenderTree\cairo\PixelDumpSupportCairo.cpp) [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\DumpRenderTreeLib.vcxproj]</div><div>C:\work\WebKit\Tools\DumpRenderTree\win\ImageDiffCairo.cpp(32): fatal error C1083: Cannot open include file: &#39;cairo.h&#39;: No such file or directory [C:\work\WebKit\WebKitBuild\Release\Tools\DumpRenderTree\ImageDiffLib.vcxproj]</div><div><br></div><div>I tried running build-webkit again, and it fails with the &quot;missing win-cairo.h&quot; error still.</div><div><br></div><div>Another point is that the &quot;build failed&quot; message suggests looking into WebKitBuild/obj/&lt;project&gt;/&lt;config&gt; but I don&#39;t have a WebKitBuild/obj directory.</div><div><br></div><div>Is build-webkit still the correct build script to run? Or should I be using cmake directly?</div><div><br></div><div>Thanks,</div><div>Isaac</div></div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On 7 November 2015 at 08:58, Alex Christensen <span dir="ltr">&lt;<a href="mailto:achristensen@apple.com" target="_blank">achristensen@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Sorry about that.  We really need to update <a href="http://webkit.org/building/tools.html" target="_blank">webkit.org/building/tools.html</a> <div><a href="http://trac.webkit.org/wiki/WindowsWithoutCygwin" target="_blank">http://trac.webkit.org/wiki/WindowsWithoutCygwin</a> should be more up to date.  You shouldn’t need the old version of the DirectX SDK any more, and you shouldn’t need iTunes installed for WinCairo to build and run.  You will need CMake, though, which isn’t on that list yet.  Source/WebKit/WebKit.vcxproj/WebKit.sln is out of date and will be removed soon.  You will need to use CMake to generate a Visual Studio solution.</div><div>I’ve never used the cygwin64 installer, and I’m not sure what problems you may run into when using that.  It might work fine, but you shouldn’t need cygwin installed at all to build and run if you have the non-cygwin version of all the tools installed.</div><div>You shouldn’t need the WEBKIT_LIBRARIES or WEBKIT_OUTPUTDIR environment variables, either.</div><div>I’m not sure what WinCairoRequirements.headers are, but WinCairoRequirements.zip is required.  If you’re having trouble downloading it, piece together the url from Tools/Scripts/update-webkit-wincairo-libs and put the contents of the zip into WebKitLibraries/win.  That will make it so it can find the unicode and other headers.</div><div><br></div><div>Alex</div><div><br><div><blockquote type="cite"><div><div><div>On Nov 5, 2015, at 9:32 PM, Isaac Devine &lt;<a href="mailto:isaac@devinesystems.co.nz" target="_blank">isaac@devinesystems.co.nz</a>&gt; wrote:</div><br></div></div><div><div><div><div dir="ltr">Hi,<div><br></div><div>I&#39;m trying to build the wincairo webkit port with Visual Studio 2015 (community edition) by following the instructions on:</div><div><br></div><div> * <a href="http://www.webkit.org/building/tools.html" target="_blank">http://www.webkit.org/building/tools.html</a><br></div><div> * <a href="http://trac.webkit.org/wiki/BuildingOnWindows#WebKit_Libraries" target="_blank">http://trac.webkit.org/wiki/BuildingOnWindows#WebKit_Libraries</a><br></div><div> * <a href="http://trac.webkit.org/wiki/BuildingCairoOnWindows" target="_blank">http://trac.webkit.org/wiki/BuildingCairoOnWindows</a><br></div><div><div><br></div><div>However I was unsuccessful in using the supplied cygwin installer and instead used the cygwin64 installer from <a href="http://cygwin.org/" target="_blank">cygwin.org</a></div><div><br></div><div>After installing all of the dependencies, when I try to build with:</div><div><br></div><div><br></div><div>However when I try to build (from the cygwin prompt) via:</div><div>$ PROGRAMFILES=&quot;C:<a>\\Program</a> Files (x86)&quot; Tools/Scripts/build-webkit --wincairo --release</div><div><br></div><div>It is unable to download the WinCairoRequirements.headers file (even though it can download the WinCairoRequirements.zip).</div><div><br></div><div>If I manually change this so that it extracts the zip regardless I can continue the build.</div><div><br></div><div>Also it seems to ignore the windows-style paths I have set in WEBKIT_OUTPUTDIR and WEBKIT_LIBRARIES and instead has them as &quot;/WebkitBuild&quot; and &quot;/WebkitLibraries/win&quot; in unix style; which corresponds to &quot;C:\cygwin64\WebkitBuild&quot; &amp; &quot;C:\cygwin64\WebkitLibraries&quot; respectively. </div><div><br></div><div>The build output seems to go to a mix of C:\cygwin64\WebkitBuild and C:\cygwin64\home\isaac\WebKit\WebkitBuild.</div><div><br></div><div>The build eventually fails by WTL not finding unicode\uchar.h in the include directories, e.g.:</div><div><br></div><div>C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf/text/ASCIIFastPath.h(26): fatal error C1083: Cannot open include file: &#39;unicode/utypes.h&#39;: No such file or directory (compiling source file C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\Assertions.cpp) [C:\cygwin64\home\isaac\WebKit\WebKitBuild\Release\Source\WTF\wtf\WTF.vcxproj]<br></div><div><br></div><div>Looking into the generated project files the additional include directories are (if I have not defined WEBKIT_OUTPUTDIR or WEBKIT_LIBRARIES): </div><div>&lt;AdditionalIncludeDirectories&gt;C:\cygwin64\WebKitBuild\Release\DerivedSources\ForwardingHeaders;C:\cygwin64\WebKitBuild\Release\DerivedSources;\WebKitLibraries\win\include;C:\cygwin64\home\isaac\WebKit\Source\bmalloc;C:\cygwin64\home\isaac\WebKit\Source\WTF;C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf;C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\dtoa;C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\text;C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\threads;C:\cygwin64\home\isaac\WebKit\Source\WTF\wtf\unicode;C:\cygwin64\home\isaac\WebKit\Source\ThirdParty;C:\cygwin64\WebKitBuild\Release;%(AdditionalIncludeDirectories)&lt;/AdditionalIncludeDirectories&gt;<br></div><div><br></div><div>If do have WEBKIT_OUTPUTDIR and WEBKIT_LIBRARIES defined:</div><div><br></div><div>The directories aren&#39;t specified correctly, i.e:</div><div>&quot;\WebkitBuild\include&quot; instead of &quot;C:\cygwin64\WebkitBuild\include&quot;</div><div><br></div><div>What am I doing wrong here?</div><div><br></div><div>Is there a more complete and up-to-date guide on building the wincairo port with visual studio 2015?</div><div><br></div><div><br></div><div>Cheers,</div><div>Isaac</div><div><br></div>
</div></div></div></div>
_______________________________________________<br>webkit-help mailing list<br><a href="mailto:webkit-help@lists.webkit.org" target="_blank">webkit-help@lists.webkit.org</a><br><a href="https://lists.webkit.org/mailman/listinfo/webkit-help" target="_blank">https://lists.webkit.org/mailman/listinfo/webkit-help</a><br></div></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div>Isaac Devine<div>Director</div><div>Devine Systems Limited</div><div><br></div><div>+64 21 1700 929</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Isaac Devine<div>Director</div><div>Devine Systems Limited</div><div><br></div><div>+64 21 1700 929</div></div>
</div>