I tried following your steps for adding libcurl to Android, but I am
getting following errors,
make: execvp: /bin/bash: Argument list too long
target thumb C: libcurl <= external/curl-7.18.2/lib/speedcheck.c
In file included from external/curl-7.18.2/lib/setup.h:49,
from external/curl-7.18.2/lib/speedcheck.c:24:
external/curl-7.18.2/lib/config.h:323:1: warning: "HAVE_MALLOC_H"
redefined
In file included from <command-line>:0:
./system/core/include/arch/linux-arm/AndroidConfig.h:202:1: warning:
this is the location of the previous definition
In file included from external/curl-7.18.2/lib/setup.h:49,
from external/curl-7.18.2/lib/speedcheck.c:24:
external/curl-7.18.2/lib/config.h:582:1: warning: "HAVE_TERMIO_H"
redefined
In file included from <command-line>:0:
./system/core/include/arch/linux-arm/AndroidConfig.h:92:1: warning:
this is the location of the previous definition
In file included from external/curl-7.18.2/lib/setup_once.h:59,
from external/curl-7.18.2/lib/setup.h:374,
from external/curl-7.18.2/lib/speedcheck.c:24:
bionic/libc/include/time.h:92: warning: function declaration isn't a
prototype
In file included from out/target/product/generic/obj/include/curl/
curl.h:1809,
from external/curl-7.18.2/lib/speedcheck.c:29:
out/target/product/generic/obj/include/curl/multi.h:132: error:
expected declaration specifiers or '...' before 'fd_set'
out/target/product/generic/obj/include/curl/multi.h:133: error:
expected declaration specifiers or '...' before 'fd_set'
out/target/product/generic/obj/include/curl/multi.h:134: error:
expected declaration specifiers or '...' before 'fd_set'
In file included from external/curl-7.18.2/lib/urldata.h:110,
from external/curl-7.18.2/lib/speedcheck.c:30:
external/curl-7.18.2/lib/hostip.h:103:5: warning: #warning including
arpa/inet.h
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
libcurl_intermediates/speedcheck.o] Error 1
If you could please guide me on where I am going wrong with this
integration.
Thanks and Regards,
Neeraj
On Apr 3, 10:12 pm, Tom Bova <tb...@xtone.com> wrote:
> Pat,
>
> I have got version 7.18.2 of libcurl built for android and have used it
> successfully.
>
> I uploaded the Android.mk, curl.h and hostip.h files to the upload section
> of the android-ndk group page. curl.h and hostip.h are slightly modified
> for the originals in the curl source.
>
> Download version 7.18.2 of curl under the external directory of your build
> tree and put these files in the lib subdirectory of curl. This should let
> you build libcurl.so
>
> - Tom
>