MinGW External Libraries

Download

The precompiled external libraries can be downloaded from

Compile (optional)

Notes for manually compiling follow

1) zlib

The zlib library is already included with MinGW as libz.lib

2) curl

http://curl.mirror.at.stealer.net/download/curl-7.37.0.zip

Configure to use the correct zlib library

3) libwww

http://www.w3.org/Library/

http://www.w3.org/Library/Distribution/w3c-libwww-5.4.0.zip

run MSYS

export LDFLAGS="-L/c/mingw-w64/x86_64-4.9.0-win32-seh-rt_v3-rev2/mingw64/x86_64-w64-mingw32/lib"

export CFLAGS="-I/c/mingw-w64/x86_64-4.9.0-win32-seh-rt_v3-rev2/mingw64/x86_64-w64-mingw32/include"

export PATH=$PATH:/c/mingw-w64/x86_64-4.9.0-win32-seh-rt_v3-rev2/mingw64/bin

./configure --host=x86_64-w64-mingw32

make (regular make)

4) libjpeg

same method as libwww

http://softlayer-ams.dl.sourceforge.net/project/libjpeg/libjpeg/6b/jpegsr6.zip

5) lpng

cmake

set ZLIB_ (in advanced)

build static

6) libxml2

http://kent.dl.sourceforge.net/project/mingw/MSYS/Extension/libxml2/libxml2-2.7.6-1/libxml2-2.7.6-1-msys-1.0.13-src.tar.lzma

fixup script to use correct configure, use the script and let the configure crash, browse to folder and configure manual

./configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --disable-ipv6 --disable-rebuild-docs --without-iconv --without-python --without-ftp --without-http --with-zlib=/c/mingw-w64/x86_64-4.9.0-win32-seh-rt_v3-rev2/mingw64/x86_64-w64-mingw32/lib --with-history

modify makefile, add -DSTATIC_LIBXML to fix issues

Manually turn into dll (from mingw 64 cmd terminal)

S:\external-mingw-x64\build\libxml2\libxml2-2.7.6\.libs\tempdll>ar x libxml2.a

S:\external-mingw-x64\build\libxml2\libxml2-2.7.6\.libs\tempdll>gcc -shared -o libxml2.dll -Wl,--out-implib=libxml2.dll.a -Wl,--export-all-symbols -Wl,--enable-
auto-import -Wl,--enable-runtime-pseudo-reloc *.o -lz -lpthread

Manually modify binary output libxml.dll.a, replace all deflate with defl4at, replace zlibV wih zl1bV to fix link issues, as this dll should not export these

7) freetype

http://nongnu.mirrors.hostinginnederland.nl//freetype/freetype-2.5.3.tar.gz

easy cmake

8) libsquish

just do mingw32-make, no configure

https://libsquish.googlecode.com/files/squish-1.11.zip

9) libogg

http://downloads.xiph.org/releases/ogg/libogg-1.3.2.zip

same as libwww

10) libvorbis

http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.zip

idem, add flags for dependencies on ogg

export LDFLAGS="-L/s/external-mingw-x64/install/lib"

export CFLAGS="-I/s/external-mingw-x64/install/include"

./configure--host=x86_64-w64-mingw32

make

11) lua 5.2

http://www.lua.org/ftp/lua-5.2.3.tar.gz

mingw32-make mingw

12) boost (dependency of luabind)

bootstrap.bat mingw

b2 toolset=gcc

13) luabind

Download luabind (matsu911 fork for 5.2 compatibility)

Copy to build

set BOOST_ROOT=R:\external\boost_x86

set LUA_PATH=R:\external\x86

set PATH=%PATH%;%BOOST_ROOT%

bjam mingw stage toolset=gcc runtime-link=shared -j8 variant=release link=static