[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnu-libiconv] Error cross-compiling to Android as shared librar
From: |
Bruno Haible |
Subject: |
Re: [bug-gnu-libiconv] Error cross-compiling to Android as shared library |
Date: |
Thu, 02 Jul 2020 17:20:12 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-179-generic; KDE/5.18.0; x86_64; ; ) |
Hi,
Frederik Seiffert wrote:
> I’m trying to build libiconv as a shared library for Android, but it fails
> while building libcharset with the following error:
>
> > /bin/sh ../libtool --mode=install /usr/bin/install -c libcharset.la
> > lib/libcharset.la
> > libtool: install: /usr/bin/install -c .libs/libcharset.so lib/libcharset.so
> > install: .libs/libcharset.so: No such file or directory
>
> Building just the static library with --disable-shared works fine, and it
> looks like the object files are also built fine:
>
> > $ ls libcharset/lib/.libs/
> > libcharset.la libcharset.lai localcharset.o relocatable-stub.o
>
> Does anyone know why this might be happening or how to debug this further?
> I’ve attached the full configure and build log.
I haven't been able to create shared libraries even in a native compilation
on Android (with libtool).
Does the Android NDK mention such a restriction?
Or is libtool not customized for supporting Android? Does a web search reveal
possible adaptations for libtool on Android?
Bruno