android - One of many prebuilt libraries is not included on ndk-build -
i'm developing android application native code. have native prebuilt libs should included in project. first put prebuilt libs in libs/armeabi folder of project. problem these files got deleted on build.
so googled little bit , found have include these prebuilt libraries in android.mk file copied libs/armeabi folder.
here part of android.mk:
[...] include $(clear_vars) local_module := libavcodec local_src_files := $(target_arch_abi)/libavcodec.so include $(prebuilt_shared_library) include $(clear_vars) local_module := libavdevice local_src_files := $(target_arch_abi)/libavdevice.so include $(prebuilt_shared_library) include $(clear_vars) local_module := libavfilter local_src_files := $(target_arch_abi)/libavfilter.so include $(prebuilt_shared_library) include $(clear_vars) local_module := libavformat local_src_files := $(target_arch_abi)/libavformat.so include $(prebuilt_shared_library) include $(clear_vars) local_module := libavutil local_src_files := $(target_arch_abi)/libavutil.so include $(prebuilt_shared_library) include $(clear_vars) local_module := libmetaiosdk local_src_files := $(target_arch_abi)/libmetaiosdk.so include $(prebuilt_shared_library) include $(clear_vars) local_module := libswscale local_src_files := $(target_arch_abi)/libswscale.so include $(prebuilt_shared_library) include $(clear_vars) local_module := libswresample local_src_files := $(target_arch_abi)/libswresample.so include $(prebuilt_shared_library) [eof]
the problem is: of these files in same directory , of these files copied libs/armeabi folder. except 1 file! libswscale.so not copied. have no idea what's wrong here. not have typo in file name.
am missing something. perhaps had similar problem?
thanks in advance!
i did not know android.mk file proccessed unordered. last missing lib not copied because there error inbetween. mistake expected android.mk file proccessed in linear order top bottom. not case. missing library copied @ end of build because of local_module naming (all libs begin libav except libswscale).
hope save other people time (i took while realize it).
Comments
Post a Comment