Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV 3.0.0 unavailable java build target

Hi, I have quite an annoying problem with the newest opencv trunk up to date. Python 2.7.6 and 3.4 both are installed, the interpreters are found, yet the java target is disabled. It accours both with arm and x86 build attempts alike. Cmake log attached below.

Detected version of GNU GCC: 48 (408) Performing Test HAVE_CXX_FSIGNED_CHAR Performing Test HAVE_CXX_FSIGNED_CHAR - Success Performing Test HAVE_C_FSIGNED_CHAR Performing Test HAVE_C_FSIGNED_CHAR - Success Performing Test HAVE_CXX_W Performing Test HAVE_CXX_W - Success Performing Test HAVE_C_W Performing Test HAVE_C_W - Success Performing Test HAVE_CXX_WALL Performing Test HAVE_CXX_WALL - Success Performing Test HAVE_C_WALL Performing Test HAVE_C_WALL - Success Performing Test HAVE_CXX_WERROR_RETURN_TYPE Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success Performing Test HAVE_C_WERROR_RETURN_TYPE Performing Test HAVE_C_WERROR_RETURN_TYPE - Success Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success Performing Test HAVE_CXX_WERROR_ADDRESS Performing Test HAVE_CXX_WERROR_ADDRESS - Success Performing Test HAVE_C_WERROR_ADDRESS Performing Test HAVE_C_WERROR_ADDRESS - Success Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success Performing Test HAVE_C_WERROR_SEQUENCE_POINT Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success Performing Test HAVE_CXX_WFORMAT Performing Test HAVE_CXX_WFORMAT - Success Performing Test HAVE_C_WFORMAT Performing Test HAVE_C_WFORMAT - Success Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success Performing Test HAVE_C_WERROR_FORMAT_SECURITY Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success Performing Test HAVE_CXX_WMISSING_DECLARATIONS Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success Performing Test HAVE_C_WMISSING_DECLARATIONS Performing Test HAVE_C_WMISSING_DECLARATIONS - Success Performing Test HAVE_CXX_WMISSING_PROTOTYPES Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed Performing Test HAVE_C_WMISSING_PROTOTYPES Performing Test HAVE_C_WMISSING_PROTOTYPES - Success Performing Test HAVE_CXX_WSTRICT_PROTOTYPES Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed Performing Test HAVE_C_WSTRICT_PROTOTYPES Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success Performing Test HAVE_CXX_WUNDEF Performing Test HAVE_CXX_WUNDEF - Success Performing Test HAVE_C_WUNDEF Performing Test HAVE_C_WUNDEF - Success Performing Test HAVE_CXX_WINIT_SELF Performing Test HAVE_CXX_WINIT_SELF - Success Performing Test HAVE_C_WINIT_SELF Performing Test HAVE_C_WINIT_SELF - Success Performing Test HAVE_CXX_WPOINTER_ARITH Performing Test HAVE_CXX_WPOINTER_ARITH - Success Performing Test HAVE_C_WPOINTER_ARITH Performing Test HAVE_C_WPOINTER_ARITH - Success Performing Test HAVE_CXX_WSHADOW Performing Test HAVE_CXX_WSHADOW - Success Performing Test HAVE_C_WSHADOW Performing Test HAVE_C_WSHADOW - Success Performing Test HAVE_CXX_WSIGN_PROMO Performing Test HAVE_CXX_WSIGN_PROMO - Success Performing Test HAVE_C_WSIGN_PROMO Performing Test HAVE_C_WSIGN_PROMO - Failed Performing Test HAVE_CXX_WNO_NARROWING Performing Test HAVE_CXX_WNO_NARROWING - Success Performing Test HAVE_C_WNO_NARROWING Performing Test HAVE_C_WNO_NARROWING - Success Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success Performing Test HAVE_CXX_FOMIT_FRAME_POINTER Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success Performing Test HAVE_C_FOMIT_FRAME_POINTER Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success Performing Test HAVE_CXX_FVISIBILITY_HIDDEN Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success Performing Test HAVE_C_FVISIBILITY_HIDDEN Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed Looking for pthread.h Looking for pthread.h - found Check if the system is big endian Searching 16 bit integer Looking for sys/types.h Looking for sys/types.h - found Looking for stdint.h Looking for stdint.h - found Looking for stddef.h Looking for stddef.h - found Check size of unsigned short Check size of unsigned short - done Using unsigned short Check if the system is big endian - little endian Found ZLIB: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm/usr/lib/libz.so (found suitable version "1.2.3", minimum required is "1.2.3") Looking for assert.h Looking for assert.h - found Looking for fcntl.h Looking for fcntl.h - found Looking for io.h Looking for io.h - not found Looking for jbg_newlen Looking for jbg_newlen - not found Looking for mmap Looking for mmap - found Looking for search.h Looking for search.h - not found Looking for string.h Looking for string.h - found Looking for unistd.h Looking for unistd.h - found Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Success Performing Test HAVE_C_WNO_MISSING_PROTOTYPES Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success Performing Test HAVE_C_WNO_MISSING_DECLARATIONS Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success Performing Test HAVE_C_WNO_UNDEF Performing Test HAVE_C_WNO_UNDEF - Success Performing Test HAVE_C_WNO_UNUSED Performing Test HAVE_C_WNO_UNUSED - Success Performing Test HAVE_C_WNO_SIGN_COMPARE Performing Test HAVE_C_WNO_SIGN_COMPARE - Success Performing Test HAVE_C_WNO_CAST_ALIGN Performing Test HAVE_C_WNO_CAST_ALIGN - Success Performing Test HAVE_C_WNO_SHADOW Performing Test HAVE_C_WNO_SHADOW - Success Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST - Success Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST - Success Performing Test HAVE_C_WNO_UNUSED_PARAMETER Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success Performing Test HAVE_C_WNO_UNUSED_VARIABLE Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION - Success Performing Test HAVE_C_WNO_UNINITIALIZED Performing Test HAVE_C_WNO_UNINITIALIZED - Success Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER - Success Performing Test HAVE_C_WNO_STRICT_OVERFLOW Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success Looking for semaphore.h Looking for semaphore.h - found Performing Test HAVE_CXX_WNO_SHADOW Performing Test HAVE_CXX_WNO_SHADOW - Success Performing Test HAVE_CXX_WNO_UNUSED Performing Test HAVE_CXX_WNO_UNUSED - Success Performing Test HAVE_CXX_WNO_SIGN_COMPARE Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success Performing Test HAVE_CXX_WNO_UNDEF Performing Test HAVE_CXX_WNO_UNDEF - Success Performing Test HAVE_CXX_WNO_UNINITIALIZED Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success Performing Test HAVE_CXX_WNO_SWITCH Performing Test HAVE_CXX_WNO_SWITCH - Success Performing Test HAVE_CXX_WNO_PARENTHESES Performing Test HAVE_CXX_WNO_PARENTHESES - Success Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success Performing Test HAVE_CXX_WNO_EXTRA Performing Test HAVE_CXX_WNO_EXTRA - Success Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7") Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4", minimum required is "3.4") Found apache ant 1.9.3: /usr/bin/ant Found android tool: /mnt/LinuxData/Development/SDK/android/sdk/tools/android Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) Assume that non-module dependency is available: log (for module opencv_androidcamera) Assume that non-module dependency is available: dl (for module opencv_androidcamera) Assume that non-module dependency is available: z (for module opencv_core) Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success

