.a库介绍和编译案例

.a库的介绍

库的名字一般是libxxxx.a,利用静态函数库编译成的文件比较大,是因为在链接阶段,会将汇编生成的目标文件.o与引用到的库一起链接打包到可执行文件,对应的链接方式为静态链接。静态库的代码在编译时链接到应用程序中,因此编译时库文件必须存在,并且需要通过"-L" 参数传递路径给编译器,应用程序在开始执行时,库函数代码将随程序一起调入进程内存段直到进程结束,执行过程中不需要原静态库存在。
优点:
即编译后的执行程序不需要外部的函数库支持,因为所有使用的函数都已经被编译进去了。
程序在运行时与函数库再无瓜葛,移植方便
缺点:静态函数库改变了,程序重新进行编译。

静态库编译案例

LOCAL_PATH:= $(call my-dir)
#Use true to build with renderscript, false to build without
WITH_RENDERSCRIPT = falseinclude $(CLEAR_VARS)# b/31559947, Some files caused clang-analyzer-* checks to segmentation fault.
LOCAL_TIDY_CHECKS := -clang-analyzer-*#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_core
LOCAL_RTTI_FLAG := -frtti
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/opencv2 \$(LOCAL_PATH)/modules/hal/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTS
LOCAL_LDLIBS := -llog -lz -ldl
# cxmathfuncs.cpp has implicit cast of int struct fields.
LOCAL_CLANG_CFLAGS += -Wno-c++11-narrowing
LOCAL_SRC_FILES := \modules/core/src/algorithm.cpp \modules/core/src/copy.cpp \modules/core/src/lda.cpp \modules/core/src/opengl.cpp \modules/core/src/stat.cpp \modules/core/src/alloc.cpp \modules/core/src/downhill_simplex.cpp \modules/core/src/lpsolver.cpp \modules/core/src/out.cpp \modules/core/src/stl.cpp \modules/core/src/arithm.cpp \modules/core/src/cuda_gpu_mat.cpp \modules/core/src/dxt.cpp \modules/core/src/mathfuncs.cpp \modules/core/src/parallel.cpp \modules/core/src/system.cpp \modules/core/src/array.cpp \modules/core/src/cuda_host_mem.cpp \modules/core/src/matmul.cpp \modules/core/src/parallel_pthreads.cpp \modules/core/src/tables.cpp \modules/core/src/cuda_info.cpp \modules/core/src/matop.cpp \modules/core/src/pca.cpp \modules/core/src/types.cpp \modules/core/src/command_line_parser.cpp \modules/core/src/cuda_stream.cpp \modules/core/src/glob.cpp \modules/core/src/matrix.cpp \modules/core/src/persistence.cpp \modules/core/src/umatrix.cpp \modules/core/src/conjugate_gradient.cpp \modules/core/src/datastructs.cpp \modules/core/src/kmeans.cpp \modules/core/src/ocl.cpp \modules/core/src/convert.cpp \modules/core/src/directx.cpp \modules/core/src/lapack.cpp \modules/core/src/rand.cppLOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_calib3d
LOCAL_LDLIBS := -ldl
LOCAL_RTTI_FLAG := -frtti
LOCAL_CPPFLAGS += -Wno-c++11-narrowing
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/calib3d/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/features2d/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/calib3d/src \$(LOCAL_PATH)/modules/calib3d \$(LOCAL_PATH)/opencv2 \$(LOCAL_PATH)/modules/java/generator/src/cpp/common.hLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTS
LOCAL_SRC_FILES := \modules/calib3d/src/calibinit.cpp \modules/calib3d/src/calibration.cpp \modules/calib3d/src/checkchessboard.cpp \modules/calib3d/src/circlesgrid.cpp \modules/calib3d/src/compat_ptsetreg.cpp \modules/calib3d/src/compat_stereo.cpp \modules/calib3d/src/dls.cpp \modules/calib3d/src/epnp.cpp \modules/calib3d/src/fisheye.cpp \modules/calib3d/src/five-point.cpp \modules/calib3d/src/fundam.cpp \modules/calib3d/src/homography_decomp.cpp \modules/calib3d/src/levmarq.cpp \modules/calib3d/src/p3p.cpp \modules/calib3d/src/polynom_solver.cpp \modules/calib3d/src/posit.cpp \modules/calib3d/src/ptsetreg.cpp \modules/calib3d/src/quadsubpix.cpp \modules/calib3d/src/rho.cpp \modules/calib3d/src/solvepnp.cpp \modules/calib3d/src/stereobm.cpp \modules/calib3d/src/stereosgbm.cpp \modules/calib3d/src/triangulate.cpp \modules/calib3d/src/upnp.cpp \modules/calib3d/opencl_kernels_calib3d.cppLOCAL_STATIC_LIBRARIES := libopencv_hal libopencv_imgproc libopencv_flann libopencv_core libopencv_ml libopencv_imgcodecs libopencv_videoio libopencv_highgui libopencv_features2dinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_features2d
LOCAL_HEADER_LIBRARIES := jni_headers
LOCAL_LDLIBS := -ldl
LOCAL_RTTI_FLAG := -frtti
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/features2d \$(LOCAL_PATH)/modules/features2d/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/opencv2 \$(LOCAL_PATH)/features2d/src/kaze \$(LOCAL_PATH)/modules/java/generator/src/cppLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/features2d/src/agast.cpp \modules/features2d/src/agast_score.cpp \modules/features2d/src/akaze.cpp \modules/features2d/src/bagofwords.cpp \modules/features2d/src/blobdetector.cpp \modules/features2d/src/brisk.cpp \modules/features2d/src/draw.cpp \modules/features2d/src/dynamic.cpp \modules/features2d/src/evaluation.cpp \modules/features2d/src/fast.cpp \modules/features2d/src/fast_score.cpp \modules/features2d/src/feature2d.cpp \modules/features2d/src/gftt.cpp \modules/features2d/src/kaze.cpp \modules/features2d/src/keypoint.cpp \modules/features2d/src/matchers.cpp \modules/features2d/src/mser.cpp \modules/features2d/src/orb.cpp \modules/features2d/src/kaze/KAZEFeatures.cpp \modules/features2d/src/kaze/nldiffusion_functions.cpp \modules/features2d/src/kaze/AKAZEFeatures.cpp \modules/features2d/src/kaze/fed.cpp \modules/features2d/opencl_kernels_features2d.cpp \modules/features2d/misc/java/src/cpp/features2d_converters.cpp \modules/java/generator/src/cpp/converters.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_flann libopencv_imgproc libopencv_ml libopencv_imgcodecs libopencv_videoio libopencv_highgui libopencv_hal
include $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_LDLIBS := -ldlLOCAL_MODULE := libopencv_flannLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/opencv2LOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/flann/src/miniflann.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_hal
LOCAL_LDLIBS := -ldl
LOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/hal \$(LOCAL_PATH)/modules/hal/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTS
LOCAL_SRC_FILES := \modules/hal/src/arithm.cpp \modules/hal/src/color.cpp \modules/hal/src/filter.cpp \modules/hal/src/mathfuncs.cpp \modules/hal/src/matrix.cpp \modules/hal/src/resize.cpp \modules/hal/src/stat.cpp \modules/hal/src/warp.cppLOCAL_SHARED_LIBRARIES := libopencv_coreinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_highgui
LOCAL_LDLIBS := -ldl
LOCAL_RTTI_FLAG := -frtti
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/highgui/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/highgui \$(LOCAL_PATH)/opencv2LOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/highgui/src/window.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc libopencv_imgcodecs libopencv_videoio libopencv_hal
include $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libjasperLOCAL_RTTI_FLAG := -frttiLOCAL_CFLAGS := -DEXCLUDE_MIF_SUPPORT -DEXCLUDE_PNM_SUPPORT -DEXCLUDE_BMP_SUPPORT -DEXCLUDE_RAS_SUPPORT  -DEXCLUDE_JPG_SUPPORT -DEXCLUDE_PGX_SUPPORT -Wno-implicit-function-declarationLOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable -Wno-unused-functionLOCAL_C_INCLUDES := \$(LOCAL_PATH)/3rdparty/libjasper \$(LOCAL_PATH)/3rdparty/libjasper/jasperLOCAL_SRC_FILES := \3rdparty/libjasper/jpc_enc.c \3rdparty/libjasper/jas_getopt.c \3rdparty/libjasper/jas_stream.c \3rdparty/libjasper/jas_string.c \3rdparty/libjasper/jpc_util.c \3rdparty/libjasper/jpc_bs.c \3rdparty/libjasper/jpc_tsfb.c \3rdparty/libjasper/jpc_math.c \3rdparty/libjasper/jas_version.c \3rdparty/libjasper/jpc_t2cod.c \3rdparty/libjasper/jpc_t2enc.c \3rdparty/libjasper/jpc_qmfb.c \3rdparty/libjasper/jas_init.c \3rdparty/libjasper/jpc_mct.c \3rdparty/libjasper/jp2_dec.c \3rdparty/libjasper/jas_iccdata.c \3rdparty/libjasper/jpc_cs.c \3rdparty/libjasper/jpc_t2dec.c \3rdparty/libjasper/jas_cm.c \3rdparty/libjasper/jpc_t1cod.c \3rdparty/libjasper/jas_tvp.c \3rdparty/libjasper/jp2_cod.c \3rdparty/libjasper/jpc_mqenc.c \3rdparty/libjasper/jp2_enc.c \3rdparty/libjasper/jas_seq.c \3rdparty/libjasper/jas_icc.c \3rdparty/libjasper/jpc_t1enc.c \3rdparty/libjasper/jas_malloc.c \3rdparty/libjasper/jas_debug.c \3rdparty/libjasper/jpc_tagtree.c \3rdparty/libjasper/jpc_mqdec.c \3rdparty/libjasper/jpc_mqcod.c \3rdparty/libjasper/jas_image.c \3rdparty/libjasper/jas_tmr.c \3rdparty/libjasper/jpc_dec.c \3rdparty/libjasper/jpc_t1dec.cinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := opencv_libjpeg
LOCAL_RTTI_FLAG := -frtti
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
LOCAL_C_INCLUDES := \$(LOCAL_PATH)/3rdparty/libjpegLOCAL_SRC_FILES := \3rdparty/libjpeg/jdapistd.c \3rdparty/libjpeg/jquant2.c \3rdparty/libjpeg/jdmerge.c \3rdparty/libjpeg/jdmaster.c \3rdparty/libjpeg/jmemmgr.c \3rdparty/libjpeg/jfdctint.c \3rdparty/libjpeg/jcmainct.c \3rdparty/libjpeg/jdapimin.c \3rdparty/libjpeg/jdatasrc.c \3rdparty/libjpeg/jdmarker.c \3rdparty/libjpeg/jdcolor.c \3rdparty/libjpeg/jctrans.c \3rdparty/libjpeg/jcapimin.c \3rdparty/libjpeg/jmemnobs.c \3rdparty/libjpeg/jchuff.c \3rdparty/libjpeg/jdpostct.c \3rdparty/libjpeg/jdcoefct.c \3rdparty/libjpeg/jcapistd.c \3rdparty/libjpeg/jutils.c \3rdparty/libjpeg/jdmainct.c \3rdparty/libjpeg/jdatadst.c \3rdparty/libjpeg/jquant1.c \3rdparty/libjpeg/jcinit.c \3rdparty/libjpeg/jddctmgr.c \3rdparty/libjpeg/jdinput.c \3rdparty/libjpeg/jidctfst.c \3rdparty/libjpeg/jcarith.c \3rdparty/libjpeg/jcomapi.c \3rdparty/libjpeg/jidctint.c \3rdparty/libjpeg/jcmarker.c \3rdparty/libjpeg/jdtrans.c \3rdparty/libjpeg/jccolor.c \3rdparty/libjpeg/jfdctfst.c \3rdparty/libjpeg/jdsample.c \3rdparty/libjpeg/jcmaster.c \3rdparty/libjpeg/jccoefct.c \3rdparty/libjpeg/jcparam.c \3rdparty/libjpeg/jaricom.c \3rdparty/libjpeg/jdhuff.c \3rdparty/libjpeg/jdarith.c \3rdparty/libjpeg/jfdctflt.c \3rdparty/libjpeg/jcprepct.c \3rdparty/libjpeg/jcsample.c \3rdparty/libjpeg/jidctflt.c \3rdparty/libjpeg/jcdctmgr.c \3rdparty/libjpeg/jerror.cLOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variableinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libtiffLOCAL_RTTI_FLAG := -frttiLOCAL_LDLIBS := -lzLOCAL_CFLAGS := -Wno-implicit-function-declaration
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variableLOCAL_C_INCLUDES := \$(LOCAL_PATH)/3rdparty/libtiffLOCAL_SRC_FILES := \3rdparty/libtiff/tif_jpeg.c \3rdparty/libtiff/tif_write.c \3rdparty/libtiff/tif_error.c \3rdparty/libtiff/tif_swab.c \3rdparty/libtiff/tif_strip.c \3rdparty/libtiff/tif_extension.c \3rdparty/libtiff/tif_jpeg_12.c \3rdparty/libtiff/tif_pixarlog.c \3rdparty/libtiff/tif_dirwrite.c \3rdparty/libtiff/tif_dirread.c \3rdparty/libtiff/tif_flush.c \3rdparty/libtiff/tif_lzma.c \3rdparty/libtiff/tif_packbits.c \3rdparty/libtiff/tif_luv.c \3rdparty/libtiff/tif_next.c \3rdparty/libtiff/tif_aux.c \3rdparty/libtiff/tif_thunder.c \3rdparty/libtiff/tif_compress.c \3rdparty/libtiff/tif_codec.c \3rdparty/libtiff/tif_print.c \3rdparty/libtiff/tif_dumpmode.c \3rdparty/libtiff/tif_open.c \3rdparty/libtiff/tif_close.c \3rdparty/libtiff/tif_dir.c \3rdparty/libtiff/tif_fax3sm.c \3rdparty/libtiff/tif_read.c \3rdparty/libtiff/tif_zip.c \3rdparty/libtiff/tif_lzw.c \3rdparty/libtiff/tif_tile.c \3rdparty/libtiff/tif_warning.c \3rdparty/libtiff/tif_color.c \3rdparty/libtiff/tif_dirinfo.c \3rdparty/libtiff/tif_version.c \3rdparty/libtiff/tif_jbig.c \3rdparty/libtiff/tif_fax3.c \3rdparty/libtiff/tif_ojpeg.c \3rdparty/libtiff/tif_predict.c \3rdparty/libtiff/tif_getimage.c \3rdparty/libtiff/tif_unix.cinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libIlmImfLOCAL_RTTI_FLAG := -frttiLOCAL_CFLAGS := -fexceptions
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
LOCAL_CPPFLAGS += -Wno-switch -Wno-unused-private-fieldLOCAL_LDLIBS := -lz -ldlLOCAL_C_INCLUDES := \$(LOCAL_PATH)/3rdparty/openexr \$(LOCAL_PATH)/3rdparty/openexr/IlmImf \$(LOCAL_PATH)/3rdparty/openexr/Half \$(LOCAL_PATH)/3rdparty/openexr/Iex \$(LOCAL_PATH)/3rdparty/openexr/IlmThread \$(LOCAL_PATH)/3rdparty/openexr/ImathLOCAL_SRC_FILES := \3rdparty/openexr/IlmImf/ImfChannelList.cpp \3rdparty/openexr/IlmImf/ImfStdIO.cpp \3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp \3rdparty/openexr/IlmImf/ImfFloatAttribute.cpp \3rdparty/openexr/IlmImf/ImfLineOrderAttribute.cpp \3rdparty/openexr/IlmImf/ImfTestFile.cpp \3rdparty/openexr/IlmImf/ImfInputFile.cpp \3rdparty/openexr/IlmImf/ImfTiledRgbaFile.cpp \3rdparty/openexr/IlmImf/ImfVecAttribute.cpp \3rdparty/openexr/IlmImf/ImfRationalAttribute.cpp \3rdparty/openexr/IlmImf/ImfBoxAttribute.cpp \3rdparty/openexr/IlmImf/ImfRgbaFile.cpp \3rdparty/openexr/IlmImf/ImfTiledOutputFile.cpp \3rdparty/openexr/IlmImf/ImfCRgbaFile.cpp \3rdparty/openexr/IlmImf/ImfChromaticitiesAttribute.cpp \3rdparty/openexr/IlmImf/ImfRleCompressor.cpp \3rdparty/openexr/IlmImf/ImfStandardAttributes.cpp \3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp \3rdparty/openexr/IlmImf/ImfOpaqueAttribute.cpp \3rdparty/openexr/IlmImf/ImfIntAttribute.cpp \3rdparty/openexr/IlmImf/ImfThreading.cpp \3rdparty/openexr/IlmImf/ImfTiledInputFile.cpp \3rdparty/openexr/IlmImf/ImfEnvmapAttribute.cpp \3rdparty/openexr/IlmImf/ImfKeyCodeAttribute.cpp \3rdparty/openexr/IlmImf/ImfRgbaYca.cpp \3rdparty/openexr/IlmImf/ImfHuf.cpp \3rdparty/openexr/IlmImf/ImfTileDescriptionAttribute.cpp \3rdparty/openexr/IlmImf/ImfVersion.cpp \3rdparty/openexr/IlmImf/ImfChromaticities.cpp \3rdparty/openexr/IlmImf/ImfStringVectorAttribute.cpp \3rdparty/openexr/IlmImf/ImfStringAttribute.cpp \3rdparty/openexr/IlmImf/ImfKeyCode.cpp \3rdparty/openexr/IlmImf/ImfOutputFile.cpp \3rdparty/openexr/IlmImf/ImfMatrixAttribute.cpp \3rdparty/openexr/IlmImf/ImfAcesFile.cpp \3rdparty/openexr/IlmImf/ImfScanLineInputFile.cpp \3rdparty/openexr/IlmImf/ImfCompressor.cpp \3rdparty/openexr/IlmImf/ImfHeader.cpp \3rdparty/openexr/IlmImf/ImfFramesPerSecond.cpp \3rdparty/openexr/IlmImf/ImfEnvmap.cpp \3rdparty/openexr/IlmImf/ImfZipCompressor.cpp \3rdparty/openexr/IlmImf/ImfMultiView.cpp \3rdparty/openexr/IlmImf/ImfPizCompressor.cpp \3rdparty/openexr/IlmImf/ImfMisc.cpp \3rdparty/openexr/IlmImf/ImfRational.cpp \3rdparty/openexr/IlmImf/ImfAttribute.cpp \3rdparty/openexr/IlmImf/ImfDoubleAttribute.cpp \3rdparty/openexr/IlmImf/ImfFrameBuffer.cpp \3rdparty/openexr/IlmImf/ImfTiledMisc.cpp \3rdparty/openexr/IlmImf/ImfB44Compressor.cpp \3rdparty/openexr/IlmImf/ImfPxr24Compressor.cpp \3rdparty/openexr/IlmImf/ImfTimeCode.cpp \3rdparty/openexr/IlmImf/ImfLut.cpp \3rdparty/openexr/IlmImf/ImfTileOffsets.cpp \3rdparty/openexr/IlmImf/ImfConvert.cpp \3rdparty/openexr/IlmImf/ImfIO.cpp \3rdparty/openexr/IlmImf/ImfPreviewImage.cpp \3rdparty/openexr/IlmImf/ImfCompressionAttribute.cpp \3rdparty/openexr/IlmImf/ImfTimeCodeAttribute.cpp \3rdparty/openexr/IlmImf/ImfWav.cpp \3rdparty/openexr/Half/eLut.cpp \3rdparty/openexr/Half/toFloat.cpp \3rdparty/openexr/Half/half.cpp \3rdparty/openexr/Iex/IexThrowErrnoExc.cpp \3rdparty/openexr/Iex/IexBaseExc.cpp \3rdparty/openexr/IlmThread/IlmThreadMutex.cpp \3rdparty/openexr/IlmThread/IlmThreadPool.cpp \3rdparty/openexr/IlmThread/IlmThreadPosix.cpp \3rdparty/openexr/IlmThread/IlmThreadMutexPosix.cpp \3rdparty/openexr/IlmThread/IlmThreadSemaphorePosixCompat.cpp \3rdparty/openexr/IlmThread/IlmThreadSemaphore.cpp \3rdparty/openexr/IlmThread/IlmThreadSemaphorePosix.cpp \3rdparty/openexr/IlmThread/IlmThread.cpp \3rdparty/openexr/Imath/ImathRandom.cpp \3rdparty/openexr/Imath/ImathFun.cpp \3rdparty/openexr/Imath/ImathMatrixAlgo.cpp \3rdparty/openexr/Imath/ImathVec.cpp \3rdparty/openexr/Imath/ImathColorAlgo.cppinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_imgcodecs
LOCAL_LDLIBS := -lz -ldl
LOCAL_RTTI_FLAG := -frtti
LOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTS
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
LOCAL_CPPFLAGS += -Wno-switch -Wno-unused-private-field -Wno-unused-parameter -Wno-unused-variableLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/imgcodecs \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/opencv2 \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/3rdparty/openexr/IlmImf \$(LOCAL_PATH)/3rdparty/openexr/Imath \$(LOCAL_PATH)/3rdparty/openexr/Iex \$(LOCAL_PATH)/3rdparty/openexr/Half \$(LOCAL_PATH)/3rdparty/libjasper \$(LOCAL_PATH)/3rdparty/libjasper/jasper \$(LOCAL_PATH)/3rdparty/libjpeg \$(LOCAL_PATH)/3rdparty/libtiff \$(LOCAL_PATH)/3rdparty/libpngLOCAL_SRC_FILES := \modules/imgcodecs/src/bitstrm.cpp \modules/imgcodecs/src/grfmt_base.cpp \modules/imgcodecs/src/grfmt_bmp.cpp \modules/imgcodecs/src/grfmt_exr.cpp \modules/imgcodecs/src/grfmt_gdal.cpp \modules/imgcodecs/src/grfmt_hdr.cpp \modules/imgcodecs/src/grfmt_jpeg2000.cpp \modules/imgcodecs/src/grfmt_jpeg.cpp \modules/imgcodecs/src/grfmt_png.cpp \modules/imgcodecs/src/grfmt_pxm.cpp \modules/imgcodecs/src/grfmt_sunras.cpp \modules/imgcodecs/src/grfmt_tiff.cpp \modules/imgcodecs/src/grfmt_webp.cpp \modules/imgcodecs/src/loadsave.cpp \modules/imgcodecs/src/rgbe.cpp \modules/imgcodecs/src/utils.cppLOCAL_SRC_FILES += \3rdparty/libpng/png.c \3rdparty/libpng/pngerror.c \3rdparty/libpng/pngget.c \3rdparty/libpng/pngmem.c \3rdparty/libpng/pngpread.c \3rdparty/libpng/pngread.c \3rdparty/libpng/pngrio.c \3rdparty/libpng/pngrtran.c \3rdparty/libpng/pngrutil.c \3rdparty/libpng/pngset.c \3rdparty/libpng/pngtrans.c \3rdparty/libpng/pngwio.c \3rdparty/libpng/pngwrite.c \3rdparty/libpng/pngwtran.c \3rdparty/libpng/pngwutil.c
LOCAL_STATIC_LIBRARIES += libopencv_hal libjasper opencv_libjpeg libIlmImf libtiff libopencv_core libopencv_imgprocinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_imgproc
LOCAL_RTTI_FLAG := -frtti
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/imgproc \$(LOCAL_PATH)/modules/imgproc/src \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/opencv2LOCAL_LDLIBS := -ldlLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/imgproc/src/accum.cpp \modules/imgproc/src/approx.cpp \modules/imgproc/src/blend.cpp \modules/imgproc/src/canny.cpp \modules/imgproc/src/clahe.cpp \modules/imgproc/src/color.cpp \modules/imgproc/src/colormap.cpp \modules/imgproc/src/connectedcomponents.cpp \modules/imgproc/src/contours.cpp \modules/imgproc/src/convhull.cpp \modules/imgproc/src/corner.cpp \modules/imgproc/src/cornersubpix.cpp \modules/imgproc/src/demosaicing.cpp \modules/imgproc/src/deriv.cpp \modules/imgproc/src/distransform.cpp \modules/imgproc/src/drawing.cpp \modules/imgproc/src/emd.cpp \modules/imgproc/src/featureselect.cpp \modules/imgproc/src/filter.cpp \modules/imgproc/src/floodfill.cpp \modules/imgproc/src/gabor.cpp \modules/imgproc/src/generalized_hough.cpp \modules/imgproc/src/geometry.cpp \modules/imgproc/src/grabcut.cpp \modules/imgproc/src/hershey_fonts.cpp \modules/imgproc/src/histogram.cpp \modules/imgproc/src/hough.cpp \modules/imgproc/src/imgwarp.cpp \modules/imgproc/src/intersection.cpp \modules/imgproc/src/linefit.cpp \modules/imgproc/src/lsd.cpp \modules/imgproc/src/matchcontours.cpp \modules/imgproc/src/min_enclosing_triangle.cpp \modules/imgproc/src/moments.cpp \modules/imgproc/src/morph.cpp \modules/imgproc/src/phasecorr.cpp \modules/imgproc/src/pyramids.cpp \modules/imgproc/src/rotcalipers.cpp \modules/imgproc/src/samplers.cpp \modules/imgproc/src/segmentation.cpp \modules/imgproc/src/shapedescr.cpp \modules/imgproc/src/smooth.cpp \modules/imgproc/src/subdivision2d.cpp \modules/imgproc/src/sumpixels.cpp \modules/imgproc/src/tables.cpp \modules/imgproc/src/templmatch.cpp \modules/imgproc/src/thresh.cpp \modules/imgproc/src/undistort.cpp \modules/imgproc/src/utils.cpp \modules/imgproc/opencl_kernels_imgproc.cpp \LOCAL_STATIC_LIBRARIES := libopencv_core libopencv_hal
include $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_ml
LOCAL_LDLIBS := -ldl
LOCAL_RTTI_FLAG := -frtti
LOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/ml \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/ml/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/ml/src/ann_mlp.cpp \modules/ml/src/boost.cpp \modules/ml/src/data.cpp \modules/ml/src/em.cpp \modules/ml/src/gbt.cpp \modules/ml/src/inner_functions.cpp \modules/ml/src/kdtree.cpp \modules/ml/src/knearest.cpp \modules/ml/src/lr.cpp \modules/ml/src/nbayes.cpp \modules/ml/src/rtrees.cpp \modules/ml/src/svm.cpp \modules/ml/src/testset.cpp \modules/ml/src/tree.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_hal
include $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)
#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_MODULE := libopencv_objdetect
LOCAL_RTTI_FLAG := -frtti
LOCAL_HEADER_LIBRARIES := jni_headers
LOCAL_LDLIBS := -llog -ldl
LOCAL_CPPFLAGS += -Wno-unused-parameter -Wno-unused-variableLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/objdetect \$(LOCAL_PATH)/modules/objdetect/src \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/objdetect/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/objdetect \$(LOCAL_PATH)/modules/ml/include \$(LOCAL_PATH)/modules/highgui/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/opencv2LOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/objdetect/src/cascadedetect_convert.cpp \modules/objdetect/src/cascadedetect.cpp \modules/objdetect/src/detection_based_tracker.cpp \modules/objdetect/src/haar.cpp \modules/objdetect/src/hog.cpp \modules/objdetect/opencl_kernels_objdetect.cpp \modules/java/generator/src/cpp/converters.cppLOCAL_STATIC_LBIRARIES := libopencv_core libopencv_imgproc libopencv_ml libopencv_imgcodecs libopencv_videoio libopencv_highguiifeq ($(WITH_RENDERSCRIPT), true)
LOCAL_STATIC_LBIRARIES += libopencv_rsobjdetect
LOCAL_CFLAGS += -DRENDERSCRIPT=1
LOCAL_C_INCLUDES += $(LOCAL_PATH)/modules/rsobjdetect/src
endifLOCAL_STATIC_LBIRARIES += libopencv_hal
include $(BUILD_STATIC_LIBRARY)ifeq ($(WITH_RENDERSCRIPT),true)
include $(CLEAR_VARS)
LOCAL_MODULE := libopencv_rsobjdetect#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21
LOCAL_RENDERSCRIPT_TARGET_API := 21LOCAL_CPPFLAGS += -Wno-unused-parameter -Wno-unused-variableLOCAL_C_INCLUDES := \modules/rsobjdetect/srcLOCAL_SRC_FILES:= \modules/rsobjdetect/src/innerloop.cppLOCAL_LDLIBS := -llog -ldlLOCAL_RENDERSCRIPT_COMPATIBILITY := 21LOCAL_C_INCLUDES := frameworks/rs/cpp
LOCAL_C_INCLUDES += frameworks/rs
LOCAL_C_INCLUDES += $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)LOCAL_STATIC_LIBRARIES := libRScpp_static
LOCAL_CLANG := trueinclude $(BUILD_STATIC_LIBRARY)
endifinclude $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_photoLOCAL_LDLIBS := -ldl -lzLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/photo \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/photo/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/highgui/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/photoLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/photo/src/align.cpp \modules/photo/src/calibrate.cpp \modules/photo/src/contrast_preserve.cpp \modules/photo/src/denoise_tvl1.cpp \modules/photo/src/denoising.cpp \modules/photo/src/denoising.cuda.cpp \modules/photo/src/hdr_common.cpp \modules/photo/src/inpaint.cpp \modules/photo/src/merge.cpp \modules/photo/src/npr.cpp \modules/photo/src/seamless_cloning.cpp \modules/photo/src/seamless_cloning_impl.cpp \modules/photo/src/tonemap.cpp \modules/photo/opencl_kernels_photo.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc
LOCAL_STATIC_LIBRARIES += libopencv_hal opencv_libjpeg libpng_ndkinclude $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_LDLIBS := -ldlLOCAL_MODULE := libopencv_shapeLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/shape \$(LOCAL_PATH)/modules/video/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/shape/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/shape/src/aff_trans.cpp \modules/shape/src/emdL1.cpp \modules/shape/src/haus_dis.cpp \modules/shape/src/hist_cost.cpp \modules/shape/src/precomp.cpp \modules/shape/src/sc_dis.cpp \modules/shape/src/tps_trans.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc libopencv_video
LOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_stitchingLOCAL_LDLIBS := -ldlLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/stitching \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/features2d/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/calib3d/include \$(LOCAL_PATH)/modules/stitching/include \$(LOCAL_PATH)/modules/stitchingLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/stitching/src/autocalib.cpp \modules/stitching/src/blenders.cpp \modules/stitching/src/camera.cpp \modules/stitching/src/exposure_compensate.cpp \modules/stitching/src/matchers.cpp \modules/stitching/src/motion_estimators.cpp \modules/stitching/src/seam_finders.cpp \modules/stitching/src/stitcher.cpp \modules/stitching/src/timelapsers.cpp \modules/stitching/src/util.cpp \modules/stitching/src/warpers.cpp \modules/stitching/src/warpers_cuda.cpp \modules/stitching/opencl_kernels_stitching.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_flann libopencv_imgproc libopencv_ml libopencv_imgcodecs libopencv_videoio libopencv_highgui libopencv_objdetect libopencv_features2d libopencv_calib3d
LOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_superresLOCAL_LDLIBS := -ldlLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/superres \$(LOCAL_PATH)/modules/video/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/superres/include \$(LOCAL_PATH)/modules/superres/srcLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/superres/src/btv_l1.cpp \modules/superres/src/btv_l1_cuda.cpp \modules/superres/src/frame_source.cpp \modules/superres/src/input_array_utility.cpp \modules/superres/src/optical_flow.cpp \modules/superres/src/super_resolution.cpp \modules/superres/opencl_kernels_superres.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc libopencv_video libopencv_imgcodecs libopencv_videoio
LOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_tsLOCAL_LDLIBS := -ldlLOCAL_RTTI_FLAG := -frtti
LOCAL_CPPFLAGS += -Wno-unused-parameter -Wno-unused-variableLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/ts \$(LOCAL_PATH)/modules/highgui/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/ts/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/ts/src/cuda_perf.cpp \modules/ts/src/cuda_test.cpp \modules/ts/src/ocl_perf.cpp \modules/ts/src/ocl_test.cpp \modules/ts/src/ts_arrtest.cpp \modules/ts/src/ts.cpp \modules/ts/src/ts_func.cpp \modules/ts/src/ts_gtest.cpp \modules/ts/src/ts_perf.cppinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_videoLOCAL_LDLIBS := -lz -ldlLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/video \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/video/include \$(LOCAL_PATH)/modules/imgcodecs/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/video/src/bgfg_gaussmix2.cpp \modules/video/src/bgfg_KNN.cpp \modules/video/src/camshift.cpp \modules/video/src/compat_video.cpp \modules/video/src/ecc.cpp \modules/video/src/kalman.cpp \modules/video/src/lkpyramid.cpp \modules/video/src/optflowgf.cpp \modules/video/src/tvl1flow.cpp \modules/video/opencl_kernels_video.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc
LOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_videoio
//引入dl库
LOCAL_LDLIBS := -ldl LOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/videoio \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/videoLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/videoio/src/cap_cmu.cpp \modules/videoio/src/cap.cpp \modules/videoio/src/cap_dc1394.cpp \modules/videoio/src/cap_dc1394_v2.cpp \modules/videoio/src/cap_dshow.cpp \modules/videoio/src/cap_ffmpeg.cpp \modules/videoio/src/cap_gphoto2.cpp \modules/videoio/src/cap_images.cpp \modules/videoio/src/cap_intelperc.cpp \modules/videoio/src/cap_libv4l.cpp \modules/videoio/src/cap_mjpeg_decoder.cpp \modules/videoio/src/cap_mjpeg_encoder.cpp \modules/videoio/src/cap_msmf.cpp \modules/videoio/src/cap_openni2.cpp \modules/videoio/src/cap_openni.cpp \modules/videoio/src/cap_pvapi.cpp \modules/videoio/src/cap_v4l.cppLOCAL_STATIC_LIBRARIES := libopencv_core libopencv_imgproc libopencv_imgcodecs
LOCAL_STATIC_LIBRARIES += libopencv_hal
//声明生成静态库.a
include $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_videostabLOCAL_LDLIBS := -ldlLOCAL_RTTI_FLAG := -frttiLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/videostab \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/video/include \$(LOCAL_PATH)/modules/features2d/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/photo/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/calib3d/include \$(LOCAL_PATH)/modules/videostab/includeLOCAL_CFLAGS := -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTSLOCAL_SRC_FILES := \modules/videostab/src/deblurring.cpp \modules/videostab/src/fast_marching.cpp \modules/videostab/src/frame_source.cpp \modules/videostab/src/global_motion.cpp \modules/videostab/src/inpainting.cpp \modules/videostab/src/log.cpp \modules/videostab/src/motion_stabilizing.cpp \modules/videostab/src/optical_flow.cpp \modules/videostab/src/outlier_rejection.cpp \modules/videostab/src/stabilizer.cpp \modules/videostab/src/wobble_suppression.cpp
LOCAL_STATIC_LIBRARIES := libopencv_core libopencv_flann libopencv_imgproc libopencv_ml libopencv_photo libopencv_video libopencv_imgcodecs libopencv_videoio libopencv_highgui libopencv_features2d libopencv_calib3dLOCAL_STATIC_LIBRARIES += libopencv_halinclude $(BUILD_STATIC_LIBRARY)include $(CLEAR_VARS)#LOCAL_NDK_STL_VARIANT := gnustl_static
#LOCAL_SDK_VERSION := 21LOCAL_MODULE := libopencv_javaLOCAL_HEADER_LIBRARIES := jni_headersLOCAL_LDLIBS := -llog -lz -ljnigraphics -ldlLOCAL_RTTI_FLAG := -frttiLOCAL_CFLAGS := -fexceptions -DANDROID -D__OPENCV_BUILD=1 -Dopencv_java_EXPORTS -DCAP_PROP_ANDROID_PREVIEW_SIZES_STRING=1025LOCAL_CPPFLAGS += -Wno-c++11-narrowingLOCAL_C_INCLUDES := \$(LOCAL_PATH) \$(LOCAL_PATH)/modules/java/include \$(LOCAL_PATH)/modules/java/src \$(LOCAL_PATH)/modules \$(LOCAL_PATH)/modules/hal/include \$(LOCAL_PATH)/modules/core/include \$(LOCAL_PATH)/modules/flann/include \$(LOCAL_PATH)/modules/imgproc/include \$(LOCAL_PATH)/modules/ml/include \$(LOCAL_PATH)/modules/photo/include \$(LOCAL_PATH)/modules/video/include \$(LOCAL_PATH)/modules/androidcamera/include \$(LOCAL_PATH)/modules/imgcodecs/include \$(LOCAL_PATH)/modules/videoio/include \$(LOCAL_PATH)/modules/highgui/include \$(LOCAL_PATH)/modules/objdetect/include \$(LOCAL_PATH)/modules/features2d/include \$(LOCAL_PATH)/modules/calib3d/include \$(LOCAL_PATH)/modules/java/generator/src/cppLOCAL_SRC_FILES := \modules/java/src/ml.cpp \modules/java/src/video.cpp \modules/java/src/photo.cpp \modules/java/src/calib3d.cpp \modules/java/src/features2d.cpp \modules/java/src/core.cpp \modules/java/src/imgproc.cpp \modules/java/src/objdetect.cpp \modules/java/src/videoio.cpp \modules/java/src/imgcodecs.cpp \modules/java/generator/src/cpp/jni_part.cpp \modules/java/generator/src/cpp/utils.cpp \modules/java/generator/src/cpp/converters.cpp \modules/java/generator/src/cpp/Mat.cpp \modules/core/misc/java/src/cpp/core_manual.cppLOCAL_STATIC_LIBRARIES := libopencv_hal libopencv_core libopencv_flann libopencv_imgproc libopencv_ml libopencv_photo libopencv_video libopencv_imgcodecs libopencv_videoio libopencv_highgui libopencv_objdetect libopencv_features2d libopencv_calib3d
LOCAL_STATIC_LIBRARIES += libjasper opencv_libjpeg libtiff libIlmImf libpng_ndkinclude $(BUILD_SHARED_LIBRARY)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)LOCAL_MODULE := libjni_customizeLOCAL_MODULE_TAGS := optionalLOCAL_SRC_FILES := ******LOCAL_SHARED_LIBRARIES += libcutils \libutils \libbinder \libjnigraphics \libui \libgui \liblog \libandroid LOCAL_NDK_STL_VARIANT :=noneLOCAL_PROGUARD_ENABLED :=disabledLOCAL_C_INCLUDES += vendor/apk/jni/include \vendor/apk/jni/include/opencv \vendor/apk/jni/include/opencv2 LOCAL_LDLIBS := -llog -lz -ljnigraphics  -ldlLOCAL_LDFLAGS_arm64 += $(LOCAL_PATH)/../libs/arm64-v8a/libopencv_core.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_imgcodecs.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_calib3d.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_features2d.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_flann.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_hal.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_highgui.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_imgproc.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_ml.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_objdetect.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_photo.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_shape.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_stitching.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_superres.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_ts.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_video.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_videoio.a \$(LOCAL_PATH)/../libs/arm64-v8a/libopencv_videostab.a \$(LOCAL_PATH)/../libs/arm64-v8a/libtiff.a \$(LOCAL_PATH)/../libs/arm64-v8a/libIlmImf.a \$(LOCAL_PATH)/../libs/arm64-v8a/libjasper.a \$(LOCAL_PATH)/../libs/arm64-v8a/opencv_libjpeg.a LOCAL_LDFLAGS_arm += $(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_core.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_imgcodecs.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_calib3d.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_features2d.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_flann.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_hal.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_highgui.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_imgproc.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_ml.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_objdetect.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_photo.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_shape.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_stitching.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_superres.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_ts.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_video.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_videoio.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libopencv_videostab.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libtiff.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libIlmImf.a \$(LOCAL_PATH)/../libs/armeabi-v7a/libjasper.a \$(LOCAL_PATH)/../libs/armeabi-v7a/opencv_libjpeg.ainclude $(BUILD_SHARED_LIBRARY)

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/240650.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

基于Mybatis-Plus进行查询封装

基于Mybatis-Plus进行查询封装 package com.test.common.orm.builder;import cn.hutool.core.util.IdUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import org.apache.ibatis.cache.Cache; import org.apache.ibatis.cache.impl.PerpetualCach…

前端 JS 安全对抗原理与实践

作者:vivo 互联网安全团队- Luo Bingsong 前端代码都是公开的,为了提高代码的破解成本、保证JS代码里的一些重要逻辑不被居心叵测的人利用,需要使用一些加密和混淆的防护手段。 一、概念解析 1.1 什么是接口加密 如今这个时代,…

高德地图逆地理编码踩坑日志

本人是一枚Java小白,公司项目中用到根据经纬度反查该地址中文信息的场景,因为一开始调用的经纬度是能反查出区域编码的,以为towncode都是String返回结果,如下图: 没想到当没有名字任何一个城市区域的时候,…

管理 Jenkins 详细指南

目录 系统配置 安全 状态信息 故障 排除 工具和操作 系统配置 系统,配置全局设置和路径,端口更改,下载地址等。 工具,配置工具、其位置和自动安装程序。 插件,添加、删除、禁用或启用可以扩展 Jenkins 功能的插…

华为OD机试 - 精准核酸检测(Java JS Python C)

题目描述 为了达到新冠疫情精准防控的需要,为了避免全员核酸检测带来的浪费,需要精准圈定可能被感染的人群。 现在根据传染病流调以及大数据分析,得到了每个人之间在时间、空间上是否存在轨迹交叉。 现在给定一组确诊人员编号(X1,X2,X3,...,Xn),在所有人当中,找出哪些…

ssh远程管理服务

什么是ssh SSH是一种加密的网络协议,用于在不安全的网络中安全地传输数据。它允许用户通过一个安全的通道连接到远程计算机,并在该通道上执行各种网络服务,例如远程登录和文件传输。 SSH使用公钥加密技术来验证远程计算机的身份,并…

初识Stable Diffusion

界面选项解读 这是在趋动云上部署的Stable Diffusion txt2img prompt (1)分割符号:使用逗号 , 用于分割词缀,且有一定权重排序功能,逗号前权重高,逗号后权重低 (2)建议的通用范式…

【C++11特性篇】玩转C++11中的包装器(function&bind)

前言 大家好吖,欢迎来到 YY 滴C系列 ,热烈欢迎! 本章主要内容面向接触过C的老铁 主要内容含: 欢迎订阅 YY滴C专栏!更多干货持续更新!以下是传送门! 目录 一.为什么需要包装器function&#xff…

【Earth Engine】协同Sentinel-1/2使用随机森林回归实现高分辨率相对财富(贫困)制图

目录 1 简介与摘要2 思路3 效果预览4 代码思路5 完整代码6 后记 1 简介与摘要 最近在做一些课题,需要使用Sentinel-1/2进行机器学习制图。 然后想着总结一下相关数据和方法,就花半小时写了个代码。 然后再花半小时写下这篇博客记录一下。 因为基于多次拍…

通过windows cng api 实现rsa非对称加密

参考: 1,使用 CNG 加密数据 - Win32 apps | Microsoft Learn 2,不记得了 (下文通过cng api演示rsa加密,不做原理性介绍) 相对于aes等对称加密算法,rsa加密算法不可逆性更强。非对称加密在通常情况下,使…

前端传输formDate格式的数据,后端不能用@RequestBody接收

写了个接口,跟前端对接,前端说怎么一直415的报错 我寻思不对啊,我swagger都请求成功了,后来发现前端一直是以formdata格式提交的数据,这样我其实是可以不加RequestBody的; 知识点: RequestBody…

类和对象

1 类定义: class ChecksumAccumulator {// class definition goes here } 你就能创建 ChecksumAccumulator 对象:new CheckSumAccumulator 注:1scala类中成员默认是public类型,若设为私有属性则必须加private关键字。在scala中是…

基于Springboot的留守儿童爱心网站(有报告)。Javaee项目,springboot项目。

演示视频: 基于Springboot的留守儿童爱心网站(有报告)。Javaee项目,springboot项目。 项目介绍: 采用M(model)V(view)C(controller)三层体系结构,通过Spring…

技术交底二维码的应用

二维码技术交底可以逐级落实、责任到人、有据可查、是目前最方便、实用的交底方式,下面我们讲解技术交底二维码的应用。 1、生成对应的技术交底二维码,将施工方案、技术资料、安全教育资料等内容上传到二维码里。打印出来现场粘贴,便于作业班…

微信小程序 上列表拉加载下拉刷新

上拉加载和下拉刷新是小程序开发的常见需求。本文将介绍如何在微信小程序中实现上拉加载和下拉刷新的功能,为用户带来更加流畅、便捷的使用体验。 1. 实现效果 微信小程序 上列表拉加载下拉刷新 2. 实现思路 (1) 首先需要在使用到的 json 文件下配置 “enablePull…

java中线程相关的面试题

什么是线程安全,造成线程安全的本质是什么? 什么是线程安全呢? 咱们初步去理解话记住一句话就行:如果一个对象可以安全地被多个线程同时使用,那它就是线程安全的。 为什么并发编程会导致线程不安全? 可见…

用友U8CRM系统help2 任意文件读取漏洞复现

用友U8CRM系统的help2文件中接口存在任意文件读取漏洞,攻击者在未登录情况下即可进行漏洞利用。 1.1 漏洞级别 高危 1.2 快速检索 fofa语法: title"用友U8CRM"1.3 漏洞复现 该漏洞利用非常简单,只需构造get请求 访问该地址即可…

密码学 Mod37 校验算法(Java和C#) ISO/IEC 7064 modulo 37-2

简介 ISO/IEC 7064:2003 信息技术 安全技术 校验字符系统 密码学 Mod37 校验算法(Java和C#) ISO/IEC 7064 modulo 37-2 适用范围 1.1 本标准规定了一组校验字符系统,它可以防止在复制或键人数据时产生的串的错误。串的长度 可以是固定的或是可变的,包…

青少年CTF-qsnctf-A1-Misc-签到

题目环境: 题目难度:★题目描述:有没有可能,这个平台就是个题目? 一道杂项题 题目说的是这个平台就是题目 那么也就是说flag就在这个平台里面1.从高层次向低层次逐一排查 2.首先对平台首页进行排查进平台首页 第一种解…

HTML---浮动

提示&#xff1a;文章写完后&#xff0c;目录可以自动生成&#xff0c;如何生成可参考右边的帮助文档 文章目录 前言一、pandas是什么&#xff1f;二、使用步骤 1.引入库2.读入数据总结 一.常见的网页布局 二.标准文档流 标准文档流常见标签 标准文档流的组成 块级元素<div…