Qt-problems encountered in learning

     1. [modules\core\CMakeFiles\opencv_core.dir\build.make:1494: modules/core/CMakeFiles/opencv_core.dir/vs appears during CMake compilation

      Solution: Uncheck OPENCV/OPENCV_ENABLE_ALLOCATOR_STATS in CMake

     2.modules\python3\CMakeFiles\opencv_python3.dir\build.make:82: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.obj]

         Solution:

3. error: 'vector' is not a member of cv

The program compiled correctly under opencv2.4.11 appears error: 'vector' is not a member of cv under opencv3.2 

Reason: Before opencv 3.0, std::vector was used directly in core.hpp,

    So cv::vector is essentially std::vector

    However, it seems to be removed after version 3.0, so the compilation error

Solution: Add vector to the cv namespace in the code:    

namespace cv
{
      using std::vector;   
}

Welcome to join the technical discussion group, no ads, pure technology, welcome all big guys, newbies are also welcome, discrimination against novices is prohibited in the group, big guys answer questions voluntarily.

 

Guess you like

Origin blog.csdn.net/dongyunlong123/article/details/108602899