Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How the libopencv_java.so is copy to the apk when it is used the static lib type?

I compile the jni part of my code, the camera libs ares copied, but the libopencv_java.so is ways missing. I do this copy by hand then everthing works...

my android.mk

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

OPENCV_CAMERA_MODULES:=on OPENCV_INSTALL_MODULES:=on OPENCV_LIB_TYPE:=STATIC include ../includeOpenCV.mk include $(OPENCV_MK_PATH)

LOCAL_MODULE := olah LOCAL_CFLAGS := -Werror LOCAL_SRC_FILES := part_jni.cpp LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../libs/ LOCAL_LDLIBS += -llog -ldl -lGLESv2

include $(BUILD_SHARED_LIBRARY)

click to hide/show revision 2
retagged

How the libopencv_java.so is copy to the apk when it is used the static lib type?

I compile the jni part of my code, the camera libs ares copied, but the libopencv_java.so is ways missing. I do this copy by hand then everthing works...

my android.mk

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

OPENCV_CAMERA_MODULES:=on OPENCV_INSTALL_MODULES:=on OPENCV_LIB_TYPE:=STATIC include ../includeOpenCV.mk include $(OPENCV_MK_PATH)

LOCAL_MODULE := olah LOCAL_CFLAGS := -Werror LOCAL_SRC_FILES := part_jni.cpp LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../libs/ LOCAL_LDLIBS += -llog -ldl -lGLESv2

include $(BUILD_SHARED_LIBRARY)

click to hide/show revision 3
formatting fixed

How the libopencv_java.so is copy to the apk when it is used the static lib type?

I compile the jni part of my code, the camera libs ares copied, but the libopencv_java.so is ways missing. I do this copy by hand then everthing works...

my android.mk

LOCAL_PATH:= $(call my-dir)

my-dir) include $(CLEAR_VARS)

include $(CLEAR_VARS)

OPENCV_CAMERA_MODULES:=on OPENCV_INSTALL_MODULES:=on OPENCV_LIB_TYPE:=STATIC include ../includeOpenCV.mk include $(OPENCV_MK_PATH)

$(OPENCV_MK_PATH)

LOCAL_MODULE := olah LOCAL_CFLAGS := -Werror LOCAL_SRC_FILES := part_jni.cpp LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../libs/ LOCAL_LDLIBS += -llog -ldl -lGLESv2

-lGLESv2

include $(BUILD_SHARED_LIBRARY)

$(BUILD_SHARED_LIBRARY)