Chinaunix首页 | 论坛 | 博客
  • 博客访问: 951676
  • 博文数量: 108
  • 博客积分: 3243
  • 博客等级: 中校
  • 技术积分: 964
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-15 22:09
文章分类

全部博文(108)

文章存档

2020年(2)

2019年(1)

2018年(2)

2017年(9)

2016年(20)

2015年(1)

2013年(1)

2012年(12)

2011年(28)

2010年(27)

2009年(4)

2008年(1)

分类: C/C++

2011-12-07 10:27:24

来源:
 

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
Freetype
  • download
  • tar -zxvf freetype-2.3.12.tar.gz
  • cd freetype-2.3.12
  • ./configure –prefix=/mingw
  • make
  • make install
Curl
  • 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
Freeglut
  • download
  • tar -zxvf freeglut-2.6.0.tar.gz
  • cd freeglut-2.6.0
  • ./configure –prefix=/mingw
  • make
  • make install
Glew
  • download
  • unzip glew-1.5.2.zip
  • cd glew-1.5.2
  • make
  • make install GLEW_DEST=/mingw
SDL
  • download
  • tar -zxvf SDL-1.2.14.tar.gz
  • cd SDL-1.2.14
  • ./configure –prefix=/mingw
  • make
  • make install
Iconv
  • download
  • tar -zxvf libiconv-1.13.1.tar.gz
  • cd libiconv-1.13.1
  • ./configure –prefix=/mingw –enable-static=yes
  • make
  • make install
Giflib
  • download
  • tar -zxvf giflib-4.1.6.tar.gz
  • cd giflib-4.1.6
  • ./configure –prefix=/mingw
  • make
  • make install
Jpeg
  • download
  • tar -zxvf jpegsrc.v8a.tar.gz
  • cd jpeg-8a
  • ./configure –prefix=/mingw
  • make
  • make install
Png
  • download
  • tar -zxvf libpng-1.4.1.tar.gz
  • cd libpng-1.4.1
  • ./configure –prefix=/mingw
  • make
  • make install
Tiff

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
Libxml2 (Precompiled)
  • 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
阅读(2158) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~