Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 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: 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/flann/CMakeLists.txt:2 (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)
cmake/OpenCVModule.cmake:857 (ocv_create_module)
modules/imgproc/CMakeLists.txt:2 (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)
cmake/OpenCVModule.cmake:857 (ocv_create_module)
modules/ml/CMakeLists.txt:2 (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)
cmake/OpenCVModule.cmake:857 (ocv_create_module)
modules/photo/CMakeLists.txt:7 (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)
cmake/OpenCVModule.cmake:857 (ocv_create_module)
modules/video/CMakeLists.txt:2 (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/imgcodecs/CMakeLists.txt:105 (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: 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/shape/CMakeLists.txt:2 (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.

videoio: Removing WinRT API headers by default 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/videoio/CMakeLists.txt:219 (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: 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/highgui/CMakeLists.txt:102 (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: 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/objdetect/CMakeLists.txt:2 (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)
cmake/OpenCVModule.cmake:857 (ocv_create_module)
modules/superres/CMakeLists.txt:7 (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/ts/CMakeLists.txt:16 (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: 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/features2d/CMakeLists.txt:2 (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)
cmake/OpenCVModule.cmake:857 (ocv_create_module)
modules/calib3d/CMakeLists.txt:2 (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)
cmake/OpenCVModule.cmake:857 (ocv_create_module)
modules/stitching/CMakeLists.txt:7 (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)
cmake/OpenCVModule.cmake:857 (ocv_create_module)
modules/videostab/CMakeLists.txt:11 (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.

General configuration for OpenCV 3.0.0 ===================================== Version control: unknown

Platform: Host: Windows 6.2 AMD64 CMake: 3.3.0-rc3 CMake generator: MinGW Makefiles CMake build tool: C:/PROGRA~1/MINGW-~1/X86_64~1.0-W/mingw64/bin/mingw32-make.exe Configuration: Release

C/C++: Built as dynamic libs?: NO C++ Compiler: c:/Program Files/mingw-w64/x86_64-5.1.0-win32-sjlj-rt_v4-rev0/mingw64/bin/g++.exe (ver 5.1.0) C++ flags (Release): -fPIC -fsigned-char -mstackrealign -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 -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -msse -msse2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DNDEBUG C++ flags (Debug): -fPIC -fsigned-char -mstackrealign -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 -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -msse -msse2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG C Compiler: c:/Program Files/mingw-w64/x86_64-5.1.0-win32-sjlj-rt_v4-rev0/mingw64/bin/gcc.exe C flags (Release): -fPIC -fsigned-char -mstackrealign -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 -Wno-long-long -fomit-frame-pointer -msse -msse2 -ffunction-sections -fvisibility=hidden -O2 -DNDEBUG -DNDEBUG C flags (Debug): -fPIC -fsigned-char -mstackrealign -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 -Wno-long-long -fomit-frame-pointer -msse -msse2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG Linker flags (Release):
Linker flags (Debug):
Precompiled headers: YES Extra dependencies: comctl32 gdi32 ole32 setupapi ws2_32 avifil32 avicap32 winmm msvfw32 stdc++ 3rdparty dependencies: zlib libjpeg libwebp libpng libtiff libjasper IlmImf

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

Windows RT support: NO

GUI: QT: NO Win32 UI: YES OpenGL support: NO VTK support: NO

Media I/O: ZLib: build (ver 1.2.8) 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: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 55.18.102) format: YES (ver 55.12.100) util: YES (ver 52.38.100) swscale: YES (ver 2.3.100) resample: NO gentoo-style: YES OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO

Other third-party libraries: Use IPP: NO Use IPP Async: NO Use Eigen: NO Use TBB: NO Use OpenMP: NO Use GCD NO Use Concurrency NO Use C=: NO Use pthreads for parallel for: NO Use Cuda: NO Use OpenCL: YES

OpenCL: Version: dynamic Include path: C:/opencv/sources/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: NO

Python 3: Interpreter: C:/Python34/python.exe (ver 3.4.3)

Python (for build): NO

**

  • > Java:
  • > ant: c:/apache_ant/bin/ant.bat (ver 1.9.6)
  • > JNI: C:/Program Files/Java/jdk1.8.0_45/include C:/Program Files/Java/jdk1.8.0_45 include/win32 C:/Program Files/Java/jdk1.8.0_45/include
  • > Java wrappers: NO
  • > Java tests: NO**

Matlab: mex: NO

Documentation: Doxygen: NO PlantUML: NO

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

Install path:
C:/opencv/mbuild/install

cvconfig.h is in:

C:/opencv/mbuild

Configuring done