Changes in BuildingWidelandsUnderWindowsNew
Editor Comment
Updates, added ICU dependency, created gist for patching gzip
Revision Differences of Revision 9
# 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](http://nuwen.net/mingw.html) and the MSYS2
¶
* [mingw-12.2.exe](http://nuwen.net/files/mingw/mingw-1
* [
¶
## 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/) ¶
¶
¶
## Additional libraries ¶
* [gzip](ftp://ftp.gnu.org/gnu/gzip/gzip-1.6.tar.gz) ¶
* [lib
* [libogg](http://xiph.org/ogg/) ¶
* [lib
* [gettext](ftp://ftp.gnu.org/gnu/gettext/gettext-0.19.
* [freetype](http://download.savannah.gnu.org/releases/freetype/freetype-2.6.2.tar.gz) ¶
* [ICU](http://download.icu-
¶
# Building all libraries ¶
¶
* Use the self-extracting installer of Nuwen's and extract the distro to *C:\\MinGW* ¶
*
* Open the distro window with *C:\\MinGW\\open_distro_window.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
* Build each package with "./configure --
* To
*
¶
diff --
index 0
¶
--- a
+++ b
@@ -
# defin
#en
¶
+#ifndef SIGPIPE ¶
+# define SIGPIPE 0 ¶
+#endif ¶
+ ¶
/* Common defaults */ ¶
¶
¶
¶
diff --git a/lib/msvc-inval.c b/lib/msvc-inval.c ¶
index ef2b
+++ b/lib/msvc-inval.c ¶
@@ -28,7 +28,7 @@ ¶
¶
# if MSVC_INVALI
¶
-static v
+static void __cdecl ¶
gl_msvc_i
const w
¶
# if
¶
-s
cons
} ¶
} ¶
¶
-stati
const wch
const w
-- ¶
1.7.2.5 ¶
¶
* Libiconv and freetype have circular dependencies, so you should compile libiconv, then freetype and then libiconv again (make a distclean and a ./configure) ¶
¶
# 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\\widelands\\trunk" ¶
* Just call "ninja" to build now ¶