General configuration for OpenCV 3.0.0-dev ===================================== Version control: 2.4.9-4733-g95a4943-dirty

Platform: Host: Linux 3.13.0-34-generic x86_64 Target: Linux 1 armv7-a CMake: 2.8.12.2 CMake generator: Unix Makefiles CMake build tool: /usr/bin/make Configuration: Release

C/C++: Built as dynamic libs?: NO C++ Compiler: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ (ver 4.8) C++ flags (Release): -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG C Compiler: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc C flags (Release): -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG Linker flags (Release): -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now Linker flags (Debug): -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now Precompiled headers: YES

OpenCV modules: To be built: core androidcamera flann imgproc imgcodecs videoio highgui features2d calib3d ml objdetect photo video shape stitching superres ts videostab Disabled: world Disabled by dependency: - Unavailable: cuda cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaoptflow cudastereo cudawarping cudev java python2 viz

Android: Android ABI: armeabi-v7a STL type: gnustl_static Native API level: android-8 SDK target: android-11 Android NDK: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp (toolchain: arm-linux-androideabi-4.8) android tool: /mnt/LinuxData/Development/SDK/android/sdk/tools/android (Android SDK Tools, revision 23.0.2.) Google Play package: NO Android examples: YES

GUI: GTK+: NO GThread : NO GtkGlExt: NO OpenGL support: NO VTK support: NO

Media I/O: ZLib: z (ver 1.2.3) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.5.12) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO

Video I/O: AndroidNativeCamera: YES, use prebuilt libraries

Other third-party libraries: Use IPP: IPP not found Use Eigen: YES (ver 3.2.0) Use TBB: NO Use OpenMP: NO Use GCD NO Use Concurrency NO Use C=: NO Use Cuda: NO Use OpenCL: YES

OpenCL: Version: dynamic Include path: /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: /usr/bin/python2.7 (ver 2.7.6)

Python 3: Interpreter: /usr/bin/python3.4 (ver 3.4)

Python (for build): NO

Java: ant: /usr/bin/ant (ver 1.9.3) Java tests: YES

Matlab: mex: NO

Documentation: Build Documentation: NO Sphinx: NO PdfLaTeX compiler: NO PlantUML: NO

Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO

Install path: /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a/install

cvconfig.h is in: /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a

Configuring done

OpenCV 3.0.0 unavailable java build target

Hi, I have quite an annoying problem with the newest opencv trunk up to date. Python 2.7.6 and 3.4 both are installed, the interpreters are found, yet the java target is disabled. It accours both with arm and x86 build attempts alike. Cmake log attached below.

Detected version of GNU GCC: 48 (408)

