I just hit this too. It looks like libiconv uses gnulib which will
create a fallback stdint.h under the srclib/ directory during ./
configure. That fallback header then wreaks havoc because the android
toolchain itself provides headers that expect to include stdint.h and
they are being forced to include the one generated during ./configure
resulting in a circular dependency and sys/types.h doesn't get
included with the time_t typedef.
After delving a bit into the sysm4/stdinc.m4 file I luckily found it's
possible to override the gnulib macro so it never writes out a
fallback stdint.h if you set gl_cv_header_working_stdint_h=yes
So my full configure line is now:
gl_cv_header_working_stdint_h=yes ./configure --host=arm-linux-
androideabi
That seems to get things building for me with libiconv-1.14
I hope that helps,
regards,
- Robert
On Jul 19, 9:42 am, Marco Bernasocchi <
ma...@bernawebdesign.ch> wrote:
> Hi all, It looks like my last post did not go out. I'm porting QGIS to
> android and I'm using ndk r5c to crosscompile all, I managed to get
> geos, gdal, proj4, qwt, and others to cross compile properly but now I'm
> stuck with libiconv. I get the same error as the OP.
> can anybody help me?
> thanks a lot
> Marco
>
>
>
>
>
>
>
> > Hi everyone,
>
> > I am trying to cross compile the GNU*libiconv*-1.13.1 library using the
> > Android standalone toolchain. I am using Android level 8 for this.
> > After copying the latest config.guess and config.sub scripts from the
> > GNU auto tools website I was able to configure the library.
>
> > I get a compile error when I do a make. The complier error is as
> > follows:
>
> > make[5]: Leaving directory `/data/proto/distro/commonc++/branches/
> > 0.6.4-dti.3x/*libiconv*-1.13.1'