<div dir="ltr">Hi, <div><br></div><div>I recently setup several project to crossbuild with Mingw-w64 from Linux with C++11 thread support.</div><div>Since it took some time to setup the toolchain, I put it online at [1].</div><div>I also setup some CI server to build for 4 architecture (Linux x86_64, Raspberry Pi, Win32 and Mac OS X) each push on my project [2].</div><div>This is pretty useful.</div><div><br></div><div>Cheers </div><div><br></div><div>Antoine</div><div><br></div><div>[1] : <a href="https://github.com/avilleret/mingw-w64">https://github.com/avilleret/mingw-w64</a></div><div>[2] : <a href="https://travis-ci.org/jamoma/JamomaPureData">https://travis-ci.org/jamoma/JamomaPureData</a></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">--<br>do it yourself                       <br><a href="http://antoine.villeret.free.fr" target="_blank">http://antoine.villeret.free.fr</a><br></div></div>
<br><div class="gmail_quote">2015-06-25 17:11 GMT+02:00 Thomas Mayer <span dir="ltr"><<a href="mailto:thomas@residuum.org" target="_blank">thomas@residuum.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
Roman Haefeli schrieb am <a href="tel:21.06.2015%2012" value="+12106201512">21.06.2015 12</a>:13:<br>
<br>
> Hey all<br>
><br>
> The new deken plugin makes me want to compile externals for Windows.<br>
> There seem to be many ways to go and I might save some time if I knew<br>
> beforehand what works and what no so well. I have access to the<br>
> following archs:<br>
><br>
> * Debian 7 (i386, amd64, armv6l)<br>
> * Debian 8 (i383, amd64)<br>
> * Ubuntu 14.04 (i386, amd64)<br>
> * Windows XP (w32)<br>
><br>
> What are people using? Are you compiling directly on Windows or are you<br>
> cross-compiling from Linux? Are you going with the tool chain from your<br>
> Distro or are you downloading the highest and latest manually?<br>
<br>
</span>Sorry to be late to join the party, but here is my approach to cross compilation for Windows on Linux:<br>
<br>
I am using the Makefile template from Pd extended for PuREST JSON and mxe (Formerly known as MinGW Cross Environment: <a href="http://mxe.cc/" rel="noreferrer" target="_blank">http://mxe.cc/</a>). In fact, for me this is simpler than compiling on Windows, so I cross-compile and just transfer the dll to Windows for testing.<br>
<br>
My changes to the Makefile are adding path variables to enable cross compilation:<br>
<a href="https://github.com/residuum/PuRestJson/commit/7a34c7fd3fe5a83b9ca53ac3fe2cc8c705c274ba" rel="noreferrer" target="_blank">https://github.com/residuum/PuRestJson/commit/7a34c7fd3fe5a83b9ca53ac3fe2cc8c705c274ba</a><br>
<br>
For compilation, I set these variables as well as the UNAME variable, see:<br>
<a href="https://github.com/residuum/PuRestJson/wiki/Compilation#cross-compilation-for-windows-on-unix-like-systems-linux--bsd--mac-os-x-with-mxe" rel="noreferrer" target="_blank">https://github.com/residuum/PuRestJson/wiki/Compilation#cross-compilation-for-windows-on-unix-like-systems-linux--bsd--mac-os-x-with-mxe</a><br>
<span class=""><br>
> On a related note: How feasible is it to cross-compile for Mac OS X?<br>
<br>
</span>I have not had the time to test that already, as I do not have a Mac handy for testing. As someone already mentioned, <a href="https://github.com/tpoechtrager/osxcross" rel="noreferrer" target="_blank">https://github.com/tpoechtrager/osxcross</a> looks like a viable solution.<br>
<br>
Hth,<br>
Thomas<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
</div></div></blockquote></div><br></div>