Performing Test HAVE_CXX_FSIGNED_CHAR Performing Test HAVE_CXX_FSIGNED_CHAR - Success Performing Test HAVE_C_FSIGNED_CHAR Performing Test HAVE_C_FSIGNED_CHAR - Success Performing Test HAVE_CXX_W Performing Test HAVE_CXX_W - Success Performing Test HAVE_C_W Performing Test HAVE_C_W - Success Performing Test HAVE_CXX_WALL Performing Test HAVE_CXX_WALL - Success Performing Test HAVE_C_WALL Performing Test HAVE_C_WALL - Success Performing Test HAVE_CXX_WERROR_RETURN_TYPE Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success Performing Test HAVE_C_WERROR_RETURN_TYPE Performing Test HAVE_C_WERROR_RETURN_TYPE - Success Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success Performing Test HAVE_CXX_WERROR_ADDRESS Performing Test HAVE_CXX_WERROR_ADDRESS - Success Performing Test HAVE_C_WERROR_ADDRESS Performing Test HAVE_C_WERROR_ADDRESS - Success Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success Performing Test HAVE_C_WERROR_SEQUENCE_POINT Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success Performing Test HAVE_CXX_WFORMAT Performing Test HAVE_CXX_WFORMAT - Success Performing Test HAVE_C_WFORMAT Performing Test HAVE_C_WFORMAT - Success Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success Performing Test HAVE_C_WERROR_FORMAT_SECURITY Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success Performing Test HAVE_CXX_WMISSING_DECLARATIONS Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success Performing Test HAVE_C_WMISSING_DECLARATIONS Performing Test HAVE_C_WMISSING_DECLARATIONS - Success Performing Test HAVE_CXX_WMISSING_PROTOTYPES Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed Performing Test HAVE_C_WMISSING_PROTOTYPES Performing Test HAVE_C_WMISSING_PROTOTYPES - Success Performing Test HAVE_CXX_WSTRICT_PROTOTYPES Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed Performing Test HAVE_C_WSTRICT_PROTOTYPES Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success Performing Test HAVE_CXX_WUNDEF Performing Test HAVE_CXX_WUNDEF - Success Performing Test HAVE_C_WUNDEF Performing Test HAVE_C_WUNDEF - Success Performing Test HAVE_CXX_WINIT_SELF Performing Test HAVE_CXX_WINIT_SELF - Success Performing Test HAVE_C_WINIT_SELF Performing Test HAVE_C_WINIT_SELF - Success Performing Test HAVE_CXX_WPOINTER_ARITH Performing Test HAVE_CXX_WPOINTER_ARITH - Success Performing Test HAVE_C_WPOINTER_ARITH Performing Test HAVE_C_WPOINTER_ARITH - Success Performing Test HAVE_CXX_WSHADOW Performing Test HAVE_CXX_WSHADOW - Success Performing Test HAVE_C_WSHADOW Performing Test HAVE_C_WSHADOW - Success Performing Test HAVE_CXX_WSIGN_PROMO Performing Test HAVE_CXX_WSIGN_PROMO - Success Performing Test HAVE_C_WSIGN_PROMO Performing Test HAVE_C_WSIGN_PROMO - Failed Performing Test HAVE_CXX_WNO_NARROWING Performing Test HAVE_CXX_WNO_NARROWING - Success Performing Test HAVE_C_WNO_NARROWING Performing Test HAVE_C_WNO_NARROWING - Success Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success Performing Test HAVE_CXX_FOMIT_FRAME_POINTER Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success Performing Test HAVE_C_FOMIT_FRAME_POINTER Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success Performing Test HAVE_CXX_FVISIBILITY_HIDDEN Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success Performing Test HAVE_C_FVISIBILITY_HIDDEN Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed Looking for pthread.h Looking for pthread.h - found Check if the system is big endian Searching 16 bit integer Looking for sys/types.h Looking for sys/types.h - found Looking for stdint.h Looking for stdint.h - found Looking for stddef.h Looking for stddef.h - found Check size of unsigned short Check size of unsigned short - done Using unsigned short Check if the system is big endian - little endian Found ZLIB: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm/usr/lib/libz.so (found suitable version "1.2.3", minimum required is "1.2.3") Looking for assert.h Looking for assert.h - found Looking for fcntl.h Looking for fcntl.h - found Looking for io.h Looking for io.h - not found Looking for jbg_newlen Looking for jbg_newlen - not found Looking for mmap Looking for mmap - found Looking for search.h Looking for search.h - not found Looking for string.h Looking for string.h - found Looking for unistd.h Looking for unistd.h - found Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Success Performing Test HAVE_C_WNO_MISSING_PROTOTYPES Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success Performing Test HAVE_C_WNO_MISSING_DECLARATIONS Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success Performing Test HAVE_C_WNO_UNDEF Performing Test HAVE_C_WNO_UNDEF - Success Performing Test HAVE_C_WNO_UNUSED Performing Test HAVE_C_WNO_UNUSED - Success Performing Test HAVE_C_WNO_SIGN_COMPARE Performing Test HAVE_C_WNO_SIGN_COMPARE - Success Performing Test HAVE_C_WNO_CAST_ALIGN Performing Test HAVE_C_WNO_CAST_ALIGN - Success Performing Test HAVE_C_WNO_SHADOW Performing Test HAVE_C_WNO_SHADOW - Success Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST - Success Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST - Success Performing Test HAVE_C_WNO_UNUSED_PARAMETER Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success Performing Test HAVE_C_WNO_UNUSED_VARIABLE Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION - Success Performing Test HAVE_C_WNO_UNINITIALIZED Performing Test HAVE_C_WNO_UNINITIALIZED - Success Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER - Success Performing Test HAVE_C_WNO_STRICT_OVERFLOW Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success Looking for semaphore.h Looking for semaphore.h - found Performing Test HAVE_CXX_WNO_SHADOW Performing Test HAVE_CXX_WNO_SHADOW - Success Performing Test HAVE_CXX_WNO_UNUSED Performing Test HAVE_CXX_WNO_UNUSED - Success Performing Test HAVE_CXX_WNO_SIGN_COMPARE Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success Performing Test HAVE_CXX_WNO_UNDEF Performing Test HAVE_CXX_WNO_UNDEF - Success Performing Test HAVE_CXX_WNO_UNINITIALIZED Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success Performing Test HAVE_CXX_WNO_SWITCH Performing Test HAVE_CXX_WNO_SWITCH - Success Performing Test HAVE_CXX_WNO_PARENTHESES Performing Test HAVE_CXX_WNO_PARENTHESES - Success Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success Performing Test HAVE_CXX_WNO_EXTRA Performing Test HAVE_CXX_WNO_EXTRA - Success Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7") Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4", minimum required is "3.4") Found apache ant 1.9.3: /usr/bin/ant Found android tool: /mnt/LinuxData/Development/SDK/android/sdk/tools/android Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) Assume that non-module dependency is available: log (for module opencv_androidcamera) Assume that non-module dependency is available: dl (for module opencv_androidcamera) Assume that non-module dependency is available: z (for module opencv_core) Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success

