简体   繁体   English

为android编译linux工具perf

[英]Compile linux tool perf for android

I want to compile pref for android device and i did that base on the guide the guide . 我想为Android设备编译pref,我根据指南指南做了 One i set NDK environment use Android NDK r9 一个我设置NDK环境使用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

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:NDK_TOOLCHAIN被定义为不受支持的值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 Android NDK:请使用以下值之一: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 . 建立/核心/ init.mk:555:*的Android NDK:中止。 Stop. 停止。

Have you looked at external/linux-tools-perf/ inside android repository? 你看过android / linux-tools-perf /里面的android存储库吗?

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

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- 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 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. 如果它不起作用,我建议你重新检查$ NDK_TOOLCHAIN包含的整体路径。

Thanks , Jain 谢谢,耆那教

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM