How to import the cURL built library into Android NDK [duplicate]

∥☆過路亽.° 提交于 2019-12-25 01:08:16

问题


I'm trying to setup cURL (or libcurl) on the .c side of my android application (in the ndk) and in order to keep this as simple as possible I'm trying to import an already built library into my project, instead of the whole source code.

I have found several websites on how to import cURL as source code on Android, but even those references seem to be dated.

In the curl download page (http://curl.haxx.se/download.html) there's an Android library, but there's not much information about it.

I have read the readme and the rest of the (few) docs that come with the library, and I have the following questions:

  • The readme makes reference to ARM. Is this library only compiled for ARM, or can I also use it with x86, x86_64, mips, and other architectures?
  • Do I just need the content of the data folder?
  • How do I call the curl library inside of the c code?

Thanks for your help!

来源:https://stackoverflow.com/questions/28633243/how-to-import-the-curl-built-library-into-android-ndk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!