General configuration for OpenCV 3.0.0-dev ===================================== Version control: 2.4.9-4733-g95a4943-dirty

Platform: Host: Linux 3.13.0-34-generic x86_64 Target: Linux 1 armv7-a CMake: 2.8.12.2 CMake generator: Unix Makefiles CMake build tool: /usr/bin/make Configuration: Release

C/C++: Built as dynamic libs?: NO C++ Compiler: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ (ver 4.8) C++ flags (Release): -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG C Compiler: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc C flags (Release): -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG Linker flags (Release): -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now Linker flags (Debug): -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now Precompiled headers: YES

OpenCV modules: To be built: core androidcamera flann imgproc imgcodecs videoio highgui features2d calib3d ml objdetect photo video shape stitching superres ts videostab Disabled: world Disabled by dependency: - Unavailable: cuda cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaoptflow cudastereo cudawarping cudev java python2 viz

Android: Android ABI: armeabi-v7a STL type: gnustl_static Native API level: android-8 SDK target: android-11 Android NDK: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp (toolchain: arm-linux-androideabi-4.8) android tool: /mnt/LinuxData/Development/SDK/android/sdk/tools/android (Android SDK Tools, revision 23.0.2.) Google Play package: NO Android examples: YES

GUI: GTK+: NO GThread : NO GtkGlExt: NO OpenGL support: NO VTK support: NO

Media I/O: ZLib: z (ver 1.2.3) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.5.12) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO

Video I/O: AndroidNativeCamera: YES, use prebuilt libraries

Other third-party libraries: Use IPP: IPP not found Use Eigen: YES (ver 3.2.0) Use TBB: NO Use OpenMP: NO Use GCD NO Use Concurrency NO Use C=: NO Use Cuda: NO Use OpenCL: YES

OpenCL: Version: dynamic Include path: /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: /usr/bin/python2.7 (ver 2.7.6)

Python 3: Interpreter: /usr/bin/python3.4 (ver 3.4)

Python (for build): NO

Java: ant: /usr/bin/ant (ver 1.9.3) Java tests: YES

Matlab: mex: NO

Documentation: Build Documentation: NO Sphinx: NO PdfLaTeX compiler: NO PlantUML: NO

Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO

Install path: /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a/install

cvconfig.h is in: /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a

Configuring done

OpenCV 3.0.0 unavailable java build target

Hi, I have quite an annoying problem with the newest opencv trunk up to date. Python 2.7.6 and 3.4 both are installed, the interpreters are found, yet the java target is disabled. It accours both with arm and x86 build attempts alike. Cmake log attached below.

Detected version of GNU GCC: 48 (408)

