Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

problem using cvBlobsLib with Android

Hi everyone, I am having problems using cvBlobsLib with my Android app. I am using Eclipse with NDK.

I have downloaded the library cvBlobsLib, compiled it successfully using eclipse and created the file libcvblobslib.a

When trying to use the libcvblobslib.a file in my project (in Eclipse), I am getting an error that says:

"Archive for required library: 'jni/cvblobslib_headers/libcvblobslib.a' in project 'MyProject' cannot be read or is not a valid ZIP file".

I cant figure out what the problem is... I added the libcvblobslib.a file to the build path, and all of the header files, together with the libcvblobslib.a are under the path jni/cvblobslib_headers/ I am able to use the openCV library without the cvBlobsLib, so I know that all the paths of the ndk are correct.

my android.mk is:

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := cvBlobsLib
LOCAL_MODULE_FILENAME := cvBlobsLib_static
LOCAL_SRC_FILES := cvblobslib_headers/libcvblobslib.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
include ../../sdk/native/jni/OpenCV.mk
LOCAL_MODULE    := native_sample
LOCAL_SRC_FILES := jni_part.cpp 
LOCAL_STATIC_LIBRARIES = cvBlobsLib
LOCAL_LDLIBS +=  -llog -ldl
include $(BUILD_SHARED_LIBRARY)

And my Application.mk is :

APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := armeabi-v7a x86
APP_PLATFORM := android-11

PLEASE HELP!

problem using cvBlobsLib with Android

Hi everyone, I am having problems using cvBlobsLib with my Android app. I am using Eclipse with NDK.

I have downloaded the library cvBlobsLib, compiled it successfully using eclipse and created the file libcvblobslib.a

When trying to use the libcvblobslib.a file in my project (in Eclipse), I am getting an error that says:

"Archive for required library: 'jni/cvblobslib_headers/libcvblobslib.a' in project 'MyProject' cannot be read or is not a valid ZIP file".

I cant figure out what the problem is... I added the libcvblobslib.a file to the build path, and all of the header files, together with the libcvblobslib.a are under the path jni/cvblobslib_headers/ jni/cvblobslib_headers/

I am able to use the openCV library without the cvBlobsLib, so I know that all the paths of the ndk are correct.

my android.mk is:

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := cvBlobsLib
LOCAL_MODULE_FILENAME := cvBlobsLib_static
LOCAL_SRC_FILES := cvblobslib_headers/libcvblobslib.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
include ../../sdk/native/jni/OpenCV.mk
LOCAL_MODULE    := native_sample
LOCAL_SRC_FILES := jni_part.cpp 
LOCAL_STATIC_LIBRARIES = cvBlobsLib
LOCAL_LDLIBS +=  -llog -ldl
include $(BUILD_SHARED_LIBRARY)

And my Application.mk is :

APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := armeabi-v7a x86
APP_PLATFORM := android-11

PLEASE HELP!

problem using cvBlobsLib with Android

Hi everyone, I am having problems using cvBlobsLib with my Android app. I am using Eclipse with NDK.

I have downloaded the library cvBlobsLib, compiled it successfully using eclipse and created the file libcvblobslib.a

When trying to use the libcvblobslib.a file in my project (in Eclipse), I am getting an error that says:

"Archive for required library: 'jni/cvblobslib_headers/libcvblobslib.a' in project 'MyProject' cannot be read or is not a valid ZIP file".

I cant figure out what the problem is... I added the libcvblobslib.a file to the build path, and all of the header files, together with the libcvblobslib.a are under the path jni/cvblobslib_headers/

I am able to use the openCV library without the cvBlobsLib, so I know that all the paths of the ndk are correct.

my android.mk is:

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := cvBlobsLib
LOCAL_MODULE_FILENAME := cvBlobsLib_static
LOCAL_SRC_FILES := cvblobslib_headers/libcvblobslib.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
include ../../sdk/native/jni/OpenCV.mk
LOCAL_MODULE    := native_sample
LOCAL_SRC_FILES := jni_part.cpp 
LOCAL_STATIC_LIBRARIES = cvBlobsLib
LOCAL_LDLIBS +=  -llog -ldl
include $(BUILD_SHARED_LIBRARY)

And my Application.mk is :

APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := armeabi-v7a x86
APP_PLATFORM := android-11

PLEASE HELP!

problem using cvBlobsLib with Android

Hi everyone, I am having problems using cvBlobsLib with my Android app. I am using Eclipse with NDK.

I have downloaded the library cvBlobsLib, compiled it successfully using eclipse and created the file libcvblobslib.a

When trying to use the libcvblobslib.a file in my project (in Eclipse), I am getting an error that says:

"Archive for required library: 'jni/cvblobslib_headers/libcvblobslib.a' in project 'MyProject' cannot be read or is not a valid ZIP file".

I cant figure out what the problem is... I added the libcvblobslib.a file to the build path, and all of the header files, together with the libcvblobslib.a are under the path jni/cvblobslib_headers/

I am able to use the openCV library without the cvBlobsLib, so I know that all the paths of the ndk are correct.

my android.mk is:

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := cvBlobsLib
LOCAL_MODULE_FILENAME := cvBlobsLib_static
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/cvblobslib_headers/
LOCAL_SRC_FILES := cvblobslib_headers/libcvblobslib.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
include ../../sdk/native/jni/OpenCV.mk
LOCAL_MODULE    := native_sample
LOCAL_SRC_FILES := jni_part.cpp 
LOCAL_STATIC_LIBRARIES = cvBlobsLib
LOCAL_LDLIBS +=  -llog -ldl
include $(BUILD_SHARED_LIBRARY)

And my Application.mk is :

APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions
APP_ABI := armeabi-v7a x86
APP_PLATFORM := android-11

PLEASE HELP!