zlib库交叉编译方法
2014-10-14 14:17
274 查看
下载地址:http://www.zlib.net/
版本:1.2.8
编译环境:arm-linux
编译方法:
1、export CC=arm-linux-gcc
2、./configure --prefix=$PWD/_install
_install为创建输出的指定目录
如果出现如下错误时:
[root@localhost zlib-1.2.8]# ./configure --shared --prefix=$PWD/_install
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
在configure 删除以下字段,避免将warn处理为error :
echo "Checking for obsessive-compulsive compiler options..." >> configure.log
if try $CC -c $CFLAGS $test.c; then
:
else
echo "Compiler error reporting is too harsh for $0 (perhaps remove -Werror)." | tee -a configure.log
leave 1
fi
3、make && make install
4、在_install/lib目录下是动态与静态库文件,_install/include下是头文件。
版本:1.2.8
编译环境:arm-linux
编译方法:
1、export CC=arm-linux-gcc
2、./configure --prefix=$PWD/_install
_install为创建输出的指定目录
如果出现如下错误时:
[root@localhost zlib-1.2.8]# ./configure --shared --prefix=$PWD/_install
Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
在configure 删除以下字段,避免将warn处理为error :
echo "Checking for obsessive-compulsive compiler options..." >> configure.log
if try $CC -c $CFLAGS $test.c; then
:
else
echo "Compiler error reporting is too harsh for $0 (perhaps remove -Werror)." | tee -a configure.log
leave 1
fi
3、make && make install
4、在_install/lib目录下是动态与静态库文件,_install/include下是头文件。
相关文章推荐
- 交叉编译 zlib 的方法
- zlib 交叉编译方法
- 关于在FC6中安装m68k-elf-tools交叉编译碰到的问题及解决方法
- 为qt-embedded添加jpeg库的交叉编译方法for arm
- opencv2.0移植过程中zlib,jpeg,png库的交叉编译
- Qt交叉编译时,提示找不到tslib库的可能解决方法
- 为qt-embedded添加jpeg库的交叉编译方法for arm
- 交叉编译场景分析(arm-linux)(三)--编译zlib
- OpenCV 2.0移植过程中zlib,jpeg,png库的交叉编译
- boost 1.48 for ARM 交叉编译方法
- 嵌入式Linux下常用的交叉编译方法
- ffmpeg windows版本交叉编译方法
- zlib交叉编译过程
- 为qt-embedded添加jpeg库的交叉编译方法for arm
- mips上交叉编译opal3.10.1 configure错误“checking linkable PTLib ... not found” 的解决方法
- 交叉编译场景分析(arm-linux)(三)--编译zlib
- C++技巧:用kdevelop进行交叉编译的方法
- 嵌入式Linux下常用的交叉编译方法
- zlib 交叉编译
- 用kdevelop进行交叉编译的方法