How to link a prebuilt shared Library to an Android NDK project?

前端 未结 4 1873
醉话见心
醉话见心 2020-11-27 18:28

Here I used this Android.mk file in jni/ folder.

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_PATH := $(call my-dir)
         


        
4条回答
  •  旧时难觅i
    2020-11-27 19:05

    Have a look at the ndk documentation for prebuilts:

    android-ndk/docs/PREBUILTS.html

    You have to change

    LOCAL_SHARED_LIBRARIES :=../lib/libpackext.so.1.0
    

    to

    LOCAL_SHARED_LIBRARIES := packext
    

    Be sure that your folder containing the Android.mk for the packext module is named packext and can be found in in your NDK_MODULE_PATH.

提交回复
热议问题