ImageVerifierCode 换一换
格式:DOCX , 页数:25 ,大小:22.09KB ,
资源ID:2862244      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/2862244.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(curl编译.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

curl编译.docx

1、curl编译编译libcurl1 libcurl相关链接http:/curl.haxx.se/libcurl 主页http:/curl.haxx.se/download/curl-7.21.3.tar.bz2 下载 Http应用 HTTP/FTP客户端开发库:libwww、libcurl、libfetch 以及更多 libcurl使用的简单例子 libcurl编程流程2 编译参考的地址:http:/curl.haxx.se/mail/lib-2009-12/0071.html3 编译使用cygwin+android sdk1.5 + NDK 6编译libcurl过程:3.1 环境搭建1、 搭建

2、环境就不说了网上很多。3.2 编译下载源码,在cygwin命令行中切换到curl目录下。执行./configure命令,生成curl_config.h文件。参照上面连接,把没有的包相关宏定义关闭。通过NDk编译就可以生成静态库。生成静态库会有一些警告:把buildplatformsandroid-3arch-armusrinclude中的time.h,和unistd.h中有问题的代码修改一下,就可以避免警告:time.h中把extern clock_t clock();改成 extern clock_t clock(void);,把unistd.h中的extern unsigned int _

3、page_shift;改成 unsigned int _page_shift;就可以避免生成静态库时出现警告。我的cur_config.h文件如下:但是生成动态库时会出错:生成动态库用到的Android.mk文件如下:我讲源码、头文件所在curl文件夹都放在MK所在目录。4 Android.mkLOCAL_PATH:= $(call my-dir)common_CFLAGS := -Wpointer-arith -Wwrite-strings -Wunused -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototyp

4、es -Wno-long-long -Wfloat-equal -Wno-multichar -Wsign-compare -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wno-system-headers -DHAVE_CONFIG_H include $(CLEAR_VARS)LOCAL_SRC_FILES := axtls.c base64.c connect.c content_encoding.c cookie.c curl_addrinfo.c cur

5、l_fnmatch.c curl_gethostname.c curl_memrchr.c curl_rand.c curl_rtmp.c curl_sspi.c curl_threads.c dict.c easy.c escape.c file.c fileinfo.c formdata.c ftp.c ftplistparser.c getenv.c getinfo.c gopher.c gtls.c hash.c hmac.c hostares.c hostasyn.c hostip4.c hostip6.c hostip.c hostsyn.c hostthre.c http.c h

6、ttp_chunks.c http_digest.c http_negotiate.c http_negotiate_sspi.c http_ntlm.c idn_win32.c if2ip.c imap.c inet_ntop.c inet_pton.c krb4.c krb5.c ldap.c llist.c md4.c md5.c memdebug.c mprintf.c multi.c netrc.c nonblock.c nss.c openldap.c parsedate.c pingpong.c polarssl.c pop3.c progress.c qssl.c rawstr

7、.c rtsp.c security.c select.c sendf.c share.c slist.c smtp.c socks.c socks_gssapi.c socks_sspi.c speedcheck.c splay.c ssh.c sslgen.c ssluse.c strdup.c strequal.c strerror.c strtok.c strtoofft.c telnet.c tftp.c timeval.c transfer.c url.c version.c warnless.c wildcard.c LOCAL_CFLAGS += $(common_CFLAGS

8、)LOCAL_C_INCLUDES += $(LOCAL_PATH)/include/LOCAL_MODULE:= curjniinclude $(BUILD_SHARED_LIBRARY)5 cur_config.h/* lib/curl_config.h. Generated from curl_config.h.in by configure. */* lib/curl_config.h.in. Generated from configure.ac by autoheader. */* when building libcurl itself */* #undef BUILDING_L

9、IBCURL */* Location of default ca bundle */* #undef CURL_CA_BUNDLE */* Location of default ca path */* #undef CURL_CA_PATH */* to disable cookies support */* #undef CURL_DISABLE_COOKIES */* to disable cryptographic authentication */* #undef CURL_DISABLE_CRYPTO_AUTH */* to disable DICT */* #undef CUR

10、L_DISABLE_DICT */* to disable FILE */* #undef CURL_DISABLE_FILE */* to disable FTP */* #undef CURL_DISABLE_FTP */* to disable Gopher */* #undef CURL_DISABLE_GOPHER */* to disable HTTP */* #undef CURL_DISABLE_HTTP */* to disable IMAP */* #undef CURL_DISABLE_IMAP */* to disable LDAP */* #undef CURL_DI

11、SABLE_LDAP */#define CURL_DISABLE_LDAP 1/* to disable LDAPS */* #undef CURL_DISABLE_LDAPS */* to disable POP3 */* #undef CURL_DISABLE_POP3 */* to disable proxies */* #undef CURL_DISABLE_PROXY */* to disable RTSP */* #undef CURL_DISABLE_RTSP */* to disable SMTP */* #undef CURL_DISABLE_SMTP */* to dis

12、able TELNET */* #undef CURL_DISABLE_TELNET */* to disable TFTP */* #undef CURL_DISABLE_TFTP */* to disable TLS-SRP authentication */* #undef CURL_DISABLE_TLS_SRP */* to disable verbose strings */* #undef CURL_DISABLE_VERBOSE_STRINGS */* to make a symbol visible */* #undef CURL_EXTERN_SYMBOL */* to e

13、nable hidden symbols */* #undef CURL_HIDDEN_SYMBOLS */* Use Windows LDAP implementation */* #undef CURL_LDAP_WIN */* when not building a shared library */* #undef CURL_STATICLIB */* your Entropy Gathering Daemon socket pathname */* #undef EGD_SOCKET */* Define if you want to enable IPv6 support */*

14、#undef ENABLE_IPV6 */* Define to the type qualifier of arg 1 for getnameinfo. */#define GETNAMEINFO_QUAL_ARG1 const/* Define to the type of arg 1 for getnameinfo. */#define GETNAMEINFO_TYPE_ARG1 struct sockaddr */* Define to the type of arg 2 for getnameinfo. */#define GETNAMEINFO_TYPE_ARG2 socklen_t/* Define to the type of args 4 and 6 for getnameinfo. */#define GETNAMEINFO_TYPE_ARG46 int/* Define to the type of arg 7 for getnameinfo

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1