I am doing extactly the same thing.
However, the dl library is causing me troubles.
Modified parts of Android.mk look like this:
//////////////////////////
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/.. \
$(LOCAL_PATH)/../.. \
$(LOCAL_PATH)/../include
#LOCAL_SHARED_LIBRARIES += libz
#ifneq ($(TARGET_SIMULATOR),true)
# LOCAL_SHARED_LIBRARIES += libdl
#endif
LOCAL_LDLIBS += -ldl
LOCAL_MODULE:= crypto
include $(BUILD_STATIC_LIBRARY)
//////////////////////////
But the errors I get:
...
Compile thumb : crypto <= /cygdrive/i/android/projects/gvtalk/jni/
openssl/crypto/0.9.9-dev/sha/sha512-armv4.S
StaticLibrary : libcrypto.a
SharedLibrary : libjingle.so
/cygdrive/i/android/projects/gvtalk/bin/ndk/local/armeabi/
libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
/cygdrive/i/android/projects/gvtalk/jni/openssl/crypto/dso/dso_dlfcn.c:
261: undefined reference to `dlsym'
/cygdrive/i/android/projects/gvtalk/jni/openssl/crypto/dso/dso_dlfcn.c:
265: undefined reference to `dlerror'
/cygdrive/i/android/projects/gvtalk/bin/ndk/local/armeabi/
libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
/cygdrive/i/android/projects/gvtalk/jni/openssl/crypto/dso/dso_dlfcn.c:
227: undefined reference to `dlsym'
/cygdrive/i/android/projects/gvtalk/jni/openssl/crypto/dso/dso_dlfcn.c:
231: undefined reference to `dlerror'
/cygdrive/i/android/projects/gvtalk/bin/ndk/local/armeabi/
libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
/cygdrive/i/android/projects/gvtalk/jni/openssl/crypto/dso/dso_dlfcn.c:
203: undefined reference to `dlclose'
...
It's like we ain't linking to the dl library? Any ideas ?
On Jun 24, 11:05 am, Abhyudai Shanker <
abhyudai.shan...@gmail.com>
wrote:
> just replace the small '.s' a capital '.S' in
android.mk.
>
> On Thu, Jun 24, 2010 at 3:34 PM, Abhyudai Shanker <
>
>
abhyudai.shan...@gmail.com> wrote:
> > Thanks for your quick reply David,
>
> > The thing worked.
>
> > I would just like to add that in addition to David's solution, the .s files
> > that were mentioned in the crypto folder
android.mk had to be converted to
> > .S (i.e. capital 's').
>
> > then it just works!!!!
>
> > On Tue, Jun 22, 2010 at 12:17 PM, David Turner <
di...@android.com> wrote:
>
> >> Remove the line that says LOCAL_SHARED_LIBRARIES := libdl in your
> >> Android.mk files.
> >> These are only useful for the full build, when generating platform images.
>
> >> On Mon, Jun 21, 2010 at 11:17 PM, Abhyudai Shanker <
> >>
abhyudai.shan...@gmail.com> wrote:
>
> >>> 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%3...
>
> >>> 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
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "android-ndk" group.
> >>> To post to this group, send email to
andro...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>>
android-ndk...@googlegroups.com<
android-ndk%2Bunsu...@googlegroups.com>
> >>> .
> >>
android-ndk...@googlegroups.com<
android-ndk%2Bunsu...@googlegroups.com>
> >> .