Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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...

like image 246
afsaneh R Avatar asked Sep 30 '14 13:09

afsaneh R


1 Answers

put using namespace std; before you include gpu.hpp

example

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

this works for me

like image 174
MooMoo Avatar answered Oct 19 '22 16:10

MooMoo