Android Openssl library - libcrypto.so and libssl.so

559 views
Skip to first unread message

Abhyudai Shanker

unread,
Jun 22, 2010, 1:45:37 AM6/22/10
to android...@googlegroups.com
I am tryin to 'make' the code I have downloaded from the link :
http://www.google.com/url?sa=D&q=http://android.git.kernel.org/%3Fp%3Dplatform/external/openssl.git%3Ba%3Dsummary&usg=AFQjCNHSVU0QjNdHMsLAuZX-ln7YKqEmCA

This code provides libcrypto.so and libssl.so which I am interested in.

I am basically trying to get libcrypto.so and libssl.so which would required to run my openssl based code on my htc nexus one phone.

However, when i try to run the above downloaded code, it compiles all the files required for libcrypto.so but gives the error:
make: *** No rule to make target `/cygdrive/c/android-ndk-r4/samples/DMVPNC/bin/
ndk/local/armeabi/libdl.so', needed by `/cygdrive/c/android-ndk-r4/samples/DMVPN
C/bin/ndk/local/armeabi/libcrypto.so'.  Stop.

However, other projects which require the same libdl.so are getting it.

I am not able to understand why this is happening. Please guide me as to how i should proceed

Looking forward to hear from you

Abhyudai Shanker

David Turner

unread,
Jun 22, 2010, 2:02:50 AM6/22/10
to abhyudai...@gmail.com, android...@googlegroups.com
Remove libdl from your LOCAL_SHARED_LIBRARIES, and add LOCAL_LDLIBS += -ldl instead in your Android.mk

The Android.mk is for a full system/firmware build, and assumes that libdl is going to be built at the same time than libssl.

For the NDK, you need to tell your libcrypto/libssl to rely on the version that is already installed on the target system.

David Turner

unread,
Jun 22, 2010, 2:03:39 AM6/22/10
to abhyudai...@gmail.com, android...@googlegroups.com
Note that this should go to android-ndk, not android-porting, which is about porting the Android platform to different devices.
Reply all
Reply to author
Forward
0 new messages