Re: Cross compile problem - glib and libiconv



Someone has told me how to work around the problem. Just want to put this back to the post.

In the file configure, you can remove the lines that generates the error. In this case,

if test "x$found_iconv" = "xno" ; then
   { { echo "$as_me:$LINENO: error: *** No iconv() implementation
found in C library or libiconv" >&5
echo "$as_me: error: *** No iconv() implementation found in C library
or libiconv" >&2;}
# new line:
    }
# old line, commented out:
#   { (exit 1); exit 1; }; }

This prevents configure from aborting. You also need to make sure the path is defined for your newly compiled libiconv library before you run configure for glib. Like:

CPPFLAGS="-I/your/path/libiconv/include"
LDFLAGS="-L/your/path/libiconv/lib"
export CPPFLAGS LDFLAGS

I'm able to cross-compile now, but don't have the hardware to test yet so not sure if everything is correct.

Tommy

Subject: Cross compile problem - glib and libiconv

I have seen other posting related to similar problem, but haven't come across the answer yet.

I'm trying to cross compile GTK+ 2.4.4 for uClinux running on the ARM, using a Redhat Linux system. I'm using the compilers CC=arm-elf-gcc and CXX=arm-elf-g++. Here are 2 issues:

1. libiconv 1.9.1
I can configure, make and make install libiconv with no error. If I run configure with the --host=arm or even --host=i686 option, no .so file is generated in the library (only .a and .al files). If I don't use the --host= option and use the normal gcc and g++ compiler, the .so files will be created in the library. Why is that? Do I not need the .so library files if I'm cross compiling?

2. glib 2.4.5
Even through I have installed libiconv, and set up all the paths, configure will not find it. This problem only occurs if I'm using the cross compiler. The normal compiler works fine, since libiconv is included in the system already. This error message...

checking for iconv_open... no
checking for libiconv_open in -liconv... no
checking for iconv_open in -liconv... no
configure: error: *** No iconv() implementation found in C library or libiconv

I tried glib 2.6.1 but it has the same problem. Any suggestion on how to make configure see the libiconv?

Tommy





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