freetype
[Top][All Lists]
Advanced

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

Re: [ft] Building Freetype 2.6 for Android fails with "arm-linux-android


From: Yaron Cohen-Tal
Subject: Re: [ft] Building Freetype 2.6 for Android fails with "arm-linux-androideabi-ranlib: not found".
Date: Fri, 26 Jun 2015 13:02:10 +0300

Damn I feel stupid...

Turns out "sudo" carries over all my other environment variables, but it doesn't carry over "PATH". I didn't manage to "sudo" while carrying over "PATH", so I ran by hand:

sudo -sE
export PATH=${PLATFORM_PREFIX}/bin:$PATH
make install

Thanx!

On Fri, Jun 26, 2015 at 12:15 PM, suzuki toshiya <address@hidden> wrote:
Your "sudo" carries over your PATH environment
when it invokes some commands as root?

Yaron Cohen-Tal wrote:
> 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 install
>
> And 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 127
>
> but 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.
>
> Thanx,
> Yaron.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype


reply via email to

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