[tsc-devel] Win32 crossbuild works again
Marvin Gülker |
Wed, 03 Aug 2016 21:52:34 UTC
Hi everyone,
I just wanted to inform everyone that with today's commits, TSC from the
`devel' branch can be crosscompiled to Windows from Linux again using a
current version of MXE. For your convenience, the Secretchronicles fork
of MXE[1] has been updated with a `tsc-crosscompile' branch that points
to the exact commit of MXE that I have been using to crosscompile. Note
however that due to MXE bug #1351[2] it is currently impossible to build
MXE on distributions that ship GCC >= 6.0.0, which most notably includes
ArchLinux. Keep an eye on that ticket if you want to crosscompile from
such a distribution.
The INSTALL.md file has been updated with the new instructions for
crosscompiling TSC, but please note that the execution of cpack is an
educated guess and has not yet been tested. A standalone build of TSC
(using ordinary $ make install) works as expected (tested on my Windows
7 32-bits).
The game however crashes with a segmentation fault when generating the
image cache, so the game cannot yet be tested on Windows. I will
investigate this problem later on.
TSC cannot yet be compiled natively on Windows due to the pkg-config
problem outlined in ticket #556[3], so don't try and be disappointed.
If on the other hand you want to help writing CMake modules, feel free
to do so.
While I was working on the Windows crosscompilation, I have made fairly
deep changes to the build system multiple times (especially around the
SFML detection). I thus recommend you to clean your build directory with
$ rm -rf * even if you did never made a crosscompilation. This should
prevent CMake from using any outdated cached variable values. I admit
there has been a large number of changes to the build system recently,
but with the crosscompilation now being successful this should reduce
notably. I know that recompiling all of TSC can take a long time. But be
assured, compiling all of TSC *twice* -- as native and as
crosscompilation -- does take even longer, so don't mourn about it if
you never touched the crosscompilation code...!
Valete,
Quintus
[1]: https://github.com/Secretchronicles/mxe
[2]: https://github.com/mxe/mxe/issues/1351
[3]: https://github.com/Secretchronicles/TSC/issues/556
--
PGP/GPG ID: F1D8799FBCC8BC4F