7
votes

I want to compile pref for android device and i did that base on the guide the guide. One i set NDK environment use Android NDK r9

export NDK_TOOLCHAIN=${NDK}/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-

export NDK_SYSROOT=${NDK}/platforms/android-9/arch-arm

I run make with tool

make ARCH=arm CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}"

I recieve the error, so can you help me?

Android NDK: NDK_TOOLCHAIN is defined to the unsupported value android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-
Android NDK: Please use one of the following values: arm-linux-androideabi-4.6 arm-linux-androideabi-4.8 arm-linux-androideabi-clang3.2 arm-linux-androideabi-clang3.3 mipsel-linux-android-4.6 mipsel-linux-android-4.8 mipsel-linux-android-clang3.2 mipsel-linux-android-clang3.3 x86-4.6 x86-4.8 x86-clang3.2 x86-clang3.3
build/core/init.mk:555: * Android NDK: Aborting . Stop.

3
its 2015 im still having the same problem with the latest source also, by d way did you solve it ?kakeh
@kakeh any luck bro?Behnam
@Hiipe Trinh, did you get it working?Behnam

3 Answers

1
votes

Have you looked at external/linux-tools-perf/ inside android repository?

https://android.googlesource.com/platform/external/linux-tools-perf/

1
votes

Android bundles the simpleperf tool which is almost a drop-in replacement for many usages of perf/linux-tool-perf.

https://developer.android.com/ndk/guides/simpleperf

0
votes

the error clearly says , you need select appropriate value while exporting ,

export NDK_TOOLCHAIN=${NDK}/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-

should be

export NDK_TOOLCHAIN=${NDK}/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-4.6

If it dosen't work , i recommend you recheck the overall path which $NDK_TOOLCHAIN contains.

Thanks , Jain