Latest Posts

Changes in BuildingWidelandsUnderWindowsNew

Editor Comment

More download links


Revision Differences of Revision 4

## How to build Widelands with !MinGW64 on windows ¶

This is currently a work in progress! ¶

[TOC] ¶

# Download files ¶
## Nuwen's !MinGW64 distro ¶

Download the main distro from http://nuwen.net/mingw.html and the MSYS package: ¶

* http://nuwen.net/files/mingw/mingw-12.1.exe ¶
* http://nuwen.net/files/mingw/msys-10.4.7z ¶

## SDL2 source packages ¶
*
[SDL2 ](https://www.libsdl.org/release/SDL2-2.0.3.zip)
* [SDL2_net](https://www.libsdl.org/projects/SDL_net/) ¶
* [SDL2_mixer](http://www.libsdl.org/projects/SDL_mixer/) ¶
* [SDL2_image](https://www.libsdl.org/projects/SDL_image/) ¶
* [SDL2_gfx](http://cms.ferzkopp.net/index.php/software/13-sdl-gfx) ¶

## Additional libraries ¶
* [libvorbis](http://xiph.org/vorbis/) ¶
* [libogg](http://xiph.org/ogg/) ¶
*
[libiconv](ftp://ftp.gnu.org/gnu/libiconv/libiconv-1.14.tar.gz)
*
[gettext](ftp://ftp.gnu.org/gnu/gettext/gettext-0.19.3.tar.gz)
*
[freetype](http://download.savannah.gnu.org/releases/freetype/freetype-doc-2.5.3.tar.gz)

# Building all libraries ¶

* Use the self-extracting installer of Nuwen's and extract the distro to C:\MinGW ¶
* Extract MSYS manually to c:\msys-10.4 ¶
* Open the distro window with C:\MinGW\open_distro_window.bat ¶
* Change the directory with "cd c:\msys-10.4" and call extract.bat ¶
* Start MSYS with msys.bat ¶

You are now in a linux like shell, so the command syntax is a bit different than normal windows commands ¶

* Extract all source packages to c:\msys-10.4\home\<username>\ ¶
* Build each package with "./configure --prefix=/c/mingw && make install" ¶

# Download CMake and Ninja ¶

* Download Ninja https://github.com/martine/ninja/releases/download/v1.5.1/ninja-win.zip. Extract simply to C:\mingw\bin. ¶
* Download CMAKE http://www.cmake.org/files/v3.1/cmake-3.1.0-rc2-win32-x86.zip ¶

# Getting Widelands source code ¶

# Building Widelands ¶

We will build ninja in the normal distro window and not in the MSYS shell: ¶

* Switch to the directory you'll want to build widelands in, e.g. C:\wl_build ¶
* run CMAKE "cmake -G Ninja -DCMAKE_PREFIX_PATH=C:\Mingw c:\bzr\wideland\trunk" ¶
* Just call "ninja" to build now