Build problem on windows x64 with java library

asked 2015-07-11 16:22:05 -0500

miro gravatar image

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)
edit retag flag offensive close merge delete