libpng make warning
编译libpng时候遇到的问题:
如下:
需要链接zlib库,使用如下环境变量
export LDFLAGS="-L/F/poppler/zlib-1.2.5"
export LIBS="-lz"
export CPPFLAGS="-I/F/poppler/zlib-1.2.5"
./configure 无错误
但之后的make 出现如下警告:
Warning: linker path does not have real file for library -lz.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libz and none of the candidates passed a file format test
*** using a file magic. Last file checked: /F/poppler/zlib-1.2.5/libz.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
为啥?不是已经指明了-L了吗?查看目录/F/poppler/zlib-1.2.5/libz.a
libz.a文件也存在啊?
在线等高人解惑.....