zlib库交叉编译
2024-10-18 09:37:05
zlib-1.2.11
开发板:arm9
交叉编译器arm-fsl-linux-gnueabihf-gcc
编译方式:
./configure -h可以发现zlib并没有提供CC配置,所以
(1)export CC=arm-fsl-linux-gnueabihf-gcc
(2)./configure --prefix=/opt/libz
出现错误:Compiler error reporting is too harsh for ./configure (perhaps remove -Werror).
解决方案参考http://blog.csdn.net/hzh_beyond/article/details/40074081
在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
另外,后来使用arm-linaro-linux-gnueabihf-gcc并没有以上错误
最新文章
- javaEE-----org.springframework.dao.InvalidDataAccessApiUsageException: Write operation
- V​S​2​0​1​2​快​捷​键
- url中参数以及callback后面的串
- IOS 使用SDWebImage实现仿新浪微博照片浏览器
- React生命周期浅析
- Mysql 允许null 与 default值
- WPF中的Style(风格,样式)(转)
- 为你的TabBar添加Badge-感谢分享
- 哪几个数的阶乘末尾有n个零?
- Android 消息处理源代码分析(1)
- 第三节 ISBN 码 / ISSN 码
- Docker - 容器编排工具 compose 之安装
- Python 面向对象(二) 特殊方法
- Children’s Queue(hdu1297+递推)
- db nosql redis / Redis Sentinel
- instrument之Time Profiler总结
- win10 将本地项目上传到github (第一次+再次上传)
- Can’t call setState (or forceUpdate) on an unmounted component 警告处理方法
- Python3.5 学习二十一
- DevExpress v17.2新版亮点—DevExtreme篇(一)