This is a cheatsheet for installing libraries in MinGW, be sure to setup a development environment according to this tutorial first:
Libraries Zlib- download
- tar -zxvf zlib-1.2.5.tar.gz
- cd zlib-1.2.5
- ./configure –prefix=/mingw
- make
- make install
- gcc -shared -o /mingw/bin/zlib1.dll -Wl,–out-implib=/mingw/lib/libz.dll.a [!em]*.o
- download
- tar -zxvf freetype-2.3.12.tar.gz
- cd freetype-2.3.12
- ./configure –prefix=/mingw
- make
- make install
- download curl-7.20.0.tar.gz
- tar -zxvf curl-7.20.0.tar.gz
- cd curl-7.20.0
- ./configure –prefix=/mingw
- make
- make install
- download
- tar -zxvf freeglut-2.6.0.tar.gz
- cd freeglut-2.6.0
- ./configure –prefix=/mingw
- make
- make install
- download
- unzip glew-1.5.2.zip
- cd glew-1.5.2
- make
- make install GLEW_DEST=/mingw
- download
- tar -zxvf SDL-1.2.14.tar.gz
- cd SDL-1.2.14
- ./configure –prefix=/mingw
- make
- make install
- download
- tar -zxvf libiconv-1.13.1.tar.gz
- cd libiconv-1.13.1
- ./configure –prefix=/mingw –enable-static=yes
- make
- make install
- download
- tar -zxvf giflib-4.1.6.tar.gz
- cd giflib-4.1.6
- ./configure –prefix=/mingw
- make
- make install
- download
- tar -zxvf jpegsrc.v8a.tar.gz
- cd jpeg-8a
- ./configure –prefix=/mingw
- make
- make install
- download
- tar -zxvf libpng-1.4.1.tar.gz
- cd libpng-1.4.1
- ./configure –prefix=/mingw
- make
- make install
Be sure to apply the patch for building libtiff
- download
- tar -zxvf tiff-3.9.2.tar.gz
- cd tiff-3.9.2
- ./configure –prefix=/mingw
- make
- make install
- Download
- Unzip pexports.exe to C:/MinGW/bin
- Download
- Unzip libxml2-2.7.6.win32.zip to C:/MinGW
In the shell:
- cd /mingw/bin
- pexports libxml2.dll > libxml2.def
- dlltool –dllname libxml2.dll –def libxml2.def –output-lib ../lib/libxml2.a
Instructions taken from and
Boost- download
- tar -zxvf boost_1_42_0.tar.gz
- copy boost dir (with header files) to /mingw/include