在Android中使用卷曲 [英] Using cURL in Android

查看:172
本文介绍了在Android中使用卷曲的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在本土code使用卷曲图书馆在我的Andr​​oid应用程序(使用NDK R5B,最新的)。研究网上后,似乎用卷曲的Andr​​oid的唯一途径是建立与卷曲整个Android的源代码树中它,并以某种方式这产生了卷曲的工作在Android必要的配置文件。我没有任何经验,从头开始构建的Andr​​oid源,不知道是否有一种方法可以使用​​Android的卷曲库,而无需从源代码重建机器人。理想的情况下,能够只使用卷曲为静态或共享库将是完美的。我尝试以下这里提到的步骤...

I would like to use cURL library in my android application in native code (using NDK r5b, the latest). After researching online, it seems the only way to use cURL in android is to build the entire android source tree with curl in it, and somehow this generates a necessary config file for cURL to work on Android. I don't have any experience building the android sources from scratch and was wondering if there is a way to use cURL library in Android without having to rebuild android from source. Ideally, being able to just use cURL as a static or shared library would be perfect. I tried following the steps mentioned here...

<一个href="http://curl.haxx.se/mail/lib-2009-12/0071.html">http://curl.haxx.se/mail/lib-2009-12/0071.html

但最终得到的错误在文件curlrules.h像 CURL_SIZEOF_LONG定义缺少!

but end up getting errors in the file curlrules.h like CURL_SIZEOF_LONG definition is missing!

我认为这些错误是由于没有我提到的配置文件,但在上面的链接中的步骤并没有提及任何这一点,并成功报道。任何想法?

I assume these errors are due to not having that config file I mentioned but the steps in the above link didn't mention any of that and reported success. Any ideas?

推荐答案

我在一个类似的追求!我工作的一个应用程序,现在需要卷曲,只是今晚我的搜索我碰到您的文章在这里,我所认为的答案:

I'm on a similar quest! I'm working on an app right now that requires cURL and just tonight in my search I came across your post here, and what I believe to be the answer:

<一个href="http://thesoftwarerogue.blogspot.com/2010/05/porting-of-libcurl-to-android-os-using.html">http://thesoftwarerogue.blogspot.com/2010/05/porting-of-libcurl-to-android-os-using.html

不像你所引用的链接,有几个新的评论,从其他人谁声称有成功也按照指示。如果你能得到它在我面前编译,并不会介意给我的图书馆,在这里后跟进! (我是pretty的新的堆栈溢出,所以我不知道你是否能分)。希望这个作品出来我们俩!

Unlike the link you referenced, there are several follow-up comments from other people who claim to have success also following the instructions. If you manage to get it compiled before me, and wouldn't mind sending me the library, post a follow up here! (I'm pretty new to stack overflow so I don't know if you can pm.) Hope this works out for both of us!

这篇关于在Android中使用卷曲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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