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 OpenTTD
MSYS messages:
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?
Compiling OpenTTD on Windows 10 with MinGW (trying properly this time)
Moderator: OpenTTD Developers
- GuilhermeJK
- Engineer
- Posts: 55
- Joined: 01 Nov 2014 05:24
- Location: São José dos Campos, Brazil
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: Compiling OpenTTD on Windows 10 with MinGW (trying properly this time)
Check out MSYS2
I managed to compile with that.
Or make dual-boot with Linux Mint.
And develop on Linux.
I managed to compile with that.
Or make dual-boot with Linux Mint.
And develop on Linux.
- GuilhermeJK
- Engineer
- Posts: 55
- Joined: 01 Nov 2014 05:24
- Location: São José dos Campos, Brazil
Re: Compiling OpenTTD on Windows 10 with MinGW (trying properly this time)
Awwwyeah, got something HackaLittleBit. It took me a while (as wasn't just as straightforward as installing MSYS2 and running the compiling tutorial), but using the MSYS2 MinGW 64-bit Shell (mingw64.exe) I have managed to compile with almost all except liblzo2, which I think does not have the 64-bit version (
I will try to compile the 32-bit version tomorrow, but I must ask:
Is my conclusion over liblzo2 not being able to be compiled under 64-bit version correct?
didn't work, butpacman -S mingw-w64-x86_64-lzo2
did).pacman -S mingw-w64-{i686,x86_64}-lzo2
I will try to compile the 32-bit version tomorrow, but I must ask:
Is my conclusion over liblzo2 not being able to be compiled under 64-bit version correct?
Re: Compiling OpenTTD on Windows 10 with MinGW (trying properly this time)
fwiw, my linux system says
So it seems I have a compiled 64 bit lzo2 library.
Code: Select all
$ file /usr/lib64/liblzo2.so.2.0.0
/usr/lib64/liblzo2.so.2.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=25978afab54c3ac11d456243a56076f995e27e7e, stripped
Being a retired OpenTTD developer does not mean I know what I am doing.
- HackaLittleBit
- Director
- Posts: 550
- Joined: 10 Dec 2008 16:08
- Location: tile 0x0000
Re: Compiling OpenTTD on Windows 10 with MinGW (trying properly this time)
If I remember correct, I also was not able to compile that one.GuilhermeJK wrote: Is my conclusion over liblzo2 not being able to be compiled under 64-bit version correct?
So I switched to 32bit
The program was written by Oberhumer (possible member ottd)
Re: Compiling OpenTTD on Windows 10 with MinGW (trying properly this time)
For compiling on Windows, you should probably get MS Visual Studio 2017 Community Edition. It's a full version, free of charge for hobby and open source work.
Who is online
Users browsing this forum: No registered users and 9 guests