Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Building/Compiling OpenCV 3.2 with Qt on Visual Studio 2015

I'm trying to use Qt functionality (such as named window with CV_GUI_EXPANDED), developing on Visual Studio 2015 on Windows 10.

I'm using the pre-built Windows libraries downloaded from the Sourceforge (opencv-3.2.0-vc14.exe)

It seems to me that Qt is not included in that file, and that I need to rebuild the OpenCV libraries from source with Qt, but I am unable to find any documentation of how to do that on Visual Studio 2015

Many thanks!

Building/Compiling OpenCV 3.2 with Qt on Visual Studio 2015

I'm trying to use Qt functionality (such as named window with CV_GUI_EXPANDED), developing on Visual Studio 2015 on Windows 10.

I'm using the pre-built Windows libraries downloaded from the Sourceforge (opencv-3.2.0-vc14.exe)

It seems to me that Qt is not included in that file, and that I need to rebuild the OpenCV libraries from source with Qt, but I am unable to find any documentation of how to do that on Visual Studio 2015

Many thanks!

C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe (ver 19.0.24213.1) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP8 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:x64 /debug /INCREMENTAL ccache: NO Precompiled headers: NO Extra dependencies: vfw32 comctl32 gdi32 ole32 setupapi ws2_32 Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Test Qt5::Concurrent 3rdparty dependencies: zlib libjpeg libwebp libpng libtiff libjasper IlmImf

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

Windows RT support: NO

GUI: QT 5.x: YES (ver 5.6.1) QT OpenGL support: NO OpenGL support: NO VTK support: NO

Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.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.64.101) avformat: YES (ver 57.56.100) avutil: YES (ver 55.34.100) swscale: YES (ver 4.2.100) avresample: YES (ver 3.1.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: Concurrency

Other third-party libraries: Use IPP: 9.0.1 [9.0.1] at: C:/D2/opencv/build/3rdparty/ippicv/ippicv_win Use 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:/D2/opencv/sources/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: C:/Python27/python.exe (ver 2.7.11)

Python 3: Interpreter: C:/Program Files/Python36/python.exe (ver 3.6)

Python (for build): C:/Python27/python.exe

Java: ant: NO JNI: C:/Program Files/Java/jdk1.8.0_102/include C:/Program Files/Java/jdk1.8.0_102/include/win32 C:/Program Files/Java/jdk1.8.0_102/include Java wrappers: NO Java tests: NO

Matlab: Matlab not found or implicitly disabled

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

Install path: C:/D2/opencv/build/install

cvconfig.h is in: C:/D2/opencv/build

Configuring done Generating done

Building/Compiling OpenCV 3.2 with Qt on Visual Studio 2015

I'm trying to use Qt functionality (such as named window with CV_GUI_EXPANDED), developing on Visual Studio 2015 on Windows 10.

I'm using the pre-built Windows libraries downloaded from the Sourceforge (opencv-3.2.0-vc14.exe)

It seems to me that Qt is not included in that file, and that I need to rebuild the OpenCV libraries from source with Qt, but I am unable to find any documentation of how to do that on Visual Studio 2015

Many thanks!

 C/C++:
 Built as dynamic libs?: YES
 C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe (ver 19.0.24213.1)
 C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi
 C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP8 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
 C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi
 C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
 Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug
 Linker flags (Debug): /machine:x64 /debug /INCREMENTAL
 ccache: NO
 Precompiled headers: NO
 Extra dependencies: vfw32 comctl32 gdi32 ole32 setupapi ws2_32 Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Test Qt5::Concurrent
 3rdparty dependencies: zlib libjpeg libwebp libpng libtiff libjasper IlmImf

IlmImf

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

Windows RT support: NO

GUI: QT 5.x: YES (ver 5.6.1) QT OpenGL support: NO OpenGL support: NO VTK support: NO

Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.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.64.101) avformat: YES (ver 57.56.100) avutil: YES (ver 55.34.100) swscale: YES (ver 4.2.100) avresample: YES (ver 3.1.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: Concurrency

Other third-party libraries: Use IPP: 9.0.1 [9.0.1] at: C:/D2/opencv/build/3rdparty/ippicv/ippicv_win Use 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:/D2/opencv/sources/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: C:/Python27/python.exe (ver 2.7.11)

Python 3: Interpreter: C:/Program Files/Python36/python.exe (ver 3.6)

Python (for build): C:/Python27/python.exe

Java: ant: NO JNI: C:/Program Files/Java/jdk1.8.0_102/include C:/Program Files/Java/jdk1.8.0_102/include/win32 C:/Program Files/Java/jdk1.8.0_102/include Java wrappers: NO Java tests: NO

Matlab: Matlab not found or implicitly disabled

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

Install path: C:/D2/opencv/build/install

cvconfig.h is in: C:/D2/opencv/build

Configuring done Generating done