Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

  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 C:\Users\User\Documents\Library\opencv_master\sources\modules\stitching\src\exposure_compensate.cpp)
    opencv_stitching
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\utility
    217
  18. Error
    LNK1104
    cannot open file '....\lib\Debug\opencv_xfeatures2d330d.lib'
    opencv_test_xfeatures2d
    C:\Users\User\Documents\Library\opencv_master\build\modules\xfeatures2d\LINK
    1
  19. Error
    LNK1104
    cannot open file '....\lib\Debug\opencv_xfeatures2d330d.lib'
    opencv_stitching
    C:\Users\User\Documents\Library\opencv_master\build\modules\stitching\LINK
    1
  20. Error
    LNK1104
    cannot open file '....\lib\Debug\opencv_stitching330d.lib'
    opencv_perf_stitching
    C:\Users\User\Documents\Library\opencv_master\build\modules\stitching\LINK
    1
  21. Error
    LNK1104
    cannot open file '....\lib\Debug\opencv_xfeatures2d330d.lib'
    opencv_perf_xfeatures2d
    C:\Users\User\Documents\Library\opencv_master\build\modules\xfeatures2d\LINK
    1
  22. Error
    LNK1104
    cannot open file '....\lib\Debug\opencv_stitching330d.lib'
    opencv_python3
    C:\Users\User\Documents\Library\opencv_master\build\modules\python3\LINK
    1
  23. Error
    LNK1104
    cannot open file '....\lib\Debug\opencv_stitching330d.lib'
    opencv_test_stitching
    C:\Users\User\Documents\Library\opencv_master\build\modules\stitching\LINK
    1

Is the error caused by MVS itself or I missed certain files from opencv? If the problem has been solved previously, can anyone provide the link to the topic? Thank you.