[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compile problem when cross compiling
From: |
t3sserakt |
Subject: |
Compile problem when cross compiling |
Date: |
Fri, 14 Jun 2024 09:43:27 +0000 |
Hi *,
some problem trying to cross compile (see below).
Thanx in advance for any help.
t3sserakt
v0.22.5
xport NDK=/home/user/Android/Sdk/ndk/26.1.10909125
export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64
export TARGET=aarch64-linux-android
export API=25
export AR=$TOOLCHAIN/bin/llvm-ar
export CC=$TOOLCHAIN/bin/$TARGET$API-clang
export AS=$CC
export CXX=$TOOLCHAIN/bin/$TARGET$API-clang++
export LD=$TOOLCHAIN/bin/ld
export RANLIB=$TOOLCHAIN/bin/llvm-ranlib
export STRIP=$TOOLCHAIN/bin/llvm-strip
PATH=$PATH:$TOOLCHAIN/bin/
autopull.sh
autogen.sh
./configure --host=$TARGET
make
/home/user/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android25-clang
-DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -Iglib -DIN_LIBTEXTSTYLE
-DLIBXML_STATIC -I./libcroco -DDEPENDS_ON_LIBICONV=1 -Wall
-Wdate-time -Wdisabled-optimization -Wdouble-promotion -Wextra
-Winit-self -Winvalid-pch -Wmissing-include-dirs -Wnested-externs
-Wnull-dereference -Woverlength-strings -Wpacked -Wpointer-arith
-Wstack-protector -Wstrict-overflow -Wsystem-headers -Wuninitialized
-Wunknown-pragmas -Wvariadic-macros -Wwrite-strings -Wformat=2
-Wno-empty-body -Wno-cast-align -Wno-format-nonliteral -Wno-sign-compare
-Wno-type-limits -Wno-unused-parameter -g -O2 -Wall -w -c ialloc.c
/home/user/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android25-clang
-DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I.. -Iglib -DIN_LIBTEXTSTYLE
-DLIBXML_STATIC -I./libcroco -DDEPENDS_ON_LIBICONV=1 -Wall
-Wdate-time -Wdisabled-optimization -Wdouble-promotion -Wextra
-Winit-self -Winvalid-pch -Wmissing-include-dirs -Wnested-externs
-Wnull-dereference -Woverlength-strings -Wpacked -Wpointer-arith
-Wstack-protector -Wstrict-overflow -Wsystem-headers -Wuninitialized
-Wunknown-pragmas -Wvariadic-macros -Wwrite-strings -Wformat=2
-Wno-empty-body -Wno-cast-align -Wno-format-nonliteral -Wno-sign-compare
-Wno-type-limits -Wno-unused-parameter -g -O2 -Wall -w -c iconv-ostream.c
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.
make[4]: *** [Makefile:6194: config.h] Error 1
make[4]: Leaving directory '/home/user/Documents/gettext/libtextstyle/lib'
make[3]: *** [Makefile:1999: all-recursive] Error 1
make[3]: Leaving directory '/home/user/Documents/gettext/libtextstyle'
make[2]: *** [Makefile:1927: all] Error 2
make[2]: Leaving directory '/home/user/Documents/gettext/libtextstyle'
make[1]: *** [Makefile:406: all-recursive] Error 1
make[1]: Leaving directory '/home/user/Documents/gettext'
make: *** [Makefile:362: all] Error 2
- Compile problem when cross compiling,
t3sserakt <=