I am trying to build the Windows version of OpenTTD under the Windows Subsystem for Linux which runs an Ubuntu userland on top of a reverse Wine like set of drivers for the Windows NT Kernel. I am able to build the windows version of OpenTTD so long as I exclude all the optional libraries. Building OpenTTD with the following set of commands in Bash on Windows gives me a "working" executable - by working I mean most savegames can't be loaded amongst other optional things.
Code: Select all
./configure --host=i686-w64-mingw32 --without-png --without-icu --without-liblzma --without-lzo2 --without-zlib --without-sdl --without-iconv
make
I would like to get the libraries working. I have tried following the wiki page on cross compiling for Windows without luck. I suspect I need to go over the contents of that page to make sure all the commands I execute from that page work properly under WSL. I would like to try and get zlib working first, so that I can at least get the titlegame to load(currently I just get water).
edit:
or I may need to hack some scripts in the build process as Rubidium told me on IRC a coule of days ago. I would not have any clue as to which scripts to hack at though.