Where to get MAT sources and how configure it for CMAKE?

asked 2016-06-03 02:48:14 -0600

VanGog gravatar image

updated 2016-06-03 04:16:53 -0600

I am new to OpenCV. I try to build OpenCV on Windows XP 32bit. I want to use MAT library because I plan to use this code http://answers.opencv.org/question/94... which uses MAT. But I am not sure what MAT it is or if do I need to built it? Or is it part of OpenCV as CV::Mat? CMake did not found the MAT so I think I should install it. But in that case, where to get sources?

This is first time I am building a program using CMAKE and Visual Studio 2010 (I did never use Cmake before or my tries failed). I am newbie.

Ok, here I am:

found IPP (ICV version): 9.0.1 [9.0.1]
at: U:/opencv-master/3rdparty/ippicv/unpack/ippicv_win
Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) (Required is at least version "2.7")
Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) (Required is at least version "2.6")
Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) (Required is at least version "3.4")
Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) (Required is at least version "3.2")
Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
No support for DirectX NV12 format (install Windows 8 SDK)
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

General configuration for OpenCV 3.1.0-dev =====================================
  Version control:               unknown

  Platform:
    Timestamp:                   2016-06-03T07:29:05Z
    Host:                        Windows 5.1.2600 x86
    CMake:                       3.5.2
    CMake generator:             Visual Studio 10 2010
    CMake build tool:            C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe
    MSVC:                        1600

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Program Files/Microsoft Visual Studio 10.0/VC/bin/cl.exe  (ver 16.0.30319.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 /arch:SSE2 /Oi /fp:fast  /wd4251 /wd4324 /wd4275 /wd4589 /MP8  /MD /O2 /Ob2 /D NDEBUG  /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 /arch:SSE2 /Oi /fp:fast  /wd4251 /wd4324 /wd4275 /wd4589 /MP8  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
    C Compiler:                  C:/Program Files/Microsoft Visual Studio 10.0/VC/bin/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 /arch:SSE2 /Oi /fp:fast    /MP8  /MD /O2 /Ob2 /D NDEBUG  /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 /arch:SSE2 /Oi /fp:fast    /MP8  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
    Linker flags (Release):      /machine:X86  /INCREMENTAL:NO  /debug
    Linker flags (Debug):        /machine:X86  /debug /INCREMENTAL 
    Precompiled headers:         YES
    Extra dependencies:          comctl32 gdi32 ole32 setupapi ws2_32 vfw32
    3rdparty dependencies:       zlib libjpeg libwebp libpng libtiff libjasper IlmImf

  OpenCV modules:
    To ...
(more)
edit retag flag offensive close merge delete

Comments

  • your example there is using JAVA bindings (so maybe not the best idea to look at that)
  • cv::Mat is the base image class in opencv (c++), and it's builtin
  • "CMake did not found the MAT " - show us the cmake output / error txt
  • "I try to build OpenCV on Windows XP 32bit." - yes, that means, you have to build the opencv libs from src first. again, show us, where you got stuck, and we can try to help.
  • https://github.com/OpenCVBlueprints/O...
berak gravatar imageberak ( 2016-06-03 03:15:27 -0600 )edit
1

I updated the post. No error till now, I am prepared to press button "Generate".

VanGog gravatar imageVanGog ( 2016-06-03 04:14:58 -0600 )edit

@berak: OK, I generated projects and opened OPENCV project for VS2010. Now I build the debug projects which are in it one by one.

VanGog gravatar imageVanGog ( 2016-06-03 06:06:12 -0600 )edit

good ! i guess, it'll work ;)

berak gravatar imageberak ( 2016-06-03 06:25:38 -0600 )edit

for a new user i suggest

  Tests and samples:
    Tests:                       NO
    Performance tests:           NO
    C/C++ Examples:              YES
sturkmen gravatar imagesturkmen ( 2016-06-03 06:27:11 -0600 )edit