Building OpenCV3.2 with Open_Contrib/modules for nonfree.hpp returns error for Debug of ALL_BUILD

asked 2017-07-28 22:24:30 -0600

ZeroLogic gravatar image

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

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. Warning
    C4244
    'initializing': conversion from 'int' to 'uchar', possible loss of data (compiling source file ...

(more)
edit retag flag offensive close merge delete

Comments

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

LBerger gravatar imageLBerger ( 2017-07-29 02:27:13 -0600 )edit