bug-gettext
[Top][All Lists]
Advanced

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

Re: Compile problem when cross compiling


From: t3sserakt
Subject: Re: Compile problem when cross compiling
Date: Sat, 15 Jun 2024 10:09:59 +0000

On 6/15/24 11:53, t3sserakt wrote:

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 that the 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.

After looking into the code, it seems like the the wrong overloading function is chosen, but I have no idea why.

- t3sserakt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]