*** Working zlib library and headers not found ***
starc 2012-04-15 12:57:50 在windows 下用msys+mingw编译glib源码, ./configure后出现如下信息
$ ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
...
checking for ZLIB... no
...
checking for inflate in -lz... no
configure: error: *** Working zlib library and headers not found ***
报的error应该是zlib库没有找
然后我就下载了zlib的源码 zlib-1.2.3.tar.gz http://cdnetworks-kr-2.dl.sourceforge.net/project/libpng/zlib/1.2.3/zlib-1.2.3.tar.gz
解压后把win32目录下的Makefile.gcc 复制到父目录中
编译
./configure 正常
make -f Makefile.gcc 正常
ls如下:
Administrator@20120104-2028 /d/zlib
$ ls
ChangeLog configure gzio.o libzdll.a uncompr.o
FAQ contrib infback.c make_vms.com win32
INDEX crc32.c infback.o minigzip.c zconf.h
Makefile crc32.h inffast.c minigzip.exe zconf.in.h
Makefile.gcc crc32.o inffast.h minigzip.o zlib.3
Makefile.in deflate.c inffast.o minigzip_d.exe zlib.h
README deflate.h inffixed.h msdos zlib1.dll
adler32.c deflate.o inflate.c old zlibrc.o
adler32.o example.c inflate.h projects ztest2080.exe
algorithm.txt example.exe inflate.o qnx zutil.c
amiga example.o inftrees.c trees.c zutil.h
as400 example_d.exe inftrees.h trees.h zutil.o
compress.c examples inftrees.o trees.o
compress.o gzio.c libz.a uncompr.c
然后我再到glib目录里去编译glib还是报*** Working zlib library and headers not found ***
怎么才能在不改glib的 Makefile去编译呢
我还尝试了如下几个方法
把zlib目录里的*.h 和*.dll *.exe *.a复制到了system32里 相应的也复制到了mingw include 和lib 里
都不能解决
为什么非得在Windows 里编译呢,,主要是我的笔记本一装Linux 就会被热的死机,AMD+ATI本本的悲哀