Revision: 5852 http://sourceforge.net/p/smartbody/code/5852 Author:   fastict
Date: 2014-09-19 05:11:13 +0000 (Fri, 19 Sep 2014)
Log Message:
-----------
branch - android - newly compiled libsndfile for android ndk

platform:
Ubuntu 13.04
Android NDK r10

Steps documented here: https://confluence.ict.usc.edu/display/VHTK/Building+the+Toolkit#BuildingtheToolkit-3rdPartyInstructions -------

5. libsndfile http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz tar zxvf libsndfile-1.0.25.tar.gz
create file setup.sh:
modify DEV_HOME as required

#!/bin/sh

export DEV_HOME="/var/chroot/home/fast/Desktop/installers/android"
export NDK_ROOT="$DEV_HOME/android-ndk-r10"
export TOOLCHAIN="$NDK_ROOT/platforms/android-9/arch-arm"
export ARMVERSION=7
export SYSROOT="$TOOLCHAIN"
export CFLAGS="-march=armv$ARMVERSION -mthumb --pipe --sysroot=$SYSROOT -I$SYSROOT/usr/include -I$NDK_ROOT/sources/cxx-stl/stlport/stlport -I$NDK_ROOT/sources/cxx-stl/gabi++/include -I$NDK_ROOT/sources/cxx-stl/gnu-libstdc++/4.6/include"
export CPPFLAGS="$CFLAGS"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-L$SYSROOT/usr/lib/ -L$SYSROOT/usr/lib/system -L$NDK_ROOT/sources/cxx-stl/gabi++/libs/armeabi -L$NDK_ROOT/sources/cxx-stl/libs/armeabi -L$NDK_ROOT/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi -lgnustl_static -lsupc++"
export CPATH="$NDK_ROOT/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin"
export CPP="$CPATH/arm-linux-androideabi-cpp"
export CXX="$CPATH/arm-linux-androideabi-g++"
export CC="$CPATH/arm-linux-androideabi-gcc"
export LD="$CPATH/arm-linux-androideabi-ld"
export AR="$CPATH/arm-linux-androideabi-ar"

./configure \
--host="arm-linux-eabi" \
--disable-external-libs \
--disable-sqlite


run ./setup.sh
make
copy ./src/.libs/libxerces-c.a to /android/lib

Revision Links:
-------------- http://sourceforge.net/p/smartbody/code/10 http://sourceforge.net/p/smartbody/code/10 Modified Paths:
--------------
branches/fast/smartbody-toolkit-5542/android/lib/libsndfile.a

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.