enabled Java wrappers and tried compiling using the cmake commands cmake.exe --build . --config Release --target Install
I am getting below errors:
Done Building Project "C:\OpenCV-course\opencv-3.4.1\build\apps\visualisation\opencv_visualisation.vcxproj" (default ta rgets).
Done Building Project "C:\OpenCV-course\opencv-3.4.1\build\ALL_BUILD.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\OpenCV-course\opencv-3.4.1\build\INSTALL.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\OpenCV-course\opencv-3.4.1\build\INSTALL.vcxproj" (default target) (1) -> "C:\OpenCV-course\opencv-3.4.1\build\ALL_BUILD.vcxproj" (default target) (3) -> "C:\OpenCV-course\opencv-3.4.1\build\modules\hdf\opencv_hdf.vcxproj" (default target) (51) -> (ClCompile target) -> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(737): warning C4267: 'initializing': conversi on from 'size_t' to 'int', possible loss of data [C:\OpenCV-course\opencv-3.4.1\build\modules\hdf\opencv_hdf.vcxproj]
"C:\OpenCV-course\opencv-3.4.1\build\INSTALL.vcxproj" (default target) (1) -> "C:\OpenCV-course\opencv-3.4.1\build\ALL_BUILD.vcxproj" (default target) (3) -> "C:\OpenCV-course\opencv-3.4.1\build\modules\java\jni\opencv_java.vcxproj" (default target) (55) -> "C:\OpenCV-course\opencv-3.4.1\build\modules\java\jar\opencv_java_jar.vcxproj" (default target) (57) -> (CustomBuild target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" e xited with code 1. [C:\OpenCV-course\opencv-3.4.1\build\modules\java\jar\opencv_java_jar.vcxproj]