curl-library
Re: Building with OpenSSL for Android with static library
Date: Thu, 13 Sep 2012 23:39:26 +0200
Hi Erik,
Am 11.09.2012 22:35, schrieb Erik Browne:
> I'm having trouble getting libcurl to build for Android. I'm using the
> standalone toolchain. I'm also building OpenSSL as a static library, and
> the library and include files are not in the standard places. I've got a
> script which does the following:
>
> export CPPFLAGS="-I/path/to/OpenSSL/include"
> export LDFLAGS="-L/path/to/where/libssl.a/is"
>
> ./configure --host=arm-linux-androideabi --disable-shared --with-ssl
>
> And here's the tail end of the output:
>
> checking for SSL_connect in -lssl... no
> checking for ssl with RSAglue/rsaref libs in use... checking for
> SSL_connect in -lssl... (cached) no
> no
> configure: error: OpenSSL libs and/or directories were not found where
> specified!
>
>
> Anyone got an idea for why this isn't working?
I've no idea why it doesnt work, but here's a way how it works:
read recent ./docs/INSTALL file:
https://github.com/bagder/curl/blob/master/docs/INSTALL
for recommendations about how to use pkgconfig to detect the dependent
libraries - that works fine for me, see f.e. my autobuilds:
http://curl.haxx.se/dev/log.cgi?id=20120913202337-5117
Gün.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-13