![]() Include $( BUILD_SHARED_LIBRARY ) #If you compile a static library, you need Application. LOCAL_STATIC_LIBRARIES := thirdlib1 #or LOCAL_SHARED_LIBRARY Include $( _LIBRARY_STAT ) or PREBUILT_SHARED_LIBRARY #LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include STAT LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libthird1.a # or $(so_path) /libthird1.so LOCAL_MODULE := thirdlib1 # name it whatever Situation 4: There is a third-party static library (dynamic library), compiled static library (dynamic library)Īll codes and files are under $project/jni by default, otherwise there are special instructions. Situation 3: Compile dynamic library + static library NDK compile and use static and dynamic libraries so library you want will be generated in libs/x86 under the project directory. At this time, compilation errors may occur in the command line, such as the header file cannot be found, the function cannot be found Wait a minute, you can change it by looking carefully. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |