不包括在NDK中的表皮吗? [英] Cutils not included in NDK?

查看:107
本文介绍了不包括在NDK中的表皮吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用cutils库和标头在NDK项目上实现ashmem,但是在我的系统中找不到与Cutils相关的任何内容.它在哪里或可以从哪里获得?

I need to use cutils library and headers to implement ashmem on my NDK project but I could not find anything related to cutils in my system. Where is it located or from where can I obtain it?

推荐答案

可在system/core/libcutils的源代码中找到的Android"cutils"库不是NDK的一部分.那里的代码随每个发行版而改变,因此您不能依赖它.

The Android "cutils" library, found in the sources at system/core/libcutils, is not part of the NDK. The code there changes with every release, so it's not something you can rely on.

目前最好的方法是将库中相关部分的源代码复制到您的项目中.

The best approach for now is to copy the source for the relevant portions of the library into your project.

这篇关于不包括在NDK中的表皮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