现象:

Checking libtoolize version:

2.4.2

Checking tar version:

1.26

Package zlib was not found in the pkg-config search path.

Perhaps you should add the directory containing `zlib.pc'

to the PKG_CONFIG_PATH environment variable

No package 'zlib' found

ERROR: pkg-config zlib failed

Your distribution may require you to use a special setting of PKG_CONFIG_PATH

make[1]: *** [prebuild_checks] Error 1

make[1]: Leaving directory `/home/wangxinyu/work/AX1803/6755_sdk'

make: *** [default] Error 2

解决方法:

yum install zlib-devel.i686 zlib-devel.x86_64

其中配置文件路径为

/usr/lib/pkgconfig/zlib.pc

/usr/lib64/pkgconfig/zlib.pc

(Centos7编译环境使用yum,ubuntu使用apt-get,OpenSUSE使用zypper )