← Back to team overview

rohc team mailing list archive

Re: android compilation


Not much improvement

export NDK="/home/rohcuser/development/android-ndk-r8e"


export PATH="$NDK/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export SYS_ROOT="$NDK/platforms/android-8/arch-arm/"
export CC="arm-linux-androideabi-gcc --sysroot=$SYS_ROOT"
export LD="arm-linux-androideabi-ld"
export AR="arm-linux-androideabi-ar"
export RANLIB="arm-linux-androideabi-ranlib"
export STRIP="arm-linux-androideabi-strip"

mkdir -p $INSTALL_DIR

echo "PATH = $PATH"
echo "NDK = $NDK"

#./configure --build=x86_64-unknown-linux-gnu --host=arm-linux-androideabi --prefix=$INSTALL_DIR LIBS="-lc -lgcc" --enable-static --disable-shared --disable-rohc-tests --disable-rohc-stats --disable-doc --disable-app-fuzzer --disable-app-performance --disable-app-sniffer --disable-app-tunnel --disable-linux-kernel-module
./autogen.sh --host=arm-linux-androideabi --prefix=$INSTALL_DIR --enable-static --disable-shared --disable-rohc-tests --disable-rohc-stats --disable-doc --disable-app-fuzzer --disable-app-performance --disable-app-sniffer --disable-app-tunnel --disable-linux-kernel-module

#./configure --host=arm-linux-androideabi --prefix=$INSTALL_DIR --enable-static --disable-shared --enable-examples

echo '***** CLEANING ****'
make clean
echo "***** BUILDING ****"
make all

-------------------------------- results ----------------------------------

PATH = /home/rohcuser/development/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
NDK = /home/rohcuser/development/android-ndk-r8e
Running aclocal... done
Running libtoolize... done
Running autoconf... done
Running autoheader... done
Running automake... done
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-androideabi-strip... arm-linux-androideabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized
configure: error: /bin/sh ./config.sub arm-linux-androideabi failed
***** CLEANING ****
make: *** No rule to make target `clean'.  Stop.
***** BUILDING ****
make: *** No rule to make target `all'.  Stop.

 From: Didier Barvaux <didier@xxxxxxxxxxx>
Cc: rohc@xxxxxxxxxxxxxxxxxxx 
Sent: Wednesday, July 10, 2013 2:51 PM
Subject: Re: [Rohc] android compilation

> = /opt/android-ndk-r8d/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
> ...
> checking build system type... x86_64-unknown-linux-gnu

You're mixing x86 and x86_64. If your build system is x86, use the NDK
for x86. If your build system is x86_64, use the NDK for x86_64.

Also remove the --build option. The script should find the correct one
by itself.

If it still fails, send me the new output.

Mailing list: https://launchpad.net/~rohc
Post to     : rohc@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~rohc
More help   : https://help.launchpad.net/ListHelp

Follow ups