kernelhcy/gtkqq — Issue #74: ubuntu 10.04 编译不成功
Author: billzt
Created: 2012-02-12 10:43:43+00:00
State: open

鉴于把 gtkqq port 到老版本的呼声极高，我自己在 ubuntu 10.04 上试了一下，首先把 configure.ac 里面的 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.24] 改成 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.20], 然后在 configure 时出错了，（已经安装 zlib1g-dev，版本是1.2.3.3）

checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ZLIB... configure: error: Package requirements (zlib >= 1.2) were not met:

No package 'zlib' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ZLIB_CFLAGS
and ZLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

看了一下，Ubuntu 10.04 的安装位置是：
/.
/usr
/usr/include
/usr/include/zconf.h
/usr/include/zlib.h
/usr/include/zlibdefs.h
/usr/lib
/usr/lib/libz.a
/usr/lib/libz.so

而 Ubuntu 11.10 的安装位置却是：
/.
/usr
/usr/include
/usr/include/zconf.h
/usr/include/zlib.h
/usr/include/zlibdefs.h
/usr/lib
/usr/lib/i386-linux-gnu
/usr/lib/i386-linux-gnu/libz.a
/usr/lib/i386-linux-gnu/libz.so
/usr/lib/i386-linux-gnu/pkgconfig
/usr/lib/i386-linux-gnu/pkgconfig/zlib.pc

后者能编译，前者就不行