I was trying to cross compile LTP for android.
Steps I followed :
1. Got android ndk : android-ndk-r8d
2. Created my toolchain :
export TOOLCHAINDIR=/home/sagar/mytoolchain
export NDK=/home/sagar/android-ndk-r8d
export SYSROOT=$NDK/platforms/android-14/arch-arm
$NDK/build/tools/make-standalone-toolchain.sh --platform=android-14
--install-dir=$TOOLCHAINDIR
3. Setup cross compile:
export ARCH=arm-eabi
export CROSS_COMPILER=/home/sagar/mytoolchain/bin/arm-linux-androideabi
export NDK_ROOT=/home/sagar/android-ndk-r8d
export CC=$CROSS_COMPILER-gcc
export LD=$CROSS_COMPILER-ld
export AR=$CROSS_COMPILER-ar
export STRIP=$CROSS_COMPILER-strip
export RANLIB=$CROSS_COMPILER-ranlib
4. Configure & make LTP
./configure --host=arm-eabi
make
Expected OP : LTP successfully compiled
Actual result :
make -C "lib" \
-f "/home/sagar/work/ltp-full-20130109/lib/Makefile" all
make[1]: Entering directory `/home/sagar/work/ltp-full-20130109/lib'
/home/sagar/mytoolchain/bin/arm-linux-androideabi-gcc -g -O2 -g -O2
-fno-strict-aliasing -pipe -Wall -I../include -I../include -I../include
-I../include -c -o bytes_by_prefix.o bytes_by_prefix.c
bytes_by_prefix.c: In function 'bytes_by_prefix':
bytes_by_prefix.c:94:31: error: 'DEV_BSIZE' undeclared (first use in this
function)
bytes_by_prefix.c:94:31: note: each undeclared identifier is reported only
once for each function it appears in
bytes_by_prefix.c: In function 'lbytes_by_prefix':
bytes_by_prefix.c:142:32: error: 'DEV_BSIZE' undeclared (first use in this
function)
bytes_by_prefix.c: In function 'llbytes_by_prefix':
bytes_by_prefix.c:193:37: error: 'DEV_BSIZE' undeclared (first use in this
function)
make[1]: *** [bytes_by_prefix.o] Error 1
make[1]: Leaving directory `/home/sagar/work/ltp-full-20130109/lib'
make: *** [lib-all] Error 2
Any idea how to solve this?
--
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
---
You received this message because you are subscribed to the Google Groups
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.