现在的位置: 首页 > 综合 > 正文

Cross Compile zlib as static and dynamic library

2013年08月30日 ⁄ 综合 ⁄ 共 375字 ⁄ 字号 评论关闭

dynamic zlib library

 

1. download zlib source code from the following website for new version of it.

    http://www.zlib.net/

2. uncompress it (tar -zxvf zlib-x.x.x.tgz)

3. configure it

    ./configure -s

4. modify the "Makefile" using the cross toolchain to replace the relative tools (e.g: gcc, ar, ranlib, tar).

5. make.

 

 

static library

 

1. take the same 1,2 steps as up method.

2. won't use "./configure -s"

3. modify the "Makefile"

4. make

 

 

抱歉!评论已关闭.