Performing Test HAVE_CXX_FSIGNED_CHAR Performing Test HAVE_CXX_FSIGNED_CHAR - Success Performing Test HAVE_C_FSIGNED_CHAR Performing Test HAVE_C_FSIGNED_CHAR - Success Performing Test HAVE_CXX_W Performing Test HAVE_CXX_W - Success Performing Test HAVE_C_W Performing Test HAVE_C_W - Success Performing Test HAVE_CXX_WALL Performing Test HAVE_CXX_WALL - Success Performing Test HAVE_C_WALL Performing Test HAVE_C_WALL - Success Performing Test HAVE_CXX_WERROR_RETURN_TYPE Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success Performing Test HAVE_C_WERROR_RETURN_TYPE Performing Test HAVE_C_WERROR_RETURN_TYPE - Success Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success Performing Test HAVE_CXX_WERROR_ADDRESS Performing Test HAVE_CXX_WERROR_ADDRESS - Success Performing Test HAVE_C_WERROR_ADDRESS Performing Test HAVE_C_WERROR_ADDRESS - Success Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success Performing Test HAVE_C_WERROR_SEQUENCE_POINT Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success Performing Test HAVE_CXX_WFORMAT Performing Test HAVE_CXX_WFORMAT - Success Performing Test HAVE_C_WFORMAT Performing Test HAVE_C_WFORMAT - Success Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success Performing Test HAVE_C_WERROR_FORMAT_SECURITY Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success Performing Test HAVE_CXX_WMISSING_DECLARATIONS Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success Performing Test HAVE_C_WMISSING_DECLARATIONS Performing Test HAVE_C_WMISSING_DECLARATIONS - Success Performing Test HAVE_CXX_WMISSING_PROTOTYPES Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed Performing Test HAVE_C_WMISSING_PROTOTYPES Performing Test HAVE_C_WMISSING_PROTOTYPES - Success Performing Test HAVE_CXX_WSTRICT_PROTOTYPES Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed Performing Test HAVE_C_WSTRICT_PROTOTYPES Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success Performing Test HAVE_CXX_WUNDEF Performing Test HAVE_CXX_WUNDEF - Success Performing Test HAVE_C_WUNDEF Performing Test HAVE_C_WUNDEF - Success Performing Test HAVE_CXX_WINIT_SELF Performing Test HAVE_CXX_WINIT_SELF - Success Performing Test HAVE_C_WINIT_SELF Performing Test HAVE_C_WINIT_SELF - Success Performing Test HAVE_CXX_WPOINTER_ARITH Performing Test HAVE_CXX_WPOINTER_ARITH - Success Performing Test HAVE_C_WPOINTER_ARITH Performing Test HAVE_C_WPOINTER_ARITH - Success Performing Test HAVE_CXX_WSHADOW Performing Test HAVE_CXX_WSHADOW - Success Performing Test HAVE_C_WSHADOW Performing Test HAVE_C_WSHADOW - Success Performing Test HAVE_CXX_WSIGN_PROMO Performing Test HAVE_CXX_WSIGN_PROMO - Success Performing Test HAVE_C_WSIGN_PROMO Performing Test HAVE_C_WSIGN_PROMO - Failed Performing Test HAVE_CXX_WNO_NARROWING Performing Test HAVE_CXX_WNO_NARROWING - Success Performing Test HAVE_C_WNO_NARROWING Performing Test HAVE_C_WNO_NARROWING - Success Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success Performing Test HAVE_CXX_FOMIT_FRAME_POINTER Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success Performing Test HAVE_C_FOMIT_FRAME_POINTER Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success Performing Test HAVE_CXX_FVISIBILITY_HIDDEN Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success Performing Test HAVE_C_FVISIBILITY_HIDDEN Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed Looking for pthread.h Looking for pthread.h - found Check if the system is big endian Searching 16 bit integer Looking for sys/types.h Looking for sys/types.h - found Looking for stdint.h Looking for stdint.h - found Looking for stddef.h Looking for stddef.h - found Check size of unsigned short Check size of unsigned short - done Using unsigned short Check if the system is big endian - little endian Found ZLIB: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm/usr/lib/libz.so (found suitable version "1.2.3", minimum required is "1.2.3") Looking for assert.h Looking for assert.h - found Looking for fcntl.h Looking for fcntl.h - found Looking for io.h Looking for io.h - not found Looking for jbg_newlen Looking for jbg_newlen - not found Looking for mmap Looking for mmap - found Looking for search.h Looking for search.h - not found Looking for string.h Looking for string.h - found Looking for unistd.h Looking for unistd.h - found Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE Performing Test HAVE_C_WNO_UNUSED_BUT_SET_VARIABLE - Success Performing Test HAVE_C_WNO_MISSING_PROTOTYPES Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success Performing Test HAVE_C_WNO_MISSING_DECLARATIONS Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success Performing Test HAVE_C_WNO_UNDEF Performing Test HAVE_C_WNO_UNDEF - Success Performing Test HAVE_C_WNO_UNUSED Performing Test HAVE_C_WNO_UNUSED - Success Performing Test HAVE_C_WNO_SIGN_COMPARE Performing Test HAVE_C_WNO_SIGN_COMPARE - Success Performing Test HAVE_C_WNO_CAST_ALIGN Performing Test HAVE_C_WNO_CAST_ALIGN - Success Performing Test HAVE_C_WNO_SHADOW Performing Test HAVE_C_WNO_SHADOW - Success Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST Performing Test HAVE_C_WNO_POINTER_TO_INT_CAST - Success Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST Performing Test HAVE_C_WNO_INT_TO_POINTER_CAST - Success Performing Test HAVE_C_WNO_UNUSED_PARAMETER Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success Performing Test HAVE_C_WNO_UNUSED_VARIABLE Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION - Success Performing Test HAVE_C_WNO_UNINITIALIZED Performing Test HAVE_C_WNO_UNINITIALIZED - Success Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER - Success Performing Test HAVE_C_WNO_STRICT_OVERFLOW Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success Looking for semaphore.h Looking for semaphore.h - found Performing Test HAVE_CXX_WNO_SHADOW Performing Test HAVE_CXX_WNO_SHADOW - Success Performing Test HAVE_CXX_WNO_UNUSED Performing Test HAVE_CXX_WNO_UNUSED - Success Performing Test HAVE_CXX_WNO_SIGN_COMPARE Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success Performing Test HAVE_CXX_WNO_UNDEF Performing Test HAVE_CXX_WNO_UNDEF - Success Performing Test HAVE_CXX_WNO_UNINITIALIZED Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success Performing Test HAVE_CXX_WNO_SWITCH Performing Test HAVE_CXX_WNO_SWITCH - Success Performing Test HAVE_CXX_WNO_PARENTHESES Performing Test HAVE_CXX_WNO_PARENTHESES - Success Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success Performing Test HAVE_CXX_WNO_EXTRA Performing Test HAVE_CXX_WNO_EXTRA - Success Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7") Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4", minimum required is "3.4") Found apache ant 1.9.3: /usr/bin/ant Found android tool: /mnt/LinuxData/Development/SDK/android/sdk/tools/android Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) Assume that non-module dependency is available: log (for module opencv_androidcamera) Assume that non-module dependency is available: dl (for module opencv_androidcamera) Assume that non-module dependency is available: z (for module opencv_core) Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success

