jump to navigation

19 六月, 2010

Posted by leterboy in Uncategorized.
trackback

./configure error but I had install zlib with prefix already.

configure: error: zlib not installed

should add LDFLAGS and CFLAGS to environment variable

设置一下环境变量CFLAGS和LDFLAGS试试,Makefile一般都通过CFLAGS来设置额外的编译选项,通过LDFLAGS来设置额外的连接选项,configure大概也遵循这个规则吧。
[root@linux libpng-1.2.8-config]# export LDFLAGS=-L$ROOTFS_DIR/usr/local/lib
[root@linux libpng-1.2.8-config]# export CFLAGS=-I$ROOTFS_DIR/usr/local/include
[root@linux libpng-1.2.8-config]# ./configure –host=$ARCH-linux –prefix=$ROOTFS_DIR/usr

设置一下环境变量CFLAGS和LDFLAGS试试,Makefile一般都通过CFLAGS来设置额外的编译选项,通过LDFLAGS来设置额外的连接选项,configure大概也遵循这个规则吧。
[root@linux libpng-1.2.8-config]# export LDFLAGS=-L$ROOTFS_DIR/usr/local/lib
[root@linux libpng-1.2.8-config]# export CFLAGS=-I$ROOTFS_DIR/usr/local/include
[root@linux libpng-1.2.8-config]# ./configure –host=$ARCH-linux –prefix=$ROOTFS_DIR/usr

reconfigure again…

留言»

No comments yet — be the first.

發表留言