Open sayandev opened 11 years ago
Target name=> Android 4.2.2 OpenCV-2.4.4-android-sdk/ Open CV manager 2_4_2 & 2_4_4 both installed I am not sure about which library to use thus compile the .cpp for all possible library, but I'm getting an warning::
=>Application.mk APP_STL := gnustl_static APP_CPPFLAGS := -frtti -fexceptions
In Android .mk I have added some modules =>Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS)
OPENCV_CAMERA_MODULES:=on OPENCV_INSTALL_MODULES:=on include C:\cygwin\JNIworkspace\OpenCV-2.4.4-android-sdk\sdk\native\jni\OpenCV.mk LOCAL_MODULE := native_sample LOCAL_SRC_FILES := jni_part.cpp LOCAL_LDLIBS += -llog -ldl
here is the Logcat 03-16 19:44:05.212: D/TextView(682): Constructor - Got Res id for appearance for textColorPrimaryInverse 03-16 19:44:05.212: W/ResourceType(682): Skipping entry 0x1060003 in package table 0 because it is not complex! 03-16 19:44:05.212: D/TextView(682): Constructor - Got appearance for textColorPrimaryInverse 03-16 19:44:05.212: D/TextView(682): Constructor -- Got mEditTextBackgroundColor 03-16 19:44:09.882: D/OpenCV/StaticHelper(682): Trying to get library list 03-16 19:44:09.882: E/OpenCV/StaticHelper(682): OpenCV error: Cannot load info library for OpenCV 03-16 19:44:09.882: D/OpenCV/StaticHelper(682): Library list: "" 03-16 19:44:09.882: D/OpenCV/StaticHelper(682): First attempt to load libs 03-16 19:44:09.882: D/OpenCV/StaticHelper(682): Trying to init OpenCV libs 03-16 19:44:09.882: D/OpenCV/StaticHelper(682): Trying to load library opencv_java 03-16 19:44:09.882: D/dalvikvm(682): Trying to load lib /data/data/org.opencv.face/lib/libopencv_java.so 0x413eed80 03-16 19:44:09.902: D/dalvikvm(682): Added shared lib /data/data/org.opencv.face/lib/libopencv_java.so 0x413eed80 03-16 19:44:09.902: D/OpenCV/StaticHelper(682): OpenCV libs init was ok! 03-16 19:44:09.902: D/OpenCV/StaticHelper(682): First attempt to load libs is OK 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): General configuration for OpenCV 2.4.4 ===================================== 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Version control: 2.4.4 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Platform: 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Host: Linux 3.2.0-31-generic x86_64 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Target: Linux 1 armv7-a 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): CMake: 2.8.9 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): CMake generator: Ninja 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): CMake build tool: /usr/local/bin/ninja 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Configuration: Release 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): C/C++: 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Built as dynamic libs?: NO 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): C++ Compiler: /opt/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ (ver 4.6) 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): C++ flags (Release): -fexceptions -frtti -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-8/arch-arm -fpic -DARM_ARCH_5 -DARM_ARCH_5T -DARM_ARCH_5E -DARM_ARCH_5TE -fsigned-char -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -mthumb -fomit-frame-pointer -O3 -DNDEBUG -DNDEBUG 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): C++ flags (Debug): -fexceptions -frtti -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-8/arch-arm -fpic -DARM_ARCH_5 -DARM_ARCH_5T -DARM_ARCH_5E -DARM_ARCH_5TE -fsigned-char -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -marm -finline-limit=64 -fno-strict-aliasing -fno-omit-frame-pointer -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG -ggdb3 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): C Compiler: /opt/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): C flags (Release): -fexceptions -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-8/arch-arm -fpic -DARM_ARCH_5 -DARM_ARCH_5T -DARM_ARCH_5E -DARM_ARCH_5TE -fsigned-char -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -mthumb -fomit-frame-pointer -O3 -DNDEBUG -DNDEBUG 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): C flags (Debug): -fexceptions -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-8/arch-arm -fpic -DARM_ARCH_5 -DARM_ARCH_5T -DARM_ARCH_5E -DARM_ARCH_5TE -fsigned-char -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -marm -finline-limit=64 -fno-strict-aliasing -fno-omit-frame-pointer -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG -ggdb3 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Linker flags (Release): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Linker flags (Debug): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Precompiled headers: YES 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): OpenCV modules: 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): To be built: core androidcamera imgproc flann highgui features2d calib3d ml video objdetect contrib photo java legacy stitching ts videostab 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Disabled: world 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Disabled by dependency: - 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Unavailable: gpu nonfree ocl python 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Android: 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Android ABI: armeabi-v7a 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): STL type: gnustl_static 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Native API level: android-8 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): SDK target: android-11 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Android NDK: /opt/android-ndk-r8c (toolchain: arm-linux-androideabi-4.6) 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): android tool: /home/reports/NVPACK/android-sdk-linux/tools/android (Android SDK Tools, revision 21.1.) 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Google Play package: YES 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Android examples: YES 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): GUI: 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): GTK+ 2.x: NO 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): GThread : NO 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): GtkGlExt: NO 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): OpenGL support: NO 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): Media I/O: 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): ZLib: z (ver 1.2.3) 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): JPEG: build (ver 62) 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): PNG: build (ver 1.5.12) 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): TIFF: build (ver 42 - 4.0.2) 03-16 19:44:09.912: I/OpenCV/StaticHelper(682): JPEG 2000: build (ver 1.900.1) 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): OpenEXR: build (ver 1.7.1) 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Video I/O: 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): AndroidNativeCamera: YES, use prebuilt libraries 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Other third-party libraries: 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Use IPP: NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Use Eigen: YES (ver 3.1.2) 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Use TBB: YES (ver 4.1 interface 6102) 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Use OpenMP: NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Use GCD NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Use Concurrency NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Use C=: NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Use Cuda: NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Use OpenCL: NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Python: 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Interpreter: /usr/bin/python2 (ver 2.7.3) 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Java: 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): ant: /home/reports/NVPACK/apache-ant-1.8.2/bin/ant (ver 1.8.2) 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Java tests: NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Documentation: 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Build Documentation: YES 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Sphinx: /usr/local/bin/sphinx-build (ver Sphinx v1.1.3) 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): PdfLaTeX compiler: /usr/bin/pdflatex 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Tests and samples: 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Tests: NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Performance tests: NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): C/C++ Examples: NO 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): Install path: /home/reports/ci/slave/50-SDK/build/builds/o4a/install 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): cvconfig.h is in: /home/reports/ci/slave/50-SDK/build/builds/o4a 03-16 19:44:09.922: I/OpenCV/StaticHelper(682): ----------------------------------------------------------------- 03-16 19:44:09.922: D/dalvikvm(682): Trying to load lib /data/data/org.opencv.face/lib/libopencv_java.so 0x413eed80 03-16 19:44:09.922: D/dalvikvm(682): Shared lib '/data/data/org.opencv.face/lib/libopencv_java.so' already loaded in same CL 0x413eed80 03-16 19:44:09.922: D/dalvikvm(682): Trying to load lib /data/data/org.opencv.face/lib/libnative_sample.so 0x413eed80 03-16 19:44:09.922: D/dalvikvm(682): Added shared lib /data/data/org.opencv.face/lib/libnative_sample.so 0x413eed80 03-16 19:44:09.922: D/dalvikvm(682): No JNI_OnLoad found in /data/data/org.opencv.face/lib/libnative_sample.so 0x413eed80, skipping init 03-16 19:44:09.922: I/Sample::Activity(682): Instantiated new class org.opencv.face.Sample3Native 03-16 19:44:09.922: I/Sample::Activity(682): onCreate 03-16 19:44:09.942: I/Sample::Activity(682): onResume 03-16 19:44:10.082: D/OpenCVManager/Helper(682): Service connection created 03-16 19:44:10.082: D/OpenCVManager/Helper(682): Trying to get library path 03-16 19:44:10.152: D/OpenCVManager/Helper(682): Trying to get library list 03-16 19:44:10.272: D/OpenCVManager/Helper(682): Library list: "" 03-16 19:44:10.272: D/OpenCVManager/Helper(682): First attempt to load libs 03-16 19:44:10.272: D/OpenCVManager/Helper(682): Trying to init OpenCV libs 03-16 19:44:10.272: D/OpenCVManager/Helper(682): Trying to load library /data/data/org.opencv.engine/lib/libopencv_java.so 03-16 19:44:10.272: D/dalvikvm(682): Trying to load lib /data/data/org.opencv.engine/lib/libopencv_java.so 0x413eed80 03-16 19:44:10.272: D/dalvikvm(682): Added shared lib /data/data/org.opencv.engine/lib/libopencv_java.so 0x413eed80 03-16 19:44:10.272: D/OpenCVManager/Helper(682): OpenCV libs init was ok! 03-16 19:44:10.272: D/OpenCVManager/Helper(682): First attempt to load libs is OK 03-16 19:44:10.272: I/OpenCVManager/Helper(682): General configuration for OpenCV 2.4.4 ===================================== 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Version control: 2.4.4 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Platform: 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Host: Linux 3.2.0-31-generic x86_64 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Target: Linux 1 armv7-a 03-16 19:44:10.272: I/OpenCVManager/Helper(682): CMake: 2.8.9 03-16 19:44:10.272: I/OpenCVManager/Helper(682): CMake generator: Ninja 03-16 19:44:10.272: I/OpenCVManager/Helper(682): CMake build tool: /usr/local/bin/ninja 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Configuration: Release 03-16 19:44:10.272: I/OpenCVManager/Helper(682): C/C++: 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Built as dynamic libs?: NO 03-16 19:44:10.272: I/OpenCVManager/Helper(682): C++ Compiler: /opt/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ (ver 4.6) 03-16 19:44:10.272: I/OpenCVManager/Helper(682): C++ flags (Release): -fexceptions -frtti -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-8/arch-arm -fpic -DARM_ARCH_5 -DARM_ARCH_5T -DARM_ARCH_5E -DARM_ARCH_5TE -fsigned-char -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -mthumb -fomit-frame-pointer -O3 -DNDEBUG -DNDEBUG 03-16 19:44:10.272: I/OpenCVManager/Helper(682): C++ flags (Debug): -fexceptions -frtti -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-8/arch-arm -fpic -DARM_ARCH_5 -DARM_ARCH_5T -DARM_ARCH_5E -DARM_ARCH_5TE -fsigned-char -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -marm -finline-limit=64 -fno-strict-aliasing -fno-omit-frame-pointer -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG -ggdb3 03-16 19:44:10.272: I/OpenCVManager/Helper(682): C Compiler: /opt/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc 03-16 19:44:10.272: I/OpenCVManager/Helper(682): C flags (Release): -fexceptions -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-8/arch-arm -fpic -DARM_ARCH_5 -DARM_ARCH_5T -DARM_ARCH_5E -DARM_ARCH_5TE -fsigned-char -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -mthumb -fomit-frame-pointer -O3 -DNDEBUG -DNDEBUG 03-16 19:44:10.272: I/OpenCVManager/Helper(682): C flags (Debug): -fexceptions -Wno-psabi --sysroot=/opt/android-ndk-r8c/platforms/android-8/arch-arm -fpic -DARM_ARCH_5 -DARM_ARCH_5T -DARM_ARCH_5E -DARM_ARCH_5TE -fsigned-char -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -marm -finline-limit=64 -fno-strict-aliasing -fno-omit-frame-pointer -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG -ggdb3 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Linker flags (Release): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Linker flags (Debug): -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -fuse-ld=gold -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Precompiled headers: YES 03-16 19:44:10.272: I/OpenCVManager/Helper(682): OpenCV modules: 03-16 19:44:10.272: I/OpenCVManager/Helper(682): To be built: core androidcamera imgproc flann highgui features2d calib3d ml video objdetect contrib photo java legacy stitching ts videostab 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Disabled: world 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Disabled by dependency: - 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Unavailable: gpu nonfree ocl python 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Android: 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Android ABI: armeabi-v7a 03-16 19:44:10.272: I/OpenCVManager/Helper(682): STL type: gnustl_static 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Native API level: android-8 03-16 19:44:10.272: I/OpenCVManager/Helper(682): SDK target: android-11 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Android NDK: /opt/android-ndk-r8c (toolchain: arm-linux-androideabi-4.6) 03-16 19:44:10.272: I/OpenCVManager/Helper(682): android tool: /home/reports/NVPACK/android-sdk-linux/tools/android (Android SDK Tools, revision 21.1.) 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Google Play package: YES 03-16 19:44:10.272: I/OpenCVManager/Helper(682): Android examples: YES 03-16 19:44:10.272: I/OpenCVManager/Helper(682): GUI: 03-16 19:44:10.272: I/OpenCVManager/Helper(682): GTK+ 2.x: NO 03-16 19:44:10.272: I/OpenCVManager/Helper(682): GThread : NO 03-16 19:44:10.272: I/OpenCVManager/Helper(682): GtkGlExt: NO 03-16 19:44:10.272: I/OpenCVManager/Helper(682): OpenGL support: NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Media I/O: 03-16 19:44:10.282: I/OpenCVManager/Helper(682): ZLib: z (ver 1.2.3) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): JPEG: build (ver 62) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): PNG: build (ver 1.5.12) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): TIFF: build (ver 42 - 4.0.2) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): JPEG 2000: build (ver 1.900.1) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): OpenEXR: build (ver 1.7.1) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Video I/O: 03-16 19:44:10.282: I/OpenCVManager/Helper(682): AndroidNativeCamera: YES, use prebuilt libraries 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Other third-party libraries: 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Use IPP: NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Use Eigen: YES (ver 3.1.2) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Use TBB: YES (ver 4.1 interface 6102) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Use OpenMP: NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Use GCD NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Use Concurrency NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Use C=: NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Use Cuda: NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Use OpenCL: NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Python: 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Interpreter: /usr/bin/python2 (ver 2.7.3) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Java: 03-16 19:44:10.282: I/OpenCVManager/Helper(682): ant: /home/reports/NVPACK/apache-ant-1.8.2/bin/ant (ver 1.8.2) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Java tests: NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Documentation: 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Build Documentation: YES 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Sphinx: /usr/local/bin/sphinx-build (ver Sphinx v1.1.3) 03-16 19:44:10.282: I/OpenCVManager/Helper(682): PdfLaTeX compiler: /usr/bin/pdflatex 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Tests and samples: 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Tests: NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Performance tests: NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): C/C++ Examples: NO 03-16 19:44:10.282: I/OpenCVManager/Helper(682): Install path: /home/reports/ci/slave/50-SDK/build/builds/o4a/install 03-16 19:44:10.282: I/OpenCVManager/Helper(682): cvconfig.h is in: /home/reports/ci/slave/50-SDK/build/builds/o4a 03-16 19:44:10.282: I/OpenCVManager/Helper(682): ----------------------------------------------------------------- 03-16 19:44:10.282: D/OpenCVManager/Helper(682): Init finished with status 0 03-16 19:44:10.282: D/OpenCVManager/Helper(682): Unbind from service 03-16 19:44:10.282: D/OpenCVManager/Helper(682): Calling using callback 03-16 19:44:10.282: I/Sample::Activity(682): OpenCV loaded successfully 03-16 19:44:10.282: D/dalvikvm(682): Trying to load lib /data/data/org.opencv.face/lib/libnative_sample.so 0x413eed80 03-16 19:44:10.282: D/dalvikvm(682): Shared lib '/data/data/org.opencv.face/lib/libnative_sample.so' already loaded in same CL 0x413eed80 03-16 19:44:10.292: I/Sample::SurfaceView(682): Instantiated new class org.opencv.face.Sample3View 03-16 19:44:10.372: I/Sample::SurfaceView(682): openCamera 03-16 19:44:10.372: I/Sample::SurfaceView(682): releaseCamera 03-16 19:44:10.382: I/Ajay(682): 1ID 03-16 19:44:10.502: I/Sample::SurfaceView(682): surfaceCreated 03-16 19:44:10.502: I/Sample::SurfaceView(682): surfaceChanged 03-16 19:44:10.502: I/Sample::SurfaceView(682): setupCamera 03-16 19:44:10.502: I/Sample::SurfaceView(682): Starting processing thread 03-16 19:44:10.792: D/dalvikvm(682): GC_FOR_ALLOC freed 182K, 4% free 6231K/6471K, paused 27ms, total 28ms 03-16 19:44:10.792: I/dalvikvm-heap(682): Grow heap (frag case) to 8.746MB for 2764816-byte allocation 03-16 19:44:10.822: D/dalvikvm(682): GC_CONCURRENT freed 3K, 4% free 8928K/9223K, paused 12ms+1ms, total 25ms 03-16 19:44:10.822: D/dalvikvm(682): WAIT_FOR_CONCURRENT_GC blocked 2ms 03-16 19:44:10.832: D/dalvikvm(682): GC_FOR_ALLOC freed 0K, 4% free 8928K/9223K, paused 13ms, total 13ms 03-16 19:44:10.842: I/dalvikvm-heap(682): Grow heap (frag case) to 11.379MB for 2764816-byte allocation 03-16 19:44:10.862: D/Camera(682): app passed NULL surface 03-16 19:44:10.862: D/dalvikvm(682): GC_CONCURRENT freed 0K, 3% free 11628K/11975K, paused 11ms+3ms, total 26ms 03-16 19:44:10.862: D/dalvikvm(682): WAIT_FOR_CONCURRENT_GC blocked 7ms 03-16 19:44:10.882: D/dalvikvm(682): GC_FOR_ALLOC freed <1K, 3% free 11628K/11975K, paused 15ms, total 15ms 03-16 19:44:10.892: I/dalvikvm-heap(682): Grow heap (frag case) to 14.895MB for 3686416-byte allocation 03-16 19:44:10.912: D/dalvikvm(682): GC_CONCURRENT freed 0K, 3% free 15228K/15623K, paused 12ms+2ms, total 27ms 03-16 19:44:10.912: D/dalvikvm(682): WAIT_FOR_CONCURRENT_GC blocked 9ms 03-16 19:44:10.932: D/dalvikvm(682): GC_FOR_ALLOC freed <1K, 3% free 15228K/15623K, paused 16ms, total 16ms 03-16 19:44:10.942: I/dalvikvm-heap(682): Grow heap (frag case) to 18.411MB for 3686416-byte allocation 03-16 19:44:10.972: D/dalvikvm(682): GC_CONCURRENT freed 0K, 3% free 18828K/19271K, paused 12ms+2ms, total 26ms 03-16 19:44:10.972: D/dalvikvm(682): WAIT_FOR_CONCURRENT_GC blocked 5ms 03-16 19:44:23.242: D/AndroidRuntime(682): Shutting down VM 03-16 19:44:23.242: W/dalvikvm(682): threadid=1: thread exiting with uncaught exception (group=0x40e0a300) 03-16 19:44:23.242: E/AndroidRuntime(682): FATAL EXCEPTION: main 03-16 19:44:23.242: E/AndroidRuntime(682): java.lang.RuntimeException: takePicture failed 03-16 19:44:23.242: E/AndroidRuntime(682): at android.hardware.Camera.native_takePicture(Native Method) 03-16 19:44:23.242: E/AndroidRuntime(682): at android.hardware.Camera.takePicture(Camera.java:1061) 03-16 19:44:23.242: E/AndroidRuntime(682): at android.hardware.Camera.takePicture(Camera.java:1006) 03-16 19:44:23.242: E/AndroidRuntime(682): at org.opencv.face.Sample3Native$ButtonListener.onClick(Sample3Native.java:48) 03-16 19:44:23.242: E/AndroidRuntime(682): at android.view.View.performClick(View.java:4084) 03-16 19:44:23.242: E/AndroidRuntime(682): at android.view.View$PerformClick.run(View.java:16966) 03-16 19:44:23.242: E/AndroidRuntime(682): at android.os.Handler.handleCallback(Handler.java:615) 03-16 19:44:23.242: E/AndroidRuntime(682): at android.os.Handler.dispatchMessage(Handler.java:92) 03-16 19:44:23.242: E/AndroidRuntime(682): at android.os.Looper.loop(Looper.java:137) 03-16 19:44:23.242: E/AndroidRuntime(682): at android.app.ActivityThread.main(ActivityThread.java:4745) 03-16 19:44:23.242: E/AndroidRuntime(682): at java.lang.reflect.Method.invokeNative(Native Method) 03-16 19:44:23.242: E/AndroidRuntime(682): at java.lang.reflect.Method.invoke(Method.java:511) 03-16 19:44:23.242: E/AndroidRuntime(682): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 03-16 19:44:23.242: E/AndroidRuntime(682): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 03-16 19:44:23.242: E/AndroidRuntime(682): at dalvik.system.NativeStart.main(Native Method) 03-16 19:44:25.122: I/Process(682): Sending signal. PID: 682 SIG: 9
Hi, Ajay191191 Just Wandering do you have any suggestion for me
I am sorry, I did not get time to corner the cause of this error. Can you try to install from scratch and also tell me if you find a solution for this ?
@Nagarameshwar I think your error is related to jni library not getting loaded,i.e the libnative_sample.so. Make sure that you have not deleted the static loading or you are correctly loading it.
Nagarameshwar I think it would be easier for U to debugg the problem if U go through some sample of Native Android and OpenCV android simple application. here are the links: http://developer.android.com/training/articles/perf-jni.html http://blog.edwards-research.com/2012/04/tutorial-android-jni/ http://opencv.org/platforms/android.html
@Nagarameshwar I think you are doing it wrong. Follow these steps: Download the android-ndk and the opencv "android" sdk. Put the ndk build path in your project properties, and the dependent sdk in the library. Compile and run.
@Ajay191191 ..one quick question its not related to the issue this app is of Face recognition or detection as the name revealed is Face recognition but tin the read me file U wrote "This is an Android application for Face Detection using the OPENCV API." A quick reply will be highly appreciated.
@Nagarameshwar This is a face recognition app. Forgot to change the readme !! And u dont have to select the libstdc version, ndk will select the version according to your android version. So this could mean you are not importing it right. OK do one thing. Make sure you have the android opencv sdk project imported in eclipse. Then make sure the opencv sdk library is selected according to the image below.
Then, copy your ndk directory path to the field below. You should be able to compile.
As you can see, there is an error importing the opencv android sdk, first rectify that. And try to run the samples from the sdk first.
http://opencv.willowgarage.com/documentation/cpp/basic_structures.html#mat
It has rows and cols as members, and also doesn't have any other methods to get the same. So I still think there is something missing in your configuration, as they are the class members(hoping you haven't changed the "images" vector type).
@Ajay191191 ..Hi, was wandering have u got a chance to verify the issue I was facing, i.e. In Log cat its showing native_takePicture failed...when I was pressing the capture button in the welcome page...At least if U could give me the info what android version (target) U have used and what hardware device (Android OS version) U have used to run it..I will try to simulate in same environment..thanks in advance
I had tested it on an ARMV6 board on both 2.3.3 as well as 4.1.2 until it recently died . And AFAIR it had happened to me once, but was due to my camera libraries. Nothing to do with the app though.
Dear @Ajay191191 ...I really appreciate your quick response...Could U please elaborate the problem due to "camera libraries"..I mean any link where the problem and the way to solve been discussed ..I guess I am yet to check the possibility...Thanks again
By camera libraries I mean the proprietary device library files (.so files). I had that problem since I was running a custom rom, and I was using the wring camera library files.
@Ajay191191 ..Okay I will give a shot ..hope for the best this time...I will let U know the outcome..Thanks a lot
@Nagarameshwar...hey man thanks for conforming...lets try to solve it
@Nagarameshwar ...man I initially post the issue for this problem only.... stuck in the same position
@Nagarameshwar ... R u able to view the picture preview...I mean in the main form, after pressing the Take Picture Button for me a black screen is appearing no camera preview, with Exit, Capture and Cancel..what about U?
Sounds good for me I'm not having any preview have U change any came handling parameter in the code..
how do u find which header files are unresolved in logcat there is no clue...could U pls explain the way U take care of this issue..
@Nagarameshwar .. Man I am not able to find the index option after right clicking on my project. Second of all I tried to buil it for armeabi; armeabi-v7a x86 both using the command APP_ABI := armeabi armeabi-v7a x86 in application.mk still it didnt work
armeabi; armeabi-v7a and x86; none works
neel.hit@gmail.com
I tried on my tab Asus Transfoer prime tab
@Nagarameshwar , try using APP_ABI := armeabi armeabi-v7a LOCAL_ARM_NEON := true
@ajay i have download ur project when i am running it it is show error "open cv manager has stopped" any solution please tell me
@Ajay191191 i have the same problem that @Nagarameshwar had, the application crash and told me: "Unfortunately ocv t3 addnative opencv have stopped. How can i resolve it? Thank you very much
I'm getting such an error can u help me??? "C:\Work\OpenCV4Android\android-ndk-r8d\ndk-build.cmd" Install : libnative_sample.so => libs/armeabi/libnative_sample.so
I have this issue when I try to run this application, after I take the picture and press detect face the application crash, if you can please help me as I'm new in computer vision field and I need to make face recognition with android
Thanks
dear @Ajay191191 Can you see me how to make this project from the beginning? please... in the form of video, for more details contact me.. aganmatz@gmail.com
Please attach the full logcat. And the android version.