General configuration for OpenCV 3.0.0-dev ===================================== Version control: 2.4.9-4733-g95a4943-dirty

2.4.9-4733-g95a4943-dirty Platform: Host: Linux 3.13.0-34-generic x86_64 Target: Linux 1 armv7-a CMake: 2.8.12.2 CMake generator: Unix Makefiles CMake build tool: /usr/bin/make Configuration: Release

Release C/C++: Built as dynamic libs?: NO C++ Compiler: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ (ver 4.8) C++ flags (Release): -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG C Compiler: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc C flags (Release): -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG Linker flags (Release): -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now Linker flags (Debug): -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now Linker flags (Debug): -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now Precompiled headers: YES

YES OpenCV modules: To be built: core androidcamera flann imgproc imgcodecs videoio highgui features2d calib3d ml objdetect photo video shape stitching superres ts videostab Disabled: world Disabled by dependency: - Unavailable: cuda cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaoptflow cudastereo cudawarping cudev java python2 viz

viz Android: Android ABI: armeabi-v7a STL type: gnustl_static Native API level: android-8 SDK target: android-11 Android NDK: /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp (toolchain: arm-linux-androideabi-4.8) android tool: /mnt/LinuxData/Development/SDK/android/sdk/tools/android (Android SDK Tools, revision 23.0.2.) Google Play package: NO Android examples: YES

YES GUI: GTK+: NO GThread : NO GtkGlExt: NO OpenGL support: NO VTK support: NO

NO Media I/O: ZLib: z (ver 1.2.3) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.5.12) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO

NO Video I/O: AndroidNativeCamera: YES, use prebuilt libraries

libraries Other third-party libraries: Use IPP: IPP not found Use Eigen: YES (ver 3.2.0) Use TBB: NO Use OpenMP: NO Use GCD NO Use Concurrency NO Use C=: NO Use Cuda: NO Use OpenCL: YES

YES OpenCL: Version: dynamic Include path: /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

NO Python 2: Interpreter: /usr/bin/python2.7 (ver 2.7.6)

2.7.6) Python 3: Interpreter: /usr/bin/python3.4 (ver 3.4)

3.4) Python (for build): NO

NO Java: ant: /usr/bin/ant (ver 1.9.3) Java tests: YES

YES Matlab: mex: NO

NO Documentation: Build Documentation: NO Sphinx: NO PdfLaTeX compiler: NO PlantUML: NO

NO Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO

NO Install path: /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a/install

/mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a/install cvconfig.h is in: /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a

/mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a ----------------------------------------------------------------- Configuring done

done

OpenCV 3.0.0 unavailable java build target

Hi, I have quite an annoying problem with the newest opencv trunk up to date. date.

Python 2.7.6 and 3.4 both are installed, the interpreters are found, yet the java target is disabled. unavailable. It accours both with arm and x86 build attempts alike. Cmake log attached below.

Detected version of GNU GCC: 48 (408)
Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7") 
Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4", minimum required is "3.4") 
Found apache ant 1.9.3: /usr/bin/ant
Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
Assume that non-module dependency is available: log (for module opencv_androidcamera)
Assume that non-module dependency is available: dl (for module opencv_androidcamera)
Assume that non-module dependency is available: z (for module opencv_core)

