简体   繁体   中英

How to compile dumpsys as an standalone application with Android NDK?

I would like to compile dumpsys as an standalone application using Android NDK. However, when I enter the command ndk-build I encounter the following error:

fatal error: utils/Log.h: No such file or directory

Is it at all possible to compile dumpsys as an standalone app?

The source code and Android.mk file can be found at https://android.googlesource.com/platform/frameworks/native/+/lollipop-mr1-release/cmds/dumpsys

utils/Log.h isn't part of the NDK.

The AOSP sources aren't meant to be used with ndk-build.

You can compile dumpsys in-tree by following the instructions on how to setup an AOSP build and by calling mm from its sources directory (so you will not have to build the whole AOSP).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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