Ask Your Question

donlk's profile - activity

2019-06-04 15:07:04 -0500 received badge  Popular Question (source)
2014-08-14 10:22:30 -0500 commented question OpenCV 3.0.0 unavailable java build target

I finds it alright when building for x86. I put the necessary path variables into my bashrc which gets included whenever i build from terminal. The following variables are set in there:

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

2014-08-14 09:48:28 -0500 received badge  Editor (source)
2014-08-14 09:48:00 -0500 asked a question 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 ...
(more)