Salutations fellas. In my old Windows 7 computer I had managed to compile OpenTTD using MS Visual C++ 2008. Now I have acquired a new PC with Windows 10 and don't have MS Visual C++ anymore.
I decided it is time to compile OpenTTD with MinGW + MSYS, so I wouldn't depend on MS C++. The only experience I have compiling C/C++ code is from small apps when I learned programming at the university. Nowadays I mostly use Python. So I am pretty much lost in here.
I followed the tutorial at the wiki and after installing the libraries, zlib and lzma weren't found during ./configure of OpenTTDMSYS messages:
- [+] Spoiler
checking awk... awk
detecting OS... MINGW
checking build system type... mingw32
checking host system type... mingw32
checking universal build... no
checking build cc... gcc
checking host cc... gcc
checking build c++... g++
checking host c++... g++
checking host windres... windres
checking strip... disabled
checking builtin depend... yes
checking makedepend... disabled
detecting cpu-type... 32 bits
detecting SSE... found
checking static... yes
checking unicode... yes
using debug level... no
using desync debug level... no
using link time optimization... no
checking OSX sysroot... not OSX, skipping
checking allegro... not found
checking sdl... not found
checking COCOA... not OSX, skipping
checking GDI video driver... found
checking dedicated... not selected
checking console application... disabled (only used when forced)
checking network... found
checking squirrel... found
checking translator... no
checking assert... enabled
checking zlib... not found
checking liblzma... not found
WARNING: lzma was not detected or disabled
WARNING: OpenTTD doesn't require lzma, but it does mean that many features
WARNING: (like loading most savegames/scenarios and joining most servers)
WARNING: will be disabled.
If you want to compile without lzma use --without-lzma as parameter
While trying to search for a solution (haven't got anywhere) I've also stumbled upon MinGW-w64 fork.
Basically I have three questions:
1. What is the most up-to-date software to compile OpenTTD for Windows 10 (x64)? Is it MinGW-w64?
2. Assuming MinGW being used (and considering the attached code), how can I solve the 'not found' libraries issue? I checked in C:\MinGW\bin folder and they are there.
3. Should I still be using MSYS?