Re: Cross-compiling glib for arm

2010/3/12 ON JJ <jjon1985 hotmail com>
I am trying to cross compile glib. This is my configure
sudo ./configure --prefix=/opt/crosstool/ --host=arm-linux --build=i686-linux CC=arm-linux-gcc RANLIB=arm-linux-ranlib LD=arm-linux-ld --cache-file=arm-linux-cache LDFLAGS="-L/opt/crosstool/lib" CFLAGS="-I/opt/crosstool/include"
checking for msgfmt... no
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (
I had made gettext in /opt/crosstool/ ,
in include file ,there have gettext-po.h
in lib file, there have  libgettextpo.a  libgette
and i had set the LDFLAGS and CFLAGS, Why the configure cann't find the gettext?
Is my setting error?Please tell me how to solve this problem

Hi Jjon, this appears to be because autoconf can't find the package config files... try something like this:

export PKG_CONFIG_PATH=/opt/crosstool/libs/pkgconfig/
./configure ... etc..



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]