Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Build Java wrappers OpenCV 3.3.0 with contrib

Can someone point me to a guide to build Java wrappers OpenCV 3.3.0 (or 3.2.0) with contrib modules? I am using Windows 10. I have run into several problems trying to follow online guides :( If someone knows of a good guide to accomplish the build, I would be very grateful if you shared it with meeee

Build Java wrappers OpenCV 3.3.0 with contrib

Can someone point me to a guide to build Java wrappers OpenCV 3.3.0 (or 3.2.0) with contrib modules? I am using Windows 10. I have run into several problems trying to follow online guides :( If someone knows of a good guide to accomplish the build, I would be very grateful if you shared it with meeee

EDIT: I will attach below the CMake output and mingw error I receive when using this guide. I am using Windows 10 and generating MinGW Makefiles. I recieve an error when I use "mingw32-make install" at 28% when videoio's cap_dshow.cpp is being built. Please look below the CMake output to see the error I receive.

Thanks for any suggestions and assistance.

CMAKE OUTPUT------------------------------------------------------------------------------------------------------------

CMake Deprecation Warning at CMakeLists.txt:81 (cmake_policy):
The OLD behavior for policy CMP0020 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:85 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:94 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


Detected version of GNU GCC: 53 (503)
Found PythonInterp: C:/Users/Tyler/AppData/Local/Programs/Python/Python36/python.exe (found suitable 
version "3.6.1", minimum required is "2.7") 
CUDA compilation is disabled (due to only Visual Studio compiler supported on your platform).
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
A library with BLAS API not found. Please specify library location.
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
Found apache ant 1.10.1: C:/ant/bin/ant.bat
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
Caffe:   NO
Protobuf:   NO
Glog:   NO
CMake Deprecation Warning at C:/OpenCV-3.3.0-Java/opencv_contrib-
3.3.0/modules/dnn_modern/CMakeLists.txt:9 (cmake_policy):
The OLD behavior for policy CMP0028 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


tiny-dnn: Download: v1.0.0a3.tar.gz
Looking for tiny_dnn.h
Looking for tiny_dnn.h - found
Found tiny-dnn in: C:/OpenCV-3.3.0-Java/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3
Performing Test COMPILER_SUPPORTS_CXX11
Performing Test COMPILER_SUPPORTS_CXX11 - Success
The protocol buffer compiler is not found (PROTOBUF_PROTOC_EXECUTABLE='Protobuf_PROTOC_EXECUTABLE-
NOTFOUND')
freetype2:   NO
harfbuzz:    NO
No preference for use of exported gflags CMake configuration set, and no hints for include/library directories 
provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for 
installed gflags components.
Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing 
gflags/gflags.h
Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing 
glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
Excluding from source files list: C:/OpenCV-3.3.0-Java/build/modules/imgproc/accum.neon.cpp
Torch importer has been enabled. To run the tests you have to install Torch ('th' executable should be available) 
and generate testdata using opencv_extra/testdata/dnn/generate_torch_models.py script.
Tesseract:   NO
xfeatures2d/boostdesc: Download: boostdesc_bgm.i
xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i
xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i
xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i
xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i
xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i
xfeatures2d/boostdesc: Download: boostdesc_lbgm.i
xfeatures2d/vgg: Download: vgg_generated_48.i
xfeatures2d/vgg: Download: vgg_generated_64.i
xfeatures2d/vgg: Download: vgg_generated_80.i
xfeatures2d/vgg: Download: vgg_generated_120.i

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

Extra modules:
Location (extra):            C:/OpenCV-3.3.0-Java/opencv_contrib-3.3.0/modules
Version control (extra):     unknown

Platform:
Timestamp:                   2017-08-09T16:55:40Z
Host:                        Windows 10.0.15063 AMD64
CMake:                       3.9.0-rc4
CMake generator:             MinGW Makefiles
CMake build tool:            C:/mingw/bin/mingw32-make.exe
Configuration:               Release

CPU/HW features:
Baseline:                    SSE SSE2
  requested:                 SSE2
Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2
  requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2
  SSE4_1 (2 files):          + SSE3 SSSE3 SSE4_1
  SSE4_2 (1 files):          + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2
  FP16 (1 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
  AVX (5 files):             + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX
  AVX2 (7 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2

C/C++:
Built as dynamic libs?:      NO
C++ Compiler:                C:/mingw/bin/g++.exe  (ver 5.3.0)
C++ flags (Release):         -fPIC   -fsigned-char -mstackrealign -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -ffunction-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG  -DNDEBUG
C++ flags (Debug):           -fPIC   -fsigned-char -mstackrealign -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -ffunction-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
C Compiler:                  C:/mingw/bin/gcc.exe
C flags (Release):           -fPIC   -fsigned-char -mstackrealign -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -ffunction-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -O2 -DNDEBUG  -DNDEBUG
C flags (Debug):             -fPIC   -fsigned-char -mstackrealign -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -ffunction-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
Linker flags (Release):      
Linker flags (Debug):        
ccache:                      NO
Precompiled headers:         YES
Extra dependencies:          comctl32 gdi32 ole32 setupapi ws2_32 vfw32 winmm
3rdparty dependencies:       libprotobuf zlib libjpeg libwebp libpng libtiff libjasper IlmImf

OpenCV modules:
To be built:                 core flann imgproc ml objdetect phase_unwrapping photo plot reg surface_matching video xphoto bgsegm dnn face fuzzy img_hash imgcodecs shape videoio xobjdetect highgui superres ts bioinspired dpm features2d line_descriptor saliency text calib3d ccalib datasets rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco java optflow stitching
Disabled:                    world contrib_world
Disabled by dependency:      -
Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python2 python3 viz cnn_3dobj cvv dnn_modern freetype hdf matlab sfm

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 encoder: 0x020e)
PNG:                         build (ver 1.6.24)
TIFF:                        build (ver 42 - 4.0.2)
JPEG 2000:                   build (ver 1.900.1)
OpenEXR:                     build (ver 1.7.1)
GDAL:                        NO
GDCM:                        NO

Video I/O:
Video for Windows:           YES
DC1394 1.x:                  NO
DC1394 2.x:                  NO
FFMPEG:                      YES (prebuilt binaries)
  avcodec:                   YES (ver 57.89.100)
  avformat:                  YES (ver 57.71.100)
  avutil:                    YES (ver 55.58.100)
  swscale:                   YES (ver 4.6.100)
  avresample:                YES (ver 3.5.0)
GStreamer:                   NO
OpenNI:                      NO
OpenNI PrimeSensor Modules:  NO
OpenNI2:                     NO
PvAPI:                       NO
GigEVisionSDK:               NO
DirectShow:                  YES
Media Foundation:            NO
XIMEA:                       NO
Intel PerC:                  NO

Parallel framework:            pthreads

Trace:                         YES ()

Other third-party libraries:
Use Intel IPP:               NO
Use Intel IPP IW:            NO
Use Intel IPP Async:         NO
Use Lapack:                  NO
Use Eigen:                   NO
Use Cuda:                    NO
Use OpenCL:                  YES
Use OpenVX:                  NO
Use custom HAL:              NO

OpenCL:                        <Dynamic loading of OpenCL library>
Include path:                C:/OpenCV-3.3.0-Java/opencv-3.3.0/3rdparty/include/opencl/1.2
Use AMDFFT:                  NO
Use AMDBLAS:                 NO

Python 2:
Interpreter:                 NO

Python 3:
Interpreter:                 C:/Users/Tyler/AppData/Local/Programs/Python/Python36/python.exe (ver 3.6.1)

Python (for build):            C:/Users/Tyler/AppData/Local/Programs/Python/Python36/python.exe

Java:
ant:                         C:/ant/bin/ant.bat (ver 1.10.1)
JNI:                         C:/Program Files (x86)/Java/jdk1.8.0_65/include C:/Program Files (x86)/Java/jdk1.8.0_65/include/win32 C:/Program Files (x86)/Java/jdk1.8.0_65/include
Java wrappers:               YES
Java tests:                  YES

Matlab:                        Matlab not found or implicitly disabled

Documentation:
Doxygen:                     NO

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

Install path:                  C:/OpenCV-3.3.0-Java/build/install

cvconfig.h is in:              C:/OpenCV-3.3.0-Java/build
-----------------------------------------------------------------

Configuring done
Generating done

MINGW ERROR------------------------------------------------------------------------------------------------------------

[ 28%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
/*M///////////////////////////////////////////////////////////////////////////////////////
^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getMediaSubtypeAsString(GUID, char*)':
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2145:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 if( type == MEDIASUBTYPE_RGB24)     sprintf(tmpStr, "RGB24");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2145:57: warning: left operand of comma operator has no effect [-Wunused-value]
 if( type == MEDIASUBTYPE_RGB24)     sprintf(tmpStr, "RGB24");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2146:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2146:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2146:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2147:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2147:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2147:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2148:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2148:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2148:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2149:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_YUY2)  sprintf(tmpStr, "YUY2");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2149:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_YUY2)  sprintf(tmpStr, "YUY2");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2149:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_YUY2)  sprintf(tmpStr, "YUY2");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2150:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_YVYU)  sprintf(tmpStr, "YVYU");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2150:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_YVYU)  sprintf(tmpStr, "YVYU");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2150:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_YVYU)  sprintf(tmpStr, "YVYU");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2151:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_YUYV)  sprintf(tmpStr, "YUYV");
 ^
 In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2151:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_YUYV)  sprintf(tmpStr, "YUYV");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2151:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_YUYV)  sprintf(tmpStr, "YUYV");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2152:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_IYUV)  sprintf(tmpStr, "IYUV");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2152:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_IYUV)  sprintf(tmpStr, "IYUV");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2152:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_IYUV)  sprintf(tmpStr, "IYUV");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2153:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_UYVY)  sprintf(tmpStr, "UYVY");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2153:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_UYVY)  sprintf(tmpStr, "UYVY");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2153:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_UYVY)  sprintf(tmpStr, "UYVY");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2154:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_YV12)  sprintf(tmpStr, "YV12");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2154:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_YV12)  sprintf(tmpStr, "YV12");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2154:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_YV12)  sprintf(tmpStr, "YV12");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2155:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_YVU9)  sprintf(tmpStr, "YVU9");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2155:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_YVU9)  sprintf(tmpStr, "YVU9");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2155:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_YVU9)  sprintf(tmpStr, "YVU9");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2156:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_Y411)  sprintf(tmpStr, "Y411");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2156:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_Y411)  sprintf(tmpStr, "Y411");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2156:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_Y411)  sprintf(tmpStr, "Y411");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2157:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_Y41P)  sprintf(tmpStr, "Y41P");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2157:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_Y41P)  sprintf(tmpStr, "Y41P");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2157:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_Y41P)  sprintf(tmpStr, "Y41P");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2158:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_Y211)  sprintf(tmpStr, "Y211");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2158:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_Y211)  sprintf(tmpStr, "Y211");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2158:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_Y211)  sprintf(tmpStr, "Y211");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2159:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_AYUV)  sprintf(tmpStr, "AYUV");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2159:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_AYUV)  sprintf(tmpStr, "AYUV");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2159:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_AYUV)  sprintf(tmpStr, "AYUV");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2160:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_MJPG)  sprintf(tmpStr, "MJPG");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2160:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_MJPG)  sprintf(tmpStr, "MJPG");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2160:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_MJPG)  sprintf(tmpStr, "MJPG");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2161:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_Y800)  sprintf(tmpStr, "Y800");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2161:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_Y800)  sprintf(tmpStr, "Y800");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2161:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_Y800)  sprintf(tmpStr, "Y800");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2162:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_Y8)    sprintf(tmpStr, "Y8");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2162:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_Y8)    sprintf(tmpStr, "Y8");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2162:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_Y8)    sprintf(tmpStr, "Y8");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2163:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_GREY)  sprintf(tmpStr, "GREY");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2163:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_GREY)  sprintf(tmpStr, "GREY");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2163:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_GREY)  sprintf(tmpStr, "GREY");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2164:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_I420)  sprintf(tmpStr, "I420");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2164:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_I420)  sprintf(tmpStr, "I420");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2164:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_I420)  sprintf(tmpStr, "I420");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2165:5: error: 'else' without a previous 'if'
 else sprintf(tmpStr, "OTHER");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2165:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else sprintf(tmpStr, "OTHER");
      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2165:26: warning: left operand of comma operator has no effect [-Wunused-value]
 else sprintf(tmpStr, "OTHER");
                      ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getVideoPropertyAsString(int, char*)':
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2191:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 if ( prop==VideoProcAmp_Brightness) sprintf(tmpStr, "Brightness");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2191:57: warning: left operand of comma operator has no effect [-Wunused-value]
 if ( prop==VideoProcAmp_Brightness) sprintf(tmpStr, "Brightness");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2192:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2192:44: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast");
                                        ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2192:60: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast");
                                                        ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2193:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2193:46: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation");
                                          ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2193:62: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation");
                                                          ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2194:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2194:39: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue");
                                   ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2194:55: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue");
                                                   ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2195:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2195:40: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain");
                                    ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2195:56: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain");
                                                    ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2196:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2196:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2196:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2197:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2197:47: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable");
                                           ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2197:63: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable");
                                                           ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2198:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2198:45: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness");
                                         ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2198:61: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness");
                                                         ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2199:5: error: 'else' without a previous 'if'
 else sprintf(tmpStr, "%u",prop);
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2199:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else sprintf(tmpStr, "%u",prop);
      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2199:26: warning: left operand of comma operator has no effect [-Wunused-value]
 else sprintf(tmpStr, "%u",prop);
                      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2199:31: warning: right operand of comma operator has no effect [-Wunused-value]
 else sprintf(tmpStr, "%u",prop);
                           ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getCameraPropertyAsString(int, char*)':
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2295:35: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 if ( prop==CameraControl_Pan) sprintf(tmpStr, "Pan");
                               ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2295:51: warning: left operand of comma operator has no effect [-Wunused-value]
 if ( prop==CameraControl_Pan) sprintf(tmpStr, "Pan");
                                               ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2296:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2296:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2296:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2297:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2297:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll");
                                     ^
 C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2297:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2298:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2298:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2298:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2299:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2299:45: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure");
                                         ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2299:61: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure");
                                                         ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2300:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2300:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2300:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2301:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2301:42: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus");
                                      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2301:58: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus");
                                                      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2302:5: error: 'else' without a previous 'if'
 else sprintf(tmpStr, "%u",prop);
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2302:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else sprintf(tmpStr, "%u",prop);
      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2302:26: warning: left operand of comma operator has no effect [-Wunused-value]
 else sprintf(tmpStr, "%u",prop);
                      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2302:31: warning: right operand of comma operator has no effect [-Wunused-value]
 else sprintf(tmpStr, "%u",prop);
                           ^
modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:187: recipe for target 
'modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj' failed
mingw32-make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj] Error 1
CMakeFiles\Makefile2:8033: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/all' failed
mingw32-make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
Makefile:161: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Build Java wrappers OpenCV 3.3.0 with contrib

Can someone point me to a guide to build Java wrappers OpenCV 3.3.0 (or 3.2.0) with contrib modules? I am using Windows 10. I have run into several problems trying to follow online guides :( If someone knows of a good guide to accomplish the build, I would be very grateful if you shared it with meeee

EDIT: I will attach below the CMake output and mingw error I receive when using this guide. I am using Windows 10 and generating MinGW Makefiles. I recieve an error when I use "mingw32-make install" at 28% when videoio's cap_dshow.cpp is ended up being built. Please look below the CMake output able to see the error I receive.build 3.2.0 but now have run into another problem.

Thanks for any suggestions After the build, I received a opencv_java320.jar and assistance.

CMAKE OUTPUT------------------------------------------------------------------------------------------------------------

CMake Deprecation Warning at CMakeLists.txt:81 (cmake_policy):
The OLD behavior for policy CMP0020 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains libopencv_java320.dll. I am trying to use Eclipse. I made a new User Library pointing to the  opencv_java320.jar. I am unsure where the Native Library Location should point to. It seems that the OLD behaviors of all
policies are deprecated and that a policy it should be set pointing to OLD only under
specific short-term circumstances.  Projects should be ported a opencv_java320.dll file, but I got no such file from my build. I have no jars or dlls other than opencv_java320.jar and a libopencv_java320.dll. Is there some way to the NEW
behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:85 (cmake_policy):
The OLD behavior for policy CMP0022 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:94 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


Detected version of GNU GCC: 53 (503)
Found PythonInterp: C:/Users/Tyler/AppData/Local/Programs/Python/Python36/python.exe (found suitable 
version "3.6.1", minimum required is "2.7") 
CUDA compilation is disabled (due to only Visual Studio compiler supported on your platform).
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
A library with BLAS API not found. Please specify library location.
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
Found apache ant 1.10.1: C:/ant/bin/ant.bat
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 resolve this issue or was my build directory, or to VTK install subdirectory with 
VTKConfig.cmake file
Caffe:   NO
Protobuf:   NO
Glog:   NO
CMake Deprecation Warning at C:/OpenCV-3.3.0-Java/opencv_contrib-
3.3.0/modules/dnn_modern/CMakeLists.txt:9 (cmake_policy):
The OLD behavior for policy CMP0028 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances.  Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.


tiny-dnn: Download: v1.0.0a3.tar.gz
Looking for tiny_dnn.h
Looking for tiny_dnn.h - found
Found tiny-dnn in: C:/OpenCV-3.3.0-Java/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3
Performing Test COMPILER_SUPPORTS_CXX11
Performing Test COMPILER_SUPPORTS_CXX11 - Success
The protocol buffer compiler is not found (PROTOBUF_PROTOC_EXECUTABLE='Protobuf_PROTOC_EXECUTABLE-
NOTFOUND')
freetype2:   NO
harfbuzz:    NO
No preference for use of exported gflags CMake configuration set, and no hints for include/library directories 
provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for 
installed gflags components.
Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing 
gflags/gflags.h
Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing 
glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
Excluding from source files list: C:/OpenCV-3.3.0-Java/build/modules/imgproc/accum.neon.cpp
Torch importer has been enabled. To run the tests you have to install Torch ('th' executable should be available) 
and generate testdata using opencv_extra/testdata/dnn/generate_torch_models.py script.
Tesseract:   NO
xfeatures2d/boostdesc: Download: boostdesc_bgm.i
xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i
xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i
xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i
xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i
xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i
xfeatures2d/boostdesc: Download: boostdesc_lbgm.i
xfeatures2d/vgg: Download: vgg_generated_48.i
xfeatures2d/vgg: Download: vgg_generated_64.i
xfeatures2d/vgg: Download: vgg_generated_80.i
xfeatures2d/vgg: Download: vgg_generated_120.i

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

Extra modules:
Location (extra):            C:/OpenCV-3.3.0-Java/opencv_contrib-3.3.0/modules
Version control (extra):     unknown

Platform:
Timestamp:                   2017-08-09T16:55:40Z
Host:                        Windows 10.0.15063 AMD64
CMake:                       3.9.0-rc4
CMake generator:             MinGW Makefiles
CMake build tool:            C:/mingw/bin/mingw32-make.exe
Configuration:               Release

CPU/HW features:
Baseline:                    SSE SSE2
  requested:                 SSE2
Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2
  requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2
  SSE4_1 (2 files):          + SSE3 SSSE3 SSE4_1
  SSE4_2 (1 files):          + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2
  FP16 (1 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
  AVX (5 files):             + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX
  AVX2 (7 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2

C/C++:
Built as dynamic libs?:      NO
C++ Compiler:                C:/mingw/bin/g++.exe  (ver 5.3.0)
C++ flags (Release):         -fPIC   -fsigned-char -mstackrealign -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -ffunction-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG  -DNDEBUG
C++ flags (Debug):           -fPIC   -fsigned-char -mstackrealign -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -ffunction-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
C Compiler:                  C:/mingw/bin/gcc.exe
C flags (Release):           -fPIC   -fsigned-char -mstackrealign -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -ffunction-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -O2 -DNDEBUG  -DNDEBUG
C flags (Debug):             -fPIC   -fsigned-char -mstackrealign -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 -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -ffunction-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
Linker flags (Release):      
Linker flags (Debug):        
ccache:                      NO
Precompiled headers:         YES
Extra dependencies:          comctl32 gdi32 ole32 setupapi ws2_32 vfw32 winmm
3rdparty dependencies:       libprotobuf zlib libjpeg libwebp libpng libtiff libjasper IlmImf

OpenCV modules:
To be built:                 core flann imgproc ml objdetect phase_unwrapping photo plot reg surface_matching video xphoto bgsegm dnn face fuzzy img_hash imgcodecs shape videoio xobjdetect highgui superres ts bioinspired dpm features2d line_descriptor saliency text calib3d ccalib datasets rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco java optflow stitching
Disabled:                    world contrib_world
Disabled by dependency:      -
Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python2 python3 viz cnn_3dobj cvv dnn_modern freetype hdf matlab sfm

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 encoder: 0x020e)
PNG:                         build (ver 1.6.24)
TIFF:                        build (ver 42 - 4.0.2)
JPEG 2000:                   build (ver 1.900.1)
OpenEXR:                     build (ver 1.7.1)
GDAL:                        NO
GDCM:                        NO

Video I/O:
Video for Windows:           YES
DC1394 1.x:                  NO
DC1394 2.x:                  NO
FFMPEG:                      YES (prebuilt binaries)
  avcodec:                   YES (ver 57.89.100)
  avformat:                  YES (ver 57.71.100)
  avutil:                    YES (ver 55.58.100)
  swscale:                   YES (ver 4.6.100)
  avresample:                YES (ver 3.5.0)
GStreamer:                   NO
OpenNI:                      NO
OpenNI PrimeSensor Modules:  NO
OpenNI2:                     NO
PvAPI:                       NO
GigEVisionSDK:               NO
DirectShow:                  YES
Media Foundation:            NO
XIMEA:                       NO
Intel PerC:                  NO

Parallel framework:            pthreads

Trace:                         YES ()

Other third-party libraries:
Use Intel IPP:               NO
Use Intel IPP IW:            NO
Use Intel IPP Async:         NO
Use Lapack:                  NO
Use Eigen:                   NO
Use Cuda:                    NO
Use OpenCL:                  YES
Use OpenVX:                  NO
Use custom HAL:              NO

OpenCL:                        <Dynamic loading of OpenCL library>
Include path:                C:/OpenCV-3.3.0-Java/opencv-3.3.0/3rdparty/include/opencl/1.2
Use AMDFFT:                  NO
Use AMDBLAS:                 NO

Python 2:
Interpreter:                 NO

Python 3:
Interpreter:                 C:/Users/Tyler/AppData/Local/Programs/Python/Python36/python.exe (ver 3.6.1)

Python (for build):            C:/Users/Tyler/AppData/Local/Programs/Python/Python36/python.exe

Java:
ant:                         C:/ant/bin/ant.bat (ver 1.10.1)
JNI:                         C:/Program Files (x86)/Java/jdk1.8.0_65/include C:/Program Files (x86)/Java/jdk1.8.0_65/include/win32 C:/Program Files (x86)/Java/jdk1.8.0_65/include
Java wrappers:               YES
Java tests:                  YES

Matlab:                        Matlab not found or implicitly disabled

Documentation:
Doxygen:                     NO

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

Install path:                  C:/OpenCV-3.3.0-Java/build/install

cvconfig.h is in:              C:/OpenCV-3.3.0-Java/build
-----------------------------------------------------------------

Configuring done
Generating done

MINGW ERROR------------------------------------------------------------------------------------------------------------

[ 28%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
/*M///////////////////////////////////////////////////////////////////////////////////////
^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getMediaSubtypeAsString(GUID, char*)':
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2145:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 if( type == MEDIASUBTYPE_RGB24)     sprintf(tmpStr, "RGB24");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2145:57: warning: left operand of comma operator has no effect [-Wunused-value]
 if( type == MEDIASUBTYPE_RGB24)     sprintf(tmpStr, "RGB24");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2146:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2146:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2146:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2147:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2147:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2147:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_RGB555)sprintf(tmpStr, "RGB555");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2148:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2148:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2148:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_RGB565)sprintf(tmpStr, "RGB565");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2149:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_YUY2)  sprintf(tmpStr, "YUY2");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2149:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_YUY2)  sprintf(tmpStr, "YUY2");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2149:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_YUY2)  sprintf(tmpStr, "YUY2");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2150:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_YVYU)  sprintf(tmpStr, "YVYU");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2150:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_YVYU)  sprintf(tmpStr, "YVYU");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2150:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_YVYU)  sprintf(tmpStr, "YVYU");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2151:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_YUYV)  sprintf(tmpStr, "YUYV");
 ^
 In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2151:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_YUYV)  sprintf(tmpStr, "YUYV");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2151:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_YUYV)  sprintf(tmpStr, "YUYV");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2152:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_IYUV)  sprintf(tmpStr, "IYUV");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2152:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_IYUV)  sprintf(tmpStr, "IYUV");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2152:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_IYUV)  sprintf(tmpStr, "IYUV");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2153:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_UYVY)  sprintf(tmpStr, "UYVY");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2153:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_UYVY)  sprintf(tmpStr, "UYVY");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2153:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_UYVY)  sprintf(tmpStr, "UYVY");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2154:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_YV12)  sprintf(tmpStr, "YV12");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2154:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_YV12)  sprintf(tmpStr, "YV12");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2154:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_YV12)  sprintf(tmpStr, "YV12");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2155:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_YVU9)  sprintf(tmpStr, "YVU9");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2155:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_YVU9)  sprintf(tmpStr, "YVU9");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2155:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_YVU9)  sprintf(tmpStr, "YVU9");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2156:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_Y411)  sprintf(tmpStr, "Y411");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2156:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_Y411)  sprintf(tmpStr, "Y411");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2156:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_Y411)  sprintf(tmpStr, "Y411");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2157:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_Y41P)  sprintf(tmpStr, "Y41P");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2157:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_Y41P)  sprintf(tmpStr, "Y41P");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2157:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_Y41P)  sprintf(tmpStr, "Y41P");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2158:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_Y211)  sprintf(tmpStr, "Y211");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2158:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_Y211)  sprintf(tmpStr, "Y211");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2158:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_Y211)  sprintf(tmpStr, "Y211");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2159:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_AYUV)  sprintf(tmpStr, "AYUV");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2159:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_AYUV)  sprintf(tmpStr, "AYUV");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2159:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_AYUV)  sprintf(tmpStr, "AYUV");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2160:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_MJPG)  sprintf(tmpStr, "MJPG");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2160:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_MJPG)  sprintf(tmpStr, "MJPG");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2160:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_MJPG)  sprintf(tmpStr, "MJPG");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2161:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_Y800)  sprintf(tmpStr, "Y800");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2161:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_Y800)  sprintf(tmpStr, "Y800");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2161:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_Y800)  sprintf(tmpStr, "Y800");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2162:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_Y8)    sprintf(tmpStr, "Y8");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2162:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_Y8)    sprintf(tmpStr, "Y8");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2162:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_Y8)    sprintf(tmpStr, "Y8");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2163:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_GREY)  sprintf(tmpStr, "GREY");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2163:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_GREY)  sprintf(tmpStr, "GREY");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2163:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_GREY)  sprintf(tmpStr, "GREY");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2164:5: error: 'else' without a previous 'if'
 else if(type == MEDIASUBTYPE_I420)  sprintf(tmpStr, "I420");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2164:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if(type == MEDIASUBTYPE_I420)  sprintf(tmpStr, "I420");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2164:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if(type == MEDIASUBTYPE_I420)  sprintf(tmpStr, "I420");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2165:5: error: 'else' without a previous 'if'
 else sprintf(tmpStr, "OTHER");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2165:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else sprintf(tmpStr, "OTHER");
      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2165:26: warning: left operand of comma operator has no effect [-Wunused-value]
 else sprintf(tmpStr, "OTHER");
                      ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getVideoPropertyAsString(int, char*)':
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2191:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 if ( prop==VideoProcAmp_Brightness) sprintf(tmpStr, "Brightness");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2191:57: warning: left operand of comma operator has no effect [-Wunused-value]
 if ( prop==VideoProcAmp_Brightness) sprintf(tmpStr, "Brightness");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2192:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2192:44: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast");
                                        ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2192:60: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Contrast) sprintf(tmpStr, "Contrast");
                                                        ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2193:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2193:46: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation");
                                          ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2193:62: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Saturation) sprintf(tmpStr, "Saturation");
                                                          ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2194:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2194:39: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue");
                                   ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2194:55: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Hue) sprintf(tmpStr, "Hue");
                                                   ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2195:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2195:40: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain");
                                    ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2195:56: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Gain) sprintf(tmpStr, "Gain");
                                                    ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2196:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2196:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2196:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Gamma) sprintf(tmpStr, "Gamma");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2197:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2197:47: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable");
                                           ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2197:63: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_ColorEnable) sprintf(tmpStr, "ColorEnable");
                                                           ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2198:5: error: 'else' without a previous 'if'
 else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2198:45: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness");
                                         ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2198:61: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==VideoProcAmp_Sharpness) sprintf(tmpStr, "Sharpness");
                                                         ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2199:5: error: 'else' without a previous 'if'
 else sprintf(tmpStr, "%u",prop);
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2199:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else sprintf(tmpStr, "%u",prop);
      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2199:26: warning: left operand of comma operator has no effect [-Wunused-value]
 else sprintf(tmpStr, "%u",prop);
                      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2199:31: warning: right operand of comma operator has no effect [-Wunused-value]
 else sprintf(tmpStr, "%u",prop);
                           ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp: In member function 'void videoInput::getCameraPropertyAsString(int, char*)':
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2295:35: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 if ( prop==CameraControl_Pan) sprintf(tmpStr, "Pan");
                               ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2295:51: warning: left operand of comma operator has no effect [-Wunused-value]
 if ( prop==CameraControl_Pan) sprintf(tmpStr, "Pan");
                                               ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2296:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2296:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2296:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Tilt) sprintf(tmpStr, "Tilt");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2297:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2297:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll");
                                     ^
 C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2297:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Roll) sprintf(tmpStr, "Roll");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2298:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2298:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2298:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Zoom) sprintf(tmpStr, "Zoom");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2299:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2299:45: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure");
                                         ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2299:61: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Exposure) sprintf(tmpStr, "Exposure");
                                                         ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2300:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2300:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris");
                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2300:57: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Iris) sprintf(tmpStr, "Iris");
                                                     ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2301:5: error: 'else' without a previous 'if'
 else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus");
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2301:42: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus");
                                      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2301:58: warning: left operand of comma operator has no effect [-Wunused-value]
 else if ( prop==CameraControl_Focus) sprintf(tmpStr, "Focus");
                                                      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2302:5: error: 'else' without a previous 'if'
 else sprintf(tmpStr, "%u",prop);
 ^
In file included from C:/mingw/i686-w64-mingw32/include/DShow.h:33:0,
             from C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:111:
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2302:10: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope
 else sprintf(tmpStr, "%u",prop);
      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2302:26: warning: left operand of comma operator has no effect [-Wunused-value]
 else sprintf(tmpStr, "%u",prop);
                      ^
C:\OpenCV-3.3.0-Java\opencv-3.3.0\modules\videoio\src\cap_dshow.cpp:2302:31: warning: right operand of comma operator has no effect [-Wunused-value]
 else sprintf(tmpStr, "%u",prop);
                           ^
modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:187: recipe for target 
'modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj' failed
mingw32-make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj] Error 1
CMakeFiles\Makefile2:8033: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/all' failed
mingw32-make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
Makefile:161: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
unsuccessful?

Build Java wrappers OpenCV 3.3.0 with contrib

Can someone point me to a guide to build Java wrappers OpenCV 3.3.0 (or 3.2.0) with contrib modules? I am using Windows 10. I have run into several problems trying to follow online guides :( If someone knows of a good guide to accomplish the build, I would be very grateful if you shared it with meeee

EDIT: I ended up being able to build 3.2.0 but now have run into another problem.

After the build, I received a opencv_java320.jar and a libopencv_java320.dll. libopencv_java320.dll (and a opencv_ffmpeg320.dll). I am trying to use Eclipse. I made a new User Library pointing to the opencv_java320.jar. I am unsure where the Native Library Location should point to. It seems that it should be pointing to a opencv_java320.dll file, but I got no such file from my build. I have no jars or dlls other than opencv_java320.jar and a libopencv_java320.dll. libopencv_java320.dll (and a opencv_ffmpeg320.dll). Is there some way to resolve this issue or was my build unsuccessful?

Build Java wrappers OpenCV 3.3.0 with contrib

Can someone point me to a guide to build Java wrappers OpenCV 3.3.0 (or 3.2.0) with contrib modules? I am using Windows 10. I have run into several problems trying to follow online guides :( If someone knows of a good guide to accomplish the build, I would be very grateful if you shared it with meeee

EDIT: I ended up being able to build 3.2.0 but now have run into another problem.

After the build, I received a opencv_java320.jar and a libopencv_java320.dll (and a opencv_ffmpeg320.dll). I am trying to use Eclipse. I made a new User Library pointing to the opencv_java320.jar. I am unsure where the Native Library Location should point to. It seems that it should be pointing to a opencv_java320.dll file, but I got no such file from my build. I have no jars or dlls other than opencv_java320.jar and a libopencv_java320.dll (and a opencv_ffmpeg320.dll). Is there some way to resolve this issue or was my build unsuccessful?

Java Code I am trying to run:

public static void main(String[] args){
    System.out.println(System.getProperty("java.library.path"));
    System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

    Mat test = new Mat();

    Mat image = Imgcodecs.imread("C:\\opencvPictures\\XUKAI\\XUKAI.png", Imgcodecs.IMREAD_GRAYSCALE);

    BIF bif = Face.createBIF(8,12);
    Mat output = new Mat();
    bif.compute(image, output);

}

Build Java wrappers OpenCV 3.3.0 with contrib

Can someone point me to a guide to build Java wrappers OpenCV 3.3.0 (or 3.2.0) with contrib modules? I am using Windows 10. I have run into several problems trying to follow online guides :( If someone knows of a good guide to accomplish the build, I would be very grateful if you shared it with meeee

EDIT: I ended up being able to build 3.2.0 but now have run into another problem.

After the build, I received a opencv_java320.jar and a libopencv_java320.dll (and a opencv_ffmpeg320.dll). I am trying to use Eclipse. I made a new User Library pointing to the opencv_java320.jar. I am unsure where the Native Library Location should point to. It seems that it should be pointing to a opencv_java320.dll file, but I got no such file from my build. I have no jars or dlls other than opencv_java320.jar and a libopencv_java320.dll (and a opencv_ffmpeg320.dll). Is there some way to resolve this issue or was my build unsuccessful?

Java Code I am EDIT-------------------------------- Hello everyone! I had to take some time off OpenCV, but, after returning, I as able to successfully build OpenCV 3.3.1 with contrib for Java!! Big thanks to sturkmen!!! As sturkmen suggested, Visual Studio was able to resolve my issues.

If you are trying to run:

public static void main(String[] args){
    System.out.println(System.getProperty("java.library.path"));
    System.loadLibrary(Core.NATIVE_LIBRARY_NAME);

    Mat test = new Mat();

    Mat image = Imgcodecs.imread("C:\\opencvPictures\\XUKAI\\XUKAI.png", Imgcodecs.IMREAD_GRAYSCALE);

    BIF bif = Face.createBIF(8,12);
    Mat output = new Mat();
    bif.compute(image, output);

}
build OpenCV with contrib for Java I suggest:

First following this guide but disregard the MinGW section/steps: https://zami0xzami.wordpress.com/2016/03/16/building-java-wrapper-for-opencv/

Then use visual studio and follow the steps outlined here: http://pythonopencv.com/step-by-step-install-opencv-3-3-with-visual-studio-2015-on-windows-10-x64-2017-diy/

Good luck Java friends!

Build Java wrappers OpenCV 3.3.0 with contrib

Can someone point me to a guide to build Java wrappers OpenCV 3.3.0 (or 3.2.0) with contrib modules? I am using Windows 10. I have run into several problems trying to follow online guides :( If someone knows of a good guide to accomplish the build, I would be very grateful if you shared it with meeee

EDIT: I ended up being able to build 3.2.0 but now have run into another problem.

After the build, I received a opencv_java320.jar and a libopencv_java320.dll (and a opencv_ffmpeg320.dll). I am trying to use Eclipse. I made a new User Library pointing to the opencv_java320.jar. I am unsure where the Native Library Location should point to. It seems that it should be pointing to a opencv_java320.dll file, but I got no such file from my build. I have no jars or dlls other than opencv_java320.jar and a libopencv_java320.dll (and a opencv_ffmpeg320.dll). Is there some way to resolve this issue or was my build unsuccessful?

EDIT-------------------------------- EDIT--------------------------------

Hello everyone! I had to take some time off OpenCV, but, after returning, I as was able to successfully build OpenCV 3.3.1 with contrib for Java!! Big thanks to sturkmen!!! As sturkmen suggested, Visual Studio was able to resolve my issues.

If you are trying to build OpenCV with contrib for Java I suggest:

First following this guide but disregard the MinGW section/steps: https://zami0xzami.wordpress.com/2016/03/16/building-java-wrapper-for-opencv/

Then use visual studio and follow the steps outlined here: http://pythonopencv.com/step-by-step-install-opencv-3-3-with-visual-studio-2015-on-windows-10-x64-2017-diy/

Good luck Java friends!

Build Java wrappers OpenCV 3.3.0 with contrib

Can someone point me to a guide to build Java wrappers OpenCV 3.3.0 (or 3.2.0) with contrib modules? I am using Windows 10. I have run into several problems trying to follow online guides :( If someone knows of a good guide to accomplish the build, I would be very grateful if you shared it with meeee

EDIT: I ended up being able to build 3.2.0 but now have run into another problem.

After the build, I received a opencv_java320.jar and a libopencv_java320.dll (and a opencv_ffmpeg320.dll). I am trying to use Eclipse. I made a new User Library pointing to the opencv_java320.jar. I am unsure where the Native Library Location should point to. It seems that it should be pointing to a opencv_java320.dll file, but I got no such file from my build. I have no jars or dlls other than opencv_java320.jar and a libopencv_java320.dll (and a opencv_ffmpeg320.dll). Is there some way to resolve this issue or was my build unsuccessful?

EDIT--------------------------------

Hello everyone! I had to take some time off OpenCV, but, after returning, I was able to successfully build OpenCV 3.3.1 with contrib for Java!! Big thanks to sturkmen!!! As sturkmen suggested, Visual Studio was able to resolve my issues.

If you are trying to build OpenCV with contrib for Java I suggest:

First following this guide but disregard the MinGW section/steps: https://zami0xzami.wordpress.com/2016/03/16/building-java-wrapper-for-opencv/

Then use visual studio and follow the steps outlined here: http://pythonopencv.com/step-by-step-install-opencv-3-3-with-visual-studio-2015-on-windows-10-x64-2017-diy/

Good luck Java friends!