← Back to team overview

rohc team mailing list archive

Re: android compilation

 

I have updated from bazaar and tried both options in your arm build instructions neither works.

my script contains:
export NDK="/opt/android-ndk-r8d"

cd $SRC_DIR

export PATH="$NDK/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export LD_LIBRARY_PATH=""
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

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

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

PATH = /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
NDK = /opt/android-ndk-r8d
configure: WARNING: you should use --build, --host, --target
configure: WARNING: unrecognized options: --disable-app-performance, --disable-app-sniffer, --disable-app-tunnel
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>
To: rohc@xxxxxxxxxxxxxxxxxxx 
Sent: Tuesday, July 9, 2013 4:12 PM
Subject: Re: [Rohc] android compilation
 

Hello,

> Similar to what I did with 1.5.1 I'm not getting around to porting
> 1.6.0 to android; however I'm getting this configuration error when I
> run configure that I did not get with 1.5.1:
> 
> checking host system type. . . Invalid configuration
> `arm-linux-androideabi': system `androideabi' not recognized

Did you follow the instructions from [1] ? If not, follow them. If yes,
please try again as I have just updated them to use:
- the configure script instead of the autogen.sh script for release,
- the correct options for disabling applications.

Regards,
Didier

[1] http://rohc-lib.org/wiki/doku.php?id=library-install-sources&#cross-compilation_for_android_arm_on_unix-like_systems
_______________________________________________
Mailing list: https://launchpad.net/~rohc
Post to     : rohc@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~rohc
More help   : https://help.launchpad.net/ListHelp

Follow ups

References