Hi,
I recently setup several project to crossbuild with Mingw-w64 from Linux with C++11 thread support. Since it took some time to setup the toolchain, I put it online at [1]. 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]. This is pretty useful.
Cheers
Antoine
[1] : https://github.com/avilleret/mingw-w64 [2] : https://travis-ci.org/jamoma/JamomaPureData
-- do it yourself http://antoine.villeret.free.fr
2015-06-25 17:11 GMT+02:00 Thomas Mayer thomas@residuum.org:
Hi,
Roman Haefeli schrieb am 21.06.2015 12:13:
Hey all
The new deken plugin makes me want to compile externals for Windows. There seem to be many ways to go and I might save some time if I knew beforehand what works and what no so well. I have access to the following archs:
- Debian 7 (i386, amd64, armv6l)
- Debian 8 (i383, amd64)
- Ubuntu 14.04 (i386, amd64)
- Windows XP (w32)
What are people using? Are you compiling directly on Windows or are you cross-compiling from Linux? Are you going with the tool chain from your Distro or are you downloading the highest and latest manually?
Sorry to be late to join the party, but here is my approach to cross compilation for Windows on Linux:
I am using the Makefile template from Pd extended for PuREST JSON and mxe (Formerly known as MinGW Cross Environment: http://mxe.cc/). In fact, for me this is simpler than compiling on Windows, so I cross-compile and just transfer the dll to Windows for testing.
My changes to the Makefile are adding path variables to enable cross compilation:
https://github.com/residuum/PuRestJson/commit/7a34c7fd3fe5a83b9ca53ac3fe2cc8...
For compilation, I set these variables as well as the UNAME variable, see:
https://github.com/residuum/PuRestJson/wiki/Compilation#cross-compilation-fo...
On a related note: How feasible is it to cross-compile for Mac OS X?
I have not had the time to test that already, as I do not have a Mac handy for testing. As someone already mentioned, https://github.com/tpoechtrager/osxcross looks like a viable solution.
Hth, Thomas
Pd-dev mailing list Pd-dev@lists.iem.at http://lists.puredata.info/listinfo/pd-dev