c - Android NDK compiling a few libraries -
so today i've tried use c code in android(part 2). i've tried use android ndk compiler, i'm stumbling across problem. when put source files in settings of android.mk, gives me undefined references while exact same piece of code worked on lets windows , dll's , exact same piece of code worked on compiler of ubuntu. question is, how can make error codes go away, how reference dependencies? following error me :
c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:44: error: undefined reference 'sb_memset' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:54: error: undefined reference 'il_connection_init' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:69: error: undefined reference 'sb_free' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:72: error: undefined reference 'il_connection_clear' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:83: error: undefined reference 'sb_ntcpyalloc_u' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:85: error: undefined reference 'il_connection_start' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:92: error: undefined reference 'sb_crypto_sha512' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:95: error: undefined reference 'il_packet_init' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:96: error: undefined reference 'il_packet_set_header' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:97: error: undefined reference 'il_packet_set_header' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:98: error: undefined reference 'il_connection_write' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:104: error: undefined reference 'sb_memset' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:105: error: undefined reference 'il_packet_clear' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:109: error: undefined reference 'sb_time_sleep_nsec' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:87: error: undefined reference 'sb_error_print' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:101: error: undefined reference 'sb_error_print' c:/android-ndk-r13b/samples/package/app/src/main/jni/package/ilcore/src/interfaces/../authentication/session.c:32: error: undefined reference 'sb_cprintln'
and android.mk file :
local_path := $(call my-dir) include $(clear_vars) local_module := ilcore local_src_files := /package/ilcore/src/interfaces/java.c local_c_includes := libstrawberry include $(build_shared_library)
i've tried put files missing next java.c gave me more dependency errors, big library solution put in there wouldnt practical. i've noticed gives me errors lot on normal c code, fine on different compilers. idea on how fix this? in advance(again)! ps: if missing please tell me, i'll add it.
Comments
Post a Comment