简体   繁体   中英

openCV 2.4.9 compilation error with CUDA 6.5

I am running an ubuntu 14.04 system with CUDA 6.5 installed. I am trying to use the gpu implementation of feature matching of OpenCV library and my openCV library version is 2.4.9. cmake .. is ok but when I want to make project it gives me errors like:

> /usr/local/include/opencv2/gpu/gpu.hpp:432:29: error: ‘vector’ does
> not name a type  CV_EXPORTS void merge(const vector<GpuMat>& src,
> GpuMat& dst, Stream& stream = Stream::Null());
>                              ^ /usr/local/include/opencv2/gpu/gpu.hpp:432:35: error: expected ‘,’ or
> ‘...’ before ‘<’ token  CV_EXPORTS void merge(const vector<GpuMat>&
> src, GpuMat& dst, Stream& stream = Stream::Null());

Could you please help me with this? Thanks...

put using namespace std; before you include gpu.hpp

example

using namespace std;
#include <opencv2/gpu/gpu.hpp>

this works for me

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM