简体   繁体   English

如何在Android中嵌入AC库

[英]how to embed a c library in android

I have an iphone app. 我有一个iPhone应用程序。 I made my source code as boost library. 我将我的源代码制作为Boost库。 Is there any possibility to embed my library to my android app? 有可能将我的库嵌入到我的android应用中吗? I am using eclipse. 我正在使用日食。 Can any one send any link about this. 任何人都可以发送与此有关的任何链接。

At least a simple C or C++ library embedding to android and using those functions in my android app? 至少有一个简单的C或C ++库嵌入到android,并在我的android应用中使用这些功能?

You need to use Android NDK tool chain for cross compiling the library. 您需要使用Android NDK工具链来交叉编译该库。 This link shows how to use it - 此链接显示了如何使用它-

" http://www.cmumobileapps.com/2011/08/31/compiling-open-source-libraries-with-android-ndk-part-1/ " http://www.cmumobileapps.com/2011/08/31/compiling-open-source-libraries-with-android-ndk-part-1/

If you need support of STL, RTTI, C++ exception, then there's a patched up NDK available at http://www.crystax.net/android/ndk-r4.php 如果您需要STL,RTTI,C ++例外的支持,则可以在http://www.crystax.net/android/ndk-r4.php上使用修补的NDK

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

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