How to solve that cannot find include file when compiling opencv3.0 with extra models with CMAKE 3.4.1 and VS2015

前端 未结 1 1059
温柔的废话
温柔的废话 2021-01-17 04:23

When Building the OPENCV 3.0 with CMAKE 3.4.1 and VS2015. VS2015 presents the following mistakes:

error   C2264   “std::tuple

        
1条回答
  •  既然无缘
    2021-01-17 05:14

    Try your build with the OpenCV 3.1 source.

    Since you are building Xfeatures2d it appears that you have added the opencv_contrib module to your source tree. I did the same thing in the past week and the version of opencv_contrib that I downloaded would only build with OpenCV 3.1 which is now available. With OpenCV 3.0 I had exactly the same first error message you are seeing (Cannot open scr file "opencv2/core/hal/intrin.hpp"). It appears that hal has been moved to core in OpenCV 3.1.

    Give that a try. All modules are now building successfully for me under Windows 7 using Visual Studio 2012. Note: 'opencv_extra_modules_path' must be set in CMake and I assume you also want 'with_cuda' set (and you have probably already checked that). I am using CMake 2.8.12.2.

    0 讨论(0)
提交回复
热议问题