1、拿到新改的代码,编译发现不能通过,貌似缺少文件,找到其中一个发现使用了zlib进行压缩处理 2、找到zlib主页,下载了最新的源码,1.2.3,代码上说的适用1.1.x的但估计也能用 3、看了一下 configure的帮助,感觉维护的不是太好 4、用欺骗的方式写了两个脚本分别进行x86和arm的编译 5、没有搞懂AR=ar rc 其中rc的含义,所以不能一气呵成的编译安装,感觉不爽 6、估计能通过expore做一些工作 7、编译完后将include和lib里面的东西...
by jiaopeng - Linux文档专区 - 2008-01-08 08:56:48 阅读(827) 回复(0)
在安装sdcv的时候,编译显示错误是"checking for zlibversion in -lz... no configure: error:zlib not found" 可是我装了zlib-1.2.2还是不行.编译结果还是同上面一样. 于是我打开configure文件有关于zlib的程序,如下,麻烦高手帮我解释一下,这段程序大概什么意思,有什么用的? echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 echo $ECHO_N "checking for zlibVersio...
报错信息: configure: error: zlib extension requires zlib >;= 1.0.9 安装时采用系统默认安装的zlib 版本为: # rpm -qa | grep zlib zlib-devel-1.1.4-8.1 zlib-1.1.4-8.1 安装文件默认基本在 /usr/lib 和/usr/include 中。 编译语句指定zlib目录为: --with-zlib=/usr 不指定,默认也是这个。 如何解决上述报错问题,请那位知道的朋友指点一下。谢谢!
系统:fedora core 1 ;kernel 2.4.26 在make menuconfig 的时候,在library routines里面选择了zlib decompression support和zlib compression support为(*),编译进内核,但是在sytem.map 里面找不到zlib的符号。 所以每次在insmod cloop.o的时候得modprobe zlib_inflate (我又以MODULES编译了一次). 是不是在还有其他menuconfig 选项没有选择.? 谢谢!
系统:fedora core 1 ;kernel 2.4.26 在make menuconfig 的时候,在library routines里面选择了zlib decompression support和zlib compression support为(*),编译进内核,但是在sytem.map 里面找不到zlib的符号。 所以每次在insmod cloop.o的时候得modprobe zlib_inflate (我又以MODULES编译了一次). 是不是在还有其他menuconfig 选项没有选择.? 谢谢!
Debian sarge/etch 下: #./configure Checking for gcc... Building static library libz.a version 1.2.3 with gcc. Checking for unistd.h... No. Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf() Checking for snprintf() in stdio.h... No. WARNING: snprintf() not found, falling back to sprintf(). zlib can build but will be open to possible buffer-overflow security vulnera...
Debian sarge/etch 下: #./configure Checking for gcc... Building static library libz.a version 1.2.3 with gcc. Checking for unistd.h... No. Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf() Checking for snprintf() in stdio.h... No. WARNING: snprintf() not found, falling back to sprintf(). zlib can build but will be open to possible buffer-overflow security vulnera...
本帖最后由 qianjunjushi 于 2014-08-07 10:25 编辑 各位老师好: 非常感谢能够浏览这个帖子 这个问题卡了我好久了 希望各位老师能够帮忙 我是交叉编译使用压缩算法 zlib 库 是很老的 1.2.3版本 将zlib.h zconf.h 放到include 里面去 zlib.a 放到 lib里面去 我的maleficent 部分内容如下 CROSS = arm-linux- SRCDIRS = ./ \ ./init ...
我引入了 #include <zlib.h> 是否要加上-lzlib??如下 g++ ./test.cpp -o test -lpthread -ljson -lzlib 但我加上报错了 /usr/bin/ld: cannot find -lzlib collect2: ld 返回 1 如果不加上也报错 /tmp/ccQrOjbE.o: In function `compression(char*)': test.cpp:(.text+0x5f55): undefined reference to `compress' /tmp/ccQrOjbE.o: In function `uncompression(char*)': test.cpp:(.text+0x6075): undefined reference to ...