General configuration for OpenCV 3.0.0-dev =====================================
  Version control:               2.4.9-4733-g95a4943-dirty

  Platform:
    Host:                        Linux 3.13.0-34-generic x86_64
    Target:                      Linux 1 armv7-a
    CMake:                       2.8.12.2
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/make
    Configuration:               Release

  C/C++:
    Built as dynamic libs?:      NO
    C++ Compiler:                /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++  (ver 4.8)
    C++ flags (Release):         -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
    C flags (Release):           -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 
    Linker flags (Debug):        -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 
    Precompiled headers:         YES

  OpenCV modules:
    To be built:                 core androidcamera flann imgproc imgcodecs videoio highgui features2d calib3d ml objdetect photo video shape stitching superres ts videostab
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 cuda cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaoptflow cudastereo cudawarping cudev java python2 viz

  Android: 
    Android ABI:                 armeabi-v7a
    STL type:                    gnustl_static
    Native API level:            android-8
    SDK target:                  android-11
    Android NDK:                 /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp (toolchain: arm-linux-androideabi-4.8)
    android tool:                /mnt/LinuxData/Development/SDK/android/sdk/tools/android (Android SDK Tools, revision 23.0.2.)
    Google Play package:         NO
    Android examples:            YES

  GUI: 
    GTK+:                        NO
    GThread :                    NO
    GtkGlExt:                    NO
    OpenGL support:              NO
    VTK support:                 NO

  Media I/O: 
    ZLib:                        z (ver 1.2.3)
    JPEG:                        build (ver 90)
    WEBP:                        build (ver 0.3.1)
    PNG:                         build (ver 1.5.12)
    TIFF:                        build (ver 42 - 4.0.2)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)
    GDAL:                        NO

  Video I/O:
    AndroidNativeCamera:         YES, use prebuilt libraries

  Other third-party libraries:
    Use IPP:                     IPP not found
    Use Eigen:                   YES (ver 3.2.0)
    Use TBB:                     NO
    Use OpenMP:                  NO
    Use GCD                      NO
    Use Concurrency              NO
    Use C=:                      NO
    Use Cuda:                    NO
    Use OpenCL:                  YES

  OpenCL:
    Version:                     dynamic
    Include path:                /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/3rdparty/include/opencl/1.2
    Use AMDFFT:                  NO
    Use AMDBLAS:                 NO

  Python 2:
    Interpreter:                 /usr/bin/python2.7 (ver 2.7.6)

  Python 3:
    Interpreter:                 /usr/bin/python3.4 (ver 3.4)

  Python (for build):            NO

  Java:
    ant:                         /usr/bin/ant (ver 1.9.3)
    Java tests:                  YES

  Matlab:
    mex:                         NO

  Documentation:
    Build Documentation:         NO
    Sphinx:                      NO
    PdfLaTeX compiler:           NO
    PlantUML:                    NO

  Tests and samples:
    Tests:                       YES
    Performance tests:           YES
    C/C++ Examples:              NO

  Install path:                  /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a/install

  cvconfig.h is in:              /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a
-----------------------------------------------------------------

Configuring done

OpenCV 3.0.0 unavailable java build target

Hi, I have quite an annoying problem with the newest opencv trunk up to date.

Python 2.7.6 and 3.4 both are installed, the interpreters are found, yet the java target is unavailable. It accours both with arm and x86 accurs when trying to build attempts alike. for arm. Cmake log attached below.

Detected version of GNU GCC: 48 (408)
Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7") 
Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4", minimum required is "3.4") 
Found apache ant 1.9.3: /usr/bin/ant
Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
Assume that non-module dependency is available: log (for module opencv_androidcamera)
Assume that non-module dependency is available: dl (for module opencv_androidcamera)
Assume that non-module dependency is available: z (for module opencv_core)

General configuration for OpenCV 3.0.0-dev =====================================
  Version control:               2.4.9-4733-g95a4943-dirty

  Platform:
    Host:                        Linux 3.13.0-34-generic x86_64
    Target:                      Linux 1 armv7-a
    CMake:                       2.8.12.2
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/make
    Configuration:               Release

  C/C++:
    Built as dynamic libs?:      NO
    C++ Compiler:                /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++  (ver 4.8)
    C++ flags (Release):         -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
    C flags (Release):           -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 
    Linker flags (Debug):        -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 
    Precompiled headers:         YES

  OpenCV modules:
    To be built:                 core androidcamera flann imgproc imgcodecs videoio highgui features2d calib3d ml objdetect photo video shape stitching superres ts videostab
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 cuda cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaoptflow cudastereo cudawarping cudev java python2 viz

  Android: 
    Android ABI:                 armeabi-v7a
    STL type:                    gnustl_static
    Native API level:            android-8
    SDK target:                  android-11
    Android NDK:                 /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp (toolchain: arm-linux-androideabi-4.8)
    android tool:                /mnt/LinuxData/Development/SDK/android/sdk/tools/android (Android SDK Tools, revision 23.0.2.)
    Google Play package:         NO
    Android examples:            YES

  GUI: 
    GTK+:                        NO
    GThread :                    NO
    GtkGlExt:                    NO
    OpenGL support:              NO
    VTK support:                 NO

  Media I/O: 
    ZLib:                        z (ver 1.2.3)
    JPEG:                        build (ver 90)
    WEBP:                        build (ver 0.3.1)
    PNG:                         build (ver 1.5.12)
    TIFF:                        build (ver 42 - 4.0.2)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)
    GDAL:                        NO

  Video I/O:
    AndroidNativeCamera:         YES, use prebuilt libraries

  Other third-party libraries:
    Use IPP:                     IPP not found
    Use Eigen:                   YES (ver 3.2.0)
    Use TBB:                     NO
    Use OpenMP:                  NO
    Use GCD                      NO
    Use Concurrency              NO
    Use C=:                      NO
    Use Cuda:                    NO
    Use OpenCL:                  YES

  OpenCL:
    Version:                     dynamic
    Include path:                /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/3rdparty/include/opencl/1.2
    Use AMDFFT:                  NO
    Use AMDBLAS:                 NO

  Python 2:
    Interpreter:                 /usr/bin/python2.7 (ver 2.7.6)

  Python 3:
    Interpreter:                 /usr/bin/python3.4 (ver 3.4)

  Python (for build):            NO

  Java:
    ant:                         /usr/bin/ant (ver 1.9.3)
    Java tests:                  YES

  Matlab:
    mex:                         NO

  Documentation:
    Build Documentation:         NO
    Sphinx:                      NO
    PdfLaTeX compiler:           NO
    PlantUML:                    NO

  Tests and samples:
    Tests:                       YES
    Performance tests:           YES
    C/C++ Examples:              NO

  Install path:                  /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a/install

  cvconfig.h is in:              /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a
