简体   繁体   English

Android库的头文件

[英]Header files for library Android

I find shared library(.so) in Android my device. 我在我的设备的Android中找到共享库(.so)。 And I want use exports functions from it. 我想从中使用导出功能。 But how I understand, I need header files for this library. 但是据我了解,我需要该库的头文件。 Where I can find it on device? 在设备上哪里可以找到它? What dirrectories? 什么目录?

Most probably the headers won't be available on the device. 标头很可能在设备上不可用。

As they are only needed to link against the library not for running the program normally they aren't contained in the system image on your device. 由于只需要它们链接到库即可正常运行程序,因此它们不包含在设备的系统映像中。

You might want to take a look into the headers that come with the NDK if the header you are looking for is contained there. 如果要查找的标头包含在其中,则可能需要查看NDK随附的标头。 (see: http://developer.android.com/tools/sdk/ndk/index.html ) (请参阅: http : //developer.android.com/tools/sdk/ndk/index.html

If it isn't it is not part of the libraries google wants you to use as it is not considered to belong to the set of libraries google intends to keep stable. 如果不是,则它不是Google希望您使用的库的一部分,因为它不属于Google打算保持稳定的库集。

Nevertheless you'll be able to fetch the required headers from the sources belonging to the android version running on your device in this case. 不过,在这种情况下,您仍可以从属于设备上运行的android版本的源中获取所需的标头。 (see: http://source.android.com/ ) (请参阅: http : //source.android.com/

It might be possible those libraries won't be available any more after the next system upgrade then but that's especially the point about headers and libraries not included. 在下一次系统升级之后,这些库可能不再可用,但这尤其是关于包含标头和库的要点。

It's only guarenteed the libraries included in the NDK will available. 仅保证NDK中包含的库可用。

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

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