Building OpenCV3.2 with Open_Contrib/modules for nonfree.hpp returns error for Debug of ALL_BUILD
Hello, I'm totally new on opencv3.2, I'm trying to create a project that uses SIFT and SURF function for acuracy comparison. The problem I've encountered is : After the building process ended for Build x64 of ALL_BUILD (combining existing opencv3.2 resources with xfeature2d modules from Open_Contrib from github) using Microsoft Visual Studio 2017, these are the error listed in the form of:
Severity
Code
Description
Project
File
Line
- Warning
C4244
'=': conversion from 'int' to 'char', possible loss of data
(compiling source file C:\Users\User\Documents\Library\opencv_master\sources\modules\core\src\ocl.cpp)
opencv_core
C:\Program Files(x86)\MicrosoftVisualStudio\2017\Community\VC\Tools\MSVC\14.10.25017\include\algorithm
946 - Warning
C4244
'initializing': conversion from 'int' to 'unsigned char', possible loss of data (compiling source file C:\Users\User\Documents\Library\opencv_master\sources\modules\calib3d\src\fisheye.cpp)
opencv_calib3d
C:\ProgramFiles(x86)\MicrosoftVisualStudio\2017\Community\VC\Tools\MSVC\14.10.25017\include\xmemory0
840 - Error
C2653
'hal': is not a class or namespace name
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
340 - Error
C2661
'cv::exp': no overloaded function takes 3 arguments
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
340 - Error
C2653
'hal': is not a class or namespace name
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
341 - Error
C2660
'cv::fastAtan2': function does not take 5 arguments
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
341 - Error
C2653
'hal': is not a class or namespace name
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
342 - Error
C2660
'cv::magnitude': function does not take 4 arguments
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
342 - Error
C2653
'hal': is not a class or namespace name
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
623 - Error
C2660
'cv::fastAtan2': function does not take 5 arguments
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
623 - Error
C2653
'hal': is not a class or namespace name
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
624 - Error
C2660
'cv::magnitude': function does not take 4 arguments
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
624 - Error
C2653
'hal': is not a class or namespace name
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
625 - Error
C2661
'cv::exp': no overloaded function takes 3 arguments
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\sift.cpp
625 - Warning
C4838
conversion from 'int' to '::size_t' requires a narrowing conversion
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\surf.ocl.cpp
207 - Warning
C4838
conversion from 'int' to '::size_t' requires a narrowing conversion
opencv_xfeatures2d
C:\Users\User\Documents\Library\opencv_contrib-master\modules\xfeatures2d\src\surf.ocl.cpp
263 - Warning
C4244
'initializing': conversion from 'int' to 'uchar', possible loss of data (compiling source file ...
First frim gihub opencv_contrib :
Contrib modules are under constant development and it is recommended to use them alongside the master branch or latest releases of OpenCV.
Have you clone opencv?
don't forget to delete cmakecache.txt