I have a complicated open source library that needs to be ported to Android NDK. First, I need to configure (. / Configure). I understand: I have to do cross-compile with / home/user/android-ndk/build/prebuilt/ linux-x86/arm-eabi-4.4.0/bin/arm-eabi-gcc I think right? This utility will correctly configures a library? If yes, then question 2:
1.I'm trying to compile such a library: libao. use these commands:
PREBUILT = / home/user/android-ndk/build/prebuilt/linux-x86/arm- eabi-4.4.0 PLATFORM = / home/user/android-ndk/build/platforms/android-3/arch-arm INSTALL = / home/user/sox-14.3.2/com export CC = "/ home/user/android-ndk/build/prebuilt/linux-x86/arm- eabi-4.4.0/bin/arm-eabi-gcc" export CFLAGS = "-fPIC-DANDROID" export LDFLAGS = "-Wl,-T, $ PREBUILT / arm-eabi / lib / ldscripts / armelf.x-Wl,-rpath-link = $ PLATFORM / usr / lib-L $ PLATFORM / usr / lib-nostdlib $ PREBUILT / lib/gcc/arm-eabi/4.4.0/crtbegin.o $ PREBUILT/ lib/gcc/arm-eabi/4.4.0/crtend.o-lc-lm-ldl " . / Configure - host = arm - with-gnu-ld - enable-shared \
At the end of the assembly receive the following: configure: error: No 16 bit type found on this platform!
What could this mean? How to fix and properly configure the library? Maybe I can somehow easier you can configure the library?