
- #Compile with mingw install#
- #Compile with mingw Patch#
- #Compile with mingw software#
- #Compile with mingw download#
- #Compile with mingw windows#
#Compile with mingw Patch#
Place the patch you want to apply into the directory the OpenTTD source code is located in (\MSYS\1.0\home\\trunk in this example).
#Compile with mingw install#
bin/openttdDon't forget to install a base graphics set before this step if you don't have one (the simplest solution is to install OpenGFX) To test your compilation you can run (from the same folder in which you compiled OpenTTD).The compiling is complete when the openttd.exe file is made.Make(note that ~ means your MSYS home folder) The OpenTTD source code is now in the trunk subdirectory of your MSYS home folder (\MSYS\1.0\home\). configure -enable-static -disable-shared -disable-strict -disable-threads Patch -p1 -i libicu_reduce_icudata_size.diff Openttd.exe size with libicu (reduced icudata size):approx. It can take a long time to compile, so you can safely omit this step if you don't require libicu.Ĭompiling with libicu will greatly increase the size of the resulting OpenTTD executable. Arabic and Persian) and the natural sorting of lists. Libicu is an optional library used for handling of right-to-left scripts (e.g. configure -enable-static -disable-threads Unzip pkg-config_0.23-3_win32.zip -d /usr/local It also needs pkg-config and its dependencies. Liblzma (which is a part of xz) is required for compiling OpenTTD since r21044. Go to to see the new rev and then simply change all instances of 1.2.11 to the new rev (1.2.). If wget is unable to find the server, the maintainers have probably moved up to another rev. If your not able to compile it with the command line commands above you could try installing it with the "MinGW Installation Manager", its called: mingw32-libz. Make -f win32/Makefile.gcc BINARY_PATH=/bin INCLUDE_PATH=/usr/local/include LIBRARY_PATH=/usr/local/lib install
#Compile with mingw software#
Try to temporarily disable anti-virus software and compile again. , one of the reasons could be your anti-virus, that silently deletes a.exe binary files.
#Compile with mingw windows#
You can copy and paste into MingW windows by using CTRL+INS istead of CTRL+VĬonfigure: error: cannot run C compiled programs. (To compile on Windows 7, the service "application experience" must be activated and running) To compile and install these packages and avoid the error ' wget: command not found', first you need to install the following commands: Check if something goes wrong.īrowse your MinGW directory to msys\1.0\postinstall and run pi.bat Compilation and installation of the required packagesįor additional information about the libraries, check part 7.1) of OpenTTD Readme.

Setting up MSYS Go to your MSYS folder (found at \msys\1.0, C:\MinGW\msys\1.0 in this example), open etc\fstab with a text editor (for example Notepad) and add the following line at the end of the file: Wait until every package has been downloaded and installation is finished. Select C++ Compiler and MSYS Basic System as optional components. This method has been tested with a directory path of C:\MinGW. Please note that MinGW should be installed to a directory path that doesn't contain any spaces. Select "Use pre-packaged repository catalogues".
#Compile with mingw download#
This tutorial has been tested with the following versions of the required packages:ĭownload and run mingw-get-inst (the download link can be found in the previous section).

This page contains guidelines for compiling OpenTTD for Win32 with MinGW. 6 Compilation and installation of the required packages.
