<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi John,<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I decided to have a look at the meson build, to learn about it, and also to make sure that things are working smoothly under Windows. <br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Here is roughly what I did to make the compilation working:<br><br><ol><li>Installed <a href="https://www.python.org/ftp/python/3.6.4/python-3.6.4-amd64.exe">https://www.python.org/ftp/python/3.6.4/python-3.6.4-amd64.exe</a></li><li>Installed meson through pip<br>python -m pip install meson</li><li>Installed ninja.exe for windows and put in the path.</li><li>Did a fresh git checkout of the main branch of fribidi.</li><li>Opened a visual studio command prompt <br></li><li>compiled fribidi through the following two commands:<br><br>meson -buildtype release build_release<br>ninja -C build_release<br><br></li><li>Tested the visual studio backend through:<br>meson -backend vs2010 -buiildtype release</li><li>Opened visual studio, loaded the project, and tested a compilation.<br></li></ol><p>This worked, so I tried running the tests as well through:</p><p>ninja -C build_release test</p><p>This ran all the fribidi.exe based tests (except one, which I fixed in git), but it did not run the BidiTest and BidiCharacterTest tests, that depend on glib, which is not available by default on Windows.</p><p>So I rewrote these two c-programs to remove all glib dependencies, and then the tests then run under Windows as well.<br></p><p>But... And here is the strange part: BidiTest passed under debug but failed on the release build! I don't know if this is a bug in the Microsoft VS2013 compiler, or something unitialized variable or something else. (An interesting detail is that all the tests that failed involved FSI.) I opened the following bug about it: <a href="https://github.com/fribidi/fribidi/issues/71">https://github.com/fribidi/fribidi/issues/71</a> . It would be interesting to know if this happens only under VS2013 and not under later versions.</p><p>Regards,</p><p>Dov<br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 9, 2018 at 8:26 AM, John Emmas <span dir="ltr"><<a href="mailto:john@creativepost.co.uk" target="_blank">john@creativepost.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 08/03/2018 22:39, Khaled Hosny wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Please consult the official documentation, FriBiDi’s mailing list might<br>
not be the best place to ask about meson:<br>
<br>
</blockquote>
<br></span>
Thanks Khaled but I'm guessing that if it's possible for FriBIDI to build MSVC projects (or libraries) it can only do this if its meson build script has been suitably configured? Before I move my question to the meson community, can I at least check if other FriBIDI users are managing to build FriBIDI with MSVC? And if so, are they doing this via meson?<br>
<br>
Or is there some alternative build strategy I should be looking at? Regards,<br>
<br>
John<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
fribidi mailing list<br>
<a href="mailto:fribidi@lists.freedesktop.org" target="_blank">fribidi@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/fribidi" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fribidi</a><br>
</div></div></blockquote></div><br></div>