Hi,
Did any1 succeed with building and installing freetype in Android? I use the following script to build it:
#!/bin/sh
export PLATFORM_PREFIX=/opt/android/ndk-standalone_toolchain-r10e-4.9
export NDKROOT=/opt/android/android-ndk-r10e
export ARCH_ABI="arm-linux-androideabi-4.9"
export ANDROID_PLATFORM=android-21
sudo rm -rf $PLATFORM_PREFIX
sudo mkdir -p $PLATFORM_PREFIX
sudo $NDKROOT/build/tools/make-standalone-toolchain.sh --platform=$ANDROID_PLATFORM \
--system=linux-x86_64 --arch=arm --abis=armeabi-v7a --ndk-dir=$NDKROOT \
--toolchain=$ARCH_ABI --install-dir=$PLATFORM_PREFIX
sudo chmod -R 755 $PLATFORM_PREFIX
export PATH=$PLATFORM_PREFIX/bin:$PATH
export HOST=arm-linux-androideabi
BUILD_DIR=freetype-android-standalone-2.6
rm -rf $BUILD_DIR
mkdir $BUILD_DIR
cd $BUILD_DIR
../../src/freetype-2.6/configure --host=$HOST --prefix=$PLATFORM_PREFIX \
--without-zlib --with-png=no
make -j4
sudo make installAnd the "sudo make install" step it fails with:
libtool: install: arm-linux-androideabi-ranlib /opt/android/ndk-standalone_toolchain-r10e-4.9/lib/libfreetype.a
/home/yaronct/build/freetype-android-standalone-2.6/libtool: 1: eval: arm-linux-androideabi-ranlib: not found
/home/yaronct/src/freetype-2.6/builds/unix/install.mk:32: recipe for target 'install' failed
make: *** [install] Error 127but the file exists and it's in the "PATH":
which arm-linux-androideabi-ranlib
/opt/android/ndk-standalone_toolchain-r10e-4.9/bin/arm-linux-androideabi-ranlib
And has the required permissions:
-rwxr-xr-x 1 root root 732696 Nov 4 05:27 /opt/android/ndk-standalone_toolchain-r10e-4.9/bin/arm-linux-androideabi-ranlib
I'm using Debian 8.1 for AMD64.