-----------------------------------------------------------------

Configuring done

OpenCV 3.0.0 unavailable java build target

Hi, I have quite an annoying problem with the newest opencv trunk up to date.

Python 2.7.6 and 3.4 both are installed, the interpreters are found, yet the java target is unavailable. It accurs when trying to build for arm. Cmake log attached below.

EDIT: The following variables are set in my .bashrc, and cmake finds them when compiling for x86:

export JAVA_HOME=/usr/lib/jvm/java-7-oracle
export JAVA_INCLUDE_PATH=/usr/lib/jvm/java-7-oracle/include
export JAVA_INCLUDE_PATH2=/usr/lib/jvm/java-7-oracle/include/linux
export PATH=$PATH:/usr/lib/jvm/java-7-oracle


Detected version of GNU GCC: 48 (408)
Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7") 
Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4", minimum required is "3.4") 
Found apache ant 1.9.3: /usr/bin/ant
Could NOT find Matlab (missing:  MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
Assume that non-module dependency is available: log (for module opencv_androidcamera)
Assume that non-module dependency is available: dl (for module opencv_androidcamera)
Assume that non-module dependency is available: z (for module opencv_core)

General configuration for OpenCV 3.0.0-dev =====================================
  Version control:               2.4.9-4733-g95a4943-dirty

  Platform:
    Host:                        Linux 3.13.0-34-generic x86_64
    Target:                      Linux 1 armv7-a
    CMake:                       2.8.12.2
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/make
    Configuration:               Release

  C/C++:
    Built as dynamic libs?:      NO
    C++ Compiler:                /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++  (ver 4.8)
    C++ flags (Release):         -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fexceptions -frtti -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
    C flags (Release):           -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fexceptions -Wno-psabi --sysroot=/mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp/platforms/android-8/arch-arm -fpic -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fdata-sections -ffunction-sections -Wa,--noexecstack    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -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 -fvisibility=hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 
    Linker flags (Debug):        -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -llog -Wl,--fix-cortex-a8 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now 
    Precompiled headers:         YES

  OpenCV modules:
    To be built:                 core androidcamera flann imgproc imgcodecs videoio highgui features2d calib3d ml objdetect photo video shape stitching superres ts videostab
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 cuda cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaoptflow cudastereo cudawarping cudev java python2 viz

  Android: 
    Android ABI:                 armeabi-v7a
    STL type:                    gnustl_static
    Native API level:            android-8
    SDK target:                  android-11
    Android NDK:                 /mnt/LinuxData/Development/SDK/android/android-ndk-r9d-openmp (toolchain: arm-linux-androideabi-4.8)
    android tool:                /mnt/LinuxData/Development/SDK/android/sdk/tools/android (Android SDK Tools, revision 23.0.2.)
    Google Play package:         NO
    Android examples:            YES

  GUI: 
    GTK+:                        NO
    GThread :                    NO
    GtkGlExt:                    NO
    OpenGL support:              NO
    VTK support:                 NO

  Media I/O: 
    ZLib:                        z (ver 1.2.3)
    JPEG:                        build (ver 90)
    WEBP:                        build (ver 0.3.1)
    PNG:                         build (ver 1.5.12)
    TIFF:                        build (ver 42 - 4.0.2)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)
    GDAL:                        NO

  Video I/O:
    AndroidNativeCamera:         YES, use prebuilt libraries

  Other third-party libraries:
    Use IPP:                     IPP not found
    Use Eigen:                   YES (ver 3.2.0)
    Use TBB:                     NO
    Use OpenMP:                  NO
    Use GCD                      NO
    Use Concurrency              NO
    Use C=:                      NO
    Use Cuda:                    NO
    Use OpenCL:                  YES

  OpenCL:
    Version:                     dynamic
    Include path:                /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/3rdparty/include/opencl/1.2
    Use AMDFFT:                  NO
    Use AMDBLAS:                 NO

  Python 2:
    Interpreter:                 /usr/bin/python2.7 (ver 2.7.6)

  Python 3:
    Interpreter:                 /usr/bin/python3.4 (ver 3.4)

  Python (for build):            NO

  Java:
    ant:                         /usr/bin/ant (ver 1.9.3)
    Java tests:                  YES

  Matlab:
    mex:                         NO

  Documentation:
    Build Documentation:         NO
    Sphinx:                      NO
    PdfLaTeX compiler:           NO
    PlantUML:                    NO

  Tests and samples:
    Tests:                       YES
    Performance tests:           YES
    C/C++ Examples:              NO

  Install path:                  /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a/install

  cvconfig.h is in:              /mnt/LinuxData/Development/SDK/opencv/opencv_trunk/built/armv7a
-----------------------------------------------------------------

Configuring done