cURL / Mailing Lists / curl-library / Single Mail

curl-library

Porting curl to android

From: Rick Breen <rick.breen_at_logicpd.com>
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