Re: No iconv() implementation found in C library or libiconv



On, Tue Apr 19, 2005, Xu Qiang wrote:

> 
> I have read the Makefile there, only to find they use a
> "--with-libiconv=gnu" configure argument. I don't know why theirs can
> succeed, while my "--with-libiconv=/usr/local" can't help pass the
> configuration step. :(

Because the allowed values of the --with-libiconv flag limit it. Output
from `./configure --help`:
[...]
  --with-libiconv=[no/gnu/native]
                          use the libiconv library
[...]

After reading this and the environment variables and configure flags
passed by the port, one can make up his own build process (thus I
recommended you to read it):

CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib -lintl" \
./configure --with-libiconv=gnu

"Why I need to pass CPPFLAGS and LDFLAGS?", you may ask. Because the
configure script needs to know, where it can look for the matching
libraries and headers for iconv et al.. intl is needed for i18n support.

> 
> Btw, the various patches in that URL are all irrelavent to libiconv problem. 

Yes, but keep in mind, that they are not irrelevant, if you want to use
the glib with threads in any way.

Regards
Marcus



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