Android NDK shared libraries -
i trying build native library android application. have 2 libraries , need link them in final library, have problems. android.mk code:
local_cflags := -wall -wfloat-equal -std=c99 local_path := $(call my-dir)/.. include $(clear_vars) local_module := cpu-lib local_export_c_includes := $(local_path)/cpu/inc local_export_cppflags := $(local_cflags) local_export_ldlibs := -llog local_src_files := $(local_path)/cpu/lib/$(target_arch_abi)/libdemodsp.so local_static_libraries := gnustl_static include $(prebuilt_shared_library) include $(clear_vars) local_module := dsp-lib local_export_c_includes := $(local_path)/dsp/inc local_export_cppflags := $(local_cflags) local_export_ldlibs := -llog local_src_files := $(local_path)/dsp/lib/$(target_arch_abi)/libfn_dsp.so local_static_libraries := gnustl_static include $(prebuilt_shared_library) include $(clear_vars) local_module := process local_src_files := process.cpp local_shared_libraries := cpu-lib dsp-lib include $(build_shared_library)
the problem dlopen won't find libfn_dsp.so. ndk-depends output:
ndk-depends libs\arm64-v8a\libprocess.so warning: not find library: ./obj/local/arm64-v8a/libfn_dsp.so libprocess.so liblog.so libdemodsp.so libstdc++.so libm.so libdl.so libc.so ./obj/local/arm64-v8a/libfn_dsp.so
it seems strange lib. know might be?
the libfn_dsp.so binary - whatever reason - built rpath. can use objdump utility (bundled in android ndk) see proof.
if cannot rebuild library, follow discussion here: can change 'rpath' in compiled binary?.
Comments
Post a Comment