WinRT build crashes
Hi,
I have followed this tutorial step by step, only changed ninja to nmake (I was not able to build the ninja). After the cmake finished, I run nmake in newly created directory and got this error (this is only a few lines):
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.obj
system.cpp
C:\opencv\modules\core\src\system.cpp(107) : error C2784: 'std::_Vb_iterator<_Alloc> std::operator +(_Alloc::difference_type,std::_Vb_iterator<_Alloc>)' :
could not deduce template argument for 'std::_Vb_iterator<_Alloc>' from 'std::basic_string<_Elem,_Traits,_Alloc>'
with
[
_Elem=wchar_t,
_Traits=std::char_traits<wchar_t>,
_Alloc=std::allocator<wchar_t>
]
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\vector(2204) : see declaration of 'std::operator +'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\vector(2204) : see declaration of 'std::operator +'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\vector(2204) : see declaration of 'std::operator +'
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE\vector(2204) : see declaration of 'std::operator +'
error goes on and on ......
C:\opencv\modules\core\src\system.cpp(429) : error C2678: binary '+' : no operator found which takes a left-hand operand of type 'std::wstring'
(or there is noacceptable conversion)
C:\opencv\modules\core\include\opencv2/core/cvstd.hpp(407): could be 'cv::String cv::operator +(const cv::String &,const cv::String &)'
C:\opencv\modules\core\include\opencv2/core/cvstd.hpp(408): or 'cv::String cv::operator +(const cv::String &,const char *)'
C:\opencv\modules\core\include\opencv2/core/cvstd.hpp(409): or 'cv::String cv::operator +(const char *,const cv::String &)'
C:\opencv\modules\core\include\opencv2/core/cvstd.hpp(410): or 'cv::String cv::operator +(const cv::String &,char)'
C:\opencv\modules\core\include\opencv2/core/cvstd.hpp(411): or 'cv::String cv::operator +(char,const cv::String &)'
C:\opencv\modules\core\include\opencv2/core/types.hpp(1611): or 'cv::Range cv::operator +(const cv::Range &,int)'
C:\opencv\modules\core\include\opencv2/core/types.hpp(1617): or 'cv::Range cv::operator +(int,const cv::Range &)'
C:\opencv\modules\core\include\opencv2/core/mat.hpp(1932): or 'cv::MatExpr cv::operator +(const cv::Mat &,const cv::Mat &)'
C:\opencv\modules\core\include\opencv2/core/mat.hpp(1933): or 'cv::MatExpr cv::operator +(const cv::Mat &,const cv::Scalar &)'
C:\opencv\modules\core\include\opencv2/core/mat.hpp(1934): or 'cv::MatExpr cv::operator +(const cv::Scalar &,const cv::Mat &)'
C:\opencv\modules\core\include\opencv2/core/mat.hpp(1935): or 'cv::MatExpr cv::operator +(const cv::MatExpr &,const cv::Mat &)'
C:\opencv\modules\core\include\opencv2/core/mat.hpp(1936): or 'cv::MatExpr cv::operator +(const cv::Mat &,const cv::MatExpr &)'
C:\opencv\modules\core\include\opencv2/core/mat.hpp(1937): or 'cv::MatExpr cv::operator +(const cv::MatExpr &,const cv::Scalar &)'
C:\opencv\modules\core\include\opencv2/core/mat.hpp(1938): or 'cv::MatExpr cv::operator +(const cv::Scalar &,const cv::MatExpr &)'
C:\opencv\modules\core\include\opencv2 ...
I am getting the same error. I even tried building using ninja. Still the same error. Could anyone please give step-by-step procedure to integrate opencv with windows phone 8. Thanks !!