Ask Your Question

miro's profile - activity

2015-10-20 04:13:20 -0600 received badge  Student (source)
2015-07-11 16:22:05 -0600 asked a question Build problem on windows x64 with java library

Hello ,

i think something is wrong with opencv 3.0 because i tried build opencv on two 64bit computers with windows 8 and i was not able to get jar file with java x64 library. I spent days on it but no luck. Where can i found in cmake files creating process of jar file or can i debug this part of compilation?

Check my steps please: Here is my PC configuration: Windows 8.1 x64 Processor Intel core - I5-4670K 3.4GHz 8Gb Ram !!! This is two weaks old computer. Nothing special is installed on it.

  • Ant version 1.9.6
  • Cmake version 3.3.0- rc3
  • JDK - Java version 1.8.0_45
  • mingw-w64 - [x86_64-5.1.0-win32-sjlj-rt_v4-rev0]

My steps:

0. Download opencv-3.0.0.exe and put all files to c:\opencv 
1. Installed all of programs above. 
2. JAVA_HOME=c:\Program Files\Java\jdk1.8.0_45 
3. ANT_HOME=c:\apache_ant
4. PATH=C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\MinGW\bin;%OPENCV_DIR%\bin;c:\Program Files (x86)\GnuWin32\bin\;C:\Program Files(x86)\sbt\\bin;%ANT_HOME%\bin;%JAVA_HOME%\bin;c:\Program  Files\mingw-w64\x86_64-5.1.0-win32-sjlj-rt_v4-rev0\mingw64\bin;%USERPROFILE%\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program    Files\Microsoft SQL Server\120\Tools\Binn\
5. Opened cmake-gui choosed source and build directory
6. Clicked on configure and choosed Mingw
7. Turned off WITH_IPP - because i got error during compilation
8. Turned off BUILD_TEST and also BUILD_PERF_TEST - because i got
error during compilation
9. Turned off BUILD_SHARED_LIBS
10. Clicked on configure
11. Clicked on Generate
12. Then i opened cmd on directory c:\opencv\build
13. make -j8 (also i tried mingw32-make)
14. compilation ok but !!!!no jar file no java library!!!

  • I tried reinstall ant to older version. I tried reinstall JDK.
  • I tried reinstall mingw.
  • I tried install Visual studio 2015RC and use it.

This errors in cmake output have nothing with ant or java. I debuged this parts.

ERROR: The system was unable to find the specified registry key or value.

================================== Cmake output

Detected version of GNU GCC: 51 (501) CUDA compilation is disabled (due to only Visual Studio compiler supported on your platform). Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7") Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.6") Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "3.4.3") Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named 'numpy'

Found apache ant 1.9.6: c:/apache_ant/bin/ant.bat ERROR: The system was unable to find the specified registry key or value.

ERROR: The system was unable to find the specified registry key or value.

Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT ...

(more)
2015-07-08 23:01:22 -0600 asked a question Jar is not created

Hello, i spent 3 days reading manuals and issues how to build opencv, but i still not get jar files. Please help me. Here is cmake output.

Detected version of GNU GCC: 51 (501) CUDA compilation is disabled (due to only Visual Studio compiler supported on your platform). Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7") Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.6") Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "3.4.3") Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named 'numpy'

Found apache ant 1.9.6: c:/apache_ant/bin/ant.bat ERROR: The system was unable to find the specified registry key or value.

ERROR: The system was unable to find the specified registry key or value.

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) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:80 (GET_DIRECTORY_PROPERTY): Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory property. Run "cmake --help-policy CMP0059" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): cmake/OpenCVPCHSupport.cmake:256 (_PCH_GET_COMPILE_FLAGS) cmake/OpenCVPCHSupport.cmake:369 (add_precompiled_header) cmake/OpenCVModule.cmake:835 (ocv_add_precompiled_header_to_target) cmake/OpenCVModule.cmake:806 (_ocv_add_precompiled_headers) cmake/OpenCVModule.cmake:688 (_ocv_create_module) cmake/OpenCVModule.cmake:857 (ocv_create_module) modules/hal/CMakeLists.txt:12 (ocv_define_module) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:618 (add_subdirectory): Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory property. Run "cmake --help-policy CMP0059" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:80 (GET_DIRECTORY_PROPERTY): Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory property. Run "cmake --help-policy CMP0059" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): cmake/OpenCVPCHSupport.cmake:256 (_PCH_GET_COMPILE_FLAGS) cmake/OpenCVPCHSupport.cmake:369 (add_precompiled_header) cmake/OpenCVModule.cmake:835 (ocv_add_precompiled_header_to_target) cmake/OpenCVModule.cmake:806 (_ocv_add_precompiled_headers) cmake/OpenCVModule.cmake:688 (_ocv_create_module) modules/core/CMakeLists.txt:26 (ocv_create_module) This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:618 (add_subdirectory): Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory property. Run "cmake --help-policy CMP0059" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:80 (GET_DIRECTORY_PROPERTY): Policy CMP0059 is not set ... (more)