feichtenhofer / gpu_flow

GPU based optical flow extraction in OpenCV
427 stars 109 forks source link

/usr/include/opencv2/gpu/gpu.hpp:432:29: error: ‘vector’ does not name a type #21

Open lianzhaoy opened 4 years ago

lianzhaoy commented 4 years ago

I faced a problem while compiling compute_flow.cpp,As follows: “/usr/include/opencv2/gpu/gpu.hpp:432:29: error: ‘vector’ does not name a type CV_EXPORTS void merge(const vector& src, GpuMat& dst, Stream& stream = Stream::Null()); ^ /usr/include/opencv2/gpu/gpu.hpp:432:35: error: expected ‘,’ or ‘...’ before ‘<’ token CV_EXPORTS void merge(const vector& src, GpuMat& dst, Stream& stream = Stream::Null()); ^ /usr/include/opencv2/gpu/gpu.hpp:438:42: error: ‘vector’ has not been declared CV_EXPORTS void split(const GpuMat& src, vector& dst, Stream& stream = Stream::Null()); ^ /usr/include/opencv2/gpu/gpu.hpp:438:48: error: expected ‘,’ or ‘...’ before ‘<’ token CV_EXPORTS void split(const GpuMat& src, vector& dst, Stream& stream = Stream::Null());” The opencv version shown in cmake is 3.2.0.I don't know how to solve the above problem.

tian231825 commented 2 years ago

same problem