Cannot find header files when compiling matlab bindings (Bug #4424)
Description
I get this error when trying to compile the latest source from the master branch. I'm using MSVS 2013 pro on windows. I've copied the compiler output below, not sure if anything else is needed. Curiously, absdiff is the first alphabetical file in the matlab module, so I don't know if that means all the rest of the files were also not compiled, or if it's just a coincidence, since the output says this is the only file that failed.
1>------ Build started: Project: opencv_matlab_sources, Configuration: Release x64 ------
2>------ Build started: Project: opencv_matlab, Configuration: Release x64 ------
2> Building Custom Rule C:/opencv/modules/matlab/CMakeLists.txt
2> CMake does not need to re-run because C:\opencv\build\modules\matlab\CMakeFiles\generate.stamp is up-to-date.
2> Compiling Matlab source files. This could take a while...
2> CMake Error at C:/opencv/modules/matlab/compile.cmake:47 (message):
2> Failed to compile absdiff: absdiff.cpp
2>
2> c:\opencv\modules\matlab\include\opencv2\matlab\mxarray.hpp(502) : warning
2> C4099: 'matlab::ArgumentParser::Variant' : type name first seen using
2> 'struct' now seen using 'class'
2>
2> c:\opencv\modules\matlab\include\opencv2\matlab\mxarray.hpp(488) : see declaration of 'matlab::ArgumentParser::Variant'
2>
2> c:\opencv\modules\matlab\include\opencv2\matlab\mxarray.hpp(565) : warning
2> C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
2>
2> c:\opencv\modules\matlab\include\opencv2\matlab\mxarray.hpp(567) : warning
2> C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
2>
2> c:\opencv\modules\matlab\include\opencv2\matlab\mxarray.hpp(570) : warning
2> C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
2>
2> c:\opencv\modules\matlab\include\opencv2\matlab\mxarray.hpp(572) : warning
2> C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
2>
2> C:/opencv/modules/core/include\opencv2/core/cvdef.h(59) : fatal error
2> C1083: Cannot open include file: 'opencv2/hal/defs.h': No such file or
2> directory
2>
2>
2>
2>
2>
2>
2>
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.
3>------ Build started: Project: opencv_test_matlab, Configuration: Release x64 ------
========== Build: 2 succeeded, 1 failed, 99 up-to-date, 0 skipped ==========
History
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/5032