错误打印如下:
./.libs/libgio-2.0.so: undefined reference to `deflateSetHeader'
./.libs/libgio-2.0.so: undefined reference to `inflateGetHeader'
make: *** [gio-querymodules] Error 1
解决思路参考:
#!/bin/bash
echo "glib_cv_stack_grows=no">config.cache
echo "glib_cv_has__inline=yes">>config.cache
echo "glib_cv_working_bcopy=no">>config.cache
echo "glib_cv_uscore=no">>config.cache
echo "ac_cv_func_posix_getpwuid_r=yes">>config.cache
echo "ac_cv_func_posix_getgrgid_r=yes">>config.cache
export LDFLAGS="-L/opt/ubq/devkit/arm/arm11/target/usr/local/lib -lz"
export CPPFLAGS="-I${ROOTFS_TOP}/usr/local/include"
PKG_CONFIG_PATH=${ROOTFS_TOP}/usr/local/lib/pkgconfig \
./configure --prefix=${ROOTFS_TOP}/usr/local \
--host=armv6zk-none-linux-gnueabi --target=arm-linux \
--disable-visibility \
-cache-file=config.cache
中间两行是自己加的,看来问题的原因出在没有明确指定libz.so的路径,让连接器去找这个动态链接库。