|
From: | t3sserakt |
Subject: | Re: Compile problem when cross compiling |
Date: | Sat, 15 Jun 2024 09:53:38 +0000 |
On 6/14/24 19:55, t3sserakt wrote:
On 6/14/24 15:40, Bruno Haible wrote:some problem trying to cross compile (see below). iconv-ostream.c:311:3: error: incompatible function pointer types initializing 'void (*)(iconv_ostream_t, ostream_flush_scope_t)' (aka 'void (*)(struct any_ostream_representation *, ostream_flush_scope_t)') with an expression of type 'void (iconv_ostream_t)' (aka 'void (struct any_ostream_representation *)') [-Wincompatible-function-pointer-types] iconv_ostream__flush, ^~~~~~~~~~~~~~~~~~~~ 1 error generated.It looks like HAVE_ICONV_H is not defined in your build. This means thatthe prerequisite iconv API is not available (or deficient) on your platform.See the DEPENDENCIES file. This fix is to build and install GNU libiconv first, and pass a --with-libiconv-prefix option to configure.That helped, thx!
I was wrong. I accidentally build for x86, because TARGET was not set when executing
./configure --prefix=/home/user/AndroidStudioProjects/GNUnet/distribution/gettext/lib/arm64-v8a --host=$TARGET --with-libiconv-prefix=~/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/
I still have the some issue. Contents of ~/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/ is /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/ /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/lib /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/lib/libiconv.so /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/lib/libcharset.so /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/lib/libiconv.la /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/lib/libcharset.a /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/lib/libcharset.la /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/bin /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/bin/iconv /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/include /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/include/iconv.h /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/include/localcharset.h /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/include/libcharset.h I stripped the share directory. Architecture of the shared library seems to be okfile /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/lib/libiconv.so /home/user/AndroidStudioProjects/GNUnet/distribution/libiconv/lib/arm64-v8a/lib/libiconv.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, with debug_info, not stripped
- t3sserakt
[Prev in Thread] | Current Thread | [Next in Thread] |