createOptFlow_DualTVL1.cpp from opencv_matlab does not compile

asked 2015-02-27 18:56:26 -0600

Arrigo gravatar image

After fixing all the problems with the MATLAB extension module already known and documented (like using Python 2.7 instead of 3.x, etc) I still get the error below when I build the opencv_matlab project with Visual Studio 2013 under Win 8. Any ideas about how to fix this is highly appreciated.

Thanks -Arrigo

1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64 ------ 2>------ Build started: Project: opencv_matlab_sources, Configuration: Release x64 ------ 3>------ Build started: Project: opencv_matlab, Configuration: Release x64 ------ 3> Building Custom Rule C:/OpenCV-3.0.0-dev-contrib/modules/matlab/CMakeLists.txt 3> CMake does not need to re-run because C:\OpenCV-3.0.0-dev\build\modules\matlab\CMakeFiles\generate.stamp is up-to-date. 3> Compiling Matlab source files. This could take a while... 3> CMake Error at C:/OpenCV-3.0.0-dev-contrib/modules/matlab/compile.cmake:47 (message): 3> Failed to compile createOptFlow_DualTVL1: createOptFlow_DualTVL1.cpp 3>
3>
3> c:\opencv-3.0.0-dev-contrib\modules\matlab\include\opencv2\matlab\mxarray.hpp(502) 3>CUSTOMBUILD : warning C4099: 'matlab::ArgumentParser::Variant' : type name first seen 3> using 'struct' now seen using 'class' 3>
3> c:\opencv-3.0.0-dev-contrib\modules\matlab\include\opencv2\matlab\mxarray.hpp(488) : see declaration of 'matlab::ArgumentParser::Variant' 3>
3>
3> c:\opencv-3.0.0-dev-contrib\modules\matlab\include\opencv2\matlab\mxarray.hpp(565) 3>CUSTOMBUILD : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of 3> data 3>
3>
3> c:\opencv-3.0.0-dev-contrib\modules\matlab\include\opencv2\matlab\mxarray.hpp(567) 3>CUSTOMBUILD : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of 3> data 3>
3>
3> c:\opencv-3.0.0-dev-contrib\modules\matlab\include\opencv2\matlab\mxarray.hpp(570) 3>CUSTOMBUILD : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of 3> data 3>
3>
3> c:\opencv-3.0.0-dev-contrib\modules\matlab\include\opencv2\matlab\mxarray.hpp(572) 3>CUSTOMBUILD : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of 3> data 3>
3>
3> C:\OpenCV-3.0.0-dev\build\modules\matlab\src\createOptFlow_DualTVL1.cpp(38) 3>CUSTOMBUILD : error C2065: 'Ptr_DualTVL1OpticalFlow' : undeclared identifier 3>
3>
3> C:\OpenCV-3.0.0-dev\build\modules\matlab\src\createOptFlow_DualTVL1.cpp(38) 3>: error C2146 : syntax error : missing ';' before identifier 'retval' 3>
3>
3> C:\OpenCV-3.0.0-dev\build\modules\matlab\src\createOptFlow_DualTVL1.cpp(38) 3>CUSTOMBUILD : error C2065: 'retval' : undeclared identifier 3>
3>
3> C:\OpenCV-3.0.0-dev\build\modules\matlab\src\createOptFlow_DualTVL1.cpp(43) 3>CUSTOMBUILD : error C2065: 'retval' : undeclared identifier 3>
3>
3> C:\OpenCV-3.0.0-dev\build\modules\matlab\src\createOptFlow_DualTVL1.cpp(53) 3>CUSTOMBUILD : error C2065: 'retval' : undeclared identifier 3>
3>
3>
3>
3>
3>
3>
========== Build: 2 succeeded, 1 failed, 24 up-to-date, 0 skipped ==========

edit retag flag offensive close merge delete