c++ - Include .so library to android ndk project -
i'm beginning android ndk. have compile native library 1.6 sdk (mupdf) requires ljnigraphics lib (which added lately on 2.2). i'm trying include compiled library android project can't figure out how it. 1. best way ? 2. if yes how should proceed ? tutorial or information start appreciated. 3. if not know pdf library use on android 1.6 ?
here android.mk file :
local_path := $(call my-dir) top_local_path := $(local_path) mupdf_root := .. include $(top_local_path)/core.mk include $(top_local_path)/thirdparty.mk include $(clear_vars) local_module := ljnigraphics local_src_files := ljnigraphics.so include $(prebuilt_static_library) include $(clear_vars) local_c_includes := \ $(mupdf_root)/draw \ $(mupdf_root)/fitz \ $(mupdf_root)/mupdf local_cflags := local_module := mupdf local_src_files := mupdf.c local_static_libraries := mupdfcore mupdfthirdparty ljnigraphics local_ldlibs := -lm -llog include $(build_shared_library) edit : succeeded compiling mupdf library android 1.6 work of hans-werner hilse (http://code.google.com/p/droidreader/).
a lightweight, fast pdf , xps viewer capable run on multiple platforms, including android , ios. https://code.google.com/p/apv/ try this...
Comments
Post a Comment