Reputation: 111
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.
Upvotes: 9
Views: 6151
Reputation: 1141
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
Upvotes: 2
Reputation: 3244
Have you looked at external/linux-tools-perf/ inside android repository?
https://android.googlesource.com/platform/external/linux-tools-perf/
Upvotes: 1
Reputation: 4277
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
Upvotes: 0