android curl 软件,Curl: Porting curl to android

Date: Thu, 3 Jul 2014 14:45:04 +0000

Hello,

First, thank you (all) for your work and effort in supplying the world with very functional open source code.

This is probably a newb question, but I'm in the thick of porting code and bringing-up an Android-based Freescale iMX6 arm processor and we needed a bunch of libs including libcurl, but I am having trouble finding the correct ./configure options to create the headers and such, so that I can build libcurl on Android (from Ubuntu 12.04 64b).

I've been googling and grepping and trying all the ./configure options that seem to make sense and that have worked on this platform before, but, even though the configure script builds everything fine, later when I do the android make

make libcurl, I get:

external/curl/include/curl/curlrules.h:142:3: error: size of array '__curl_rule_01__' is negative

external/curl/include/curl/curlrules.h:152:3: error: size of array '__curl_rule_02__' is negative

make: *** [out/target/product/evk_6sl/obj/STATIC_LIBRARIES/libcurl_intermediates/lib/file.o] Error 1

This must be because the ./configure options I've been using are wrong for cross-compiling from Ubuntu64 to Android ARM? I have been using many variations of this command:

I can't be the only person trying to build libcurl on Android. Can anyone tell me what I'm doing wrong, or what the correct incantation is to ./configure to build from Ubuntu 64b for ARMv7 Freescale iMX6? (I don't think the details of the iMX6 are important, but I include that here anyway).

Huge thanks for any help,

Rick

./configure --host=arm-linux CROSS_COMPILE=~/aosp/myandroid/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-

./configure --host=arm-linux --enable-cross-compile -disable-tftp --disable-sspi --disable-ipv6 --disable-ldaps --disable-ldap --disable-telnet --disable-pop3 --disable-ftp --without-ssl --disable-imap --disable-smtp --disable-pop3 --disable-rtsp --disable-ares --without-ca-bundle --disable-warnings --disable-manual --without-nss --enable-shared --without-zlib --without-random --without-libidn

curl version: 7.21.2

Host setup: arm-unknown-linux-gnu

Install prefix: /usr/local

Compiler: gcc

SSL support: enabled (OpenSSL)

SSH support: no (--with-libssh2)

zlib support: enabled

krb4 support: no (--with-krb4*)

GSSAPI support: no (--with-gssapi)

SPNEGO support: no (--with-spnego)

resolver: default (--enable-ares / --enable-threaded-resolver)

ipv6 support: enabled

IDN support: enabled

Build libcurl: Shared=yes, Static=yes

Built-in manual: enabled

Verbose errors: enabled (--disable-verbose)

SSPI support: no (--enable-sspi)

ca cert bundle: /etc/ssl/certs/ca-certificates.crt

ca cert path: no

LDAP support: enabled (OpenLDAP)

LDAPS support: enabled

RTSP support: enabled

RTMP support: enabled (librtmp)

Protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTMP RTSP SMTP SMTPS TELNET TFTP

-------------------------------------------------------------------

List admin: http://cool.haxx.se/list/listinfo/curl-library

Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2014-07-04

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值