Error compiling openCV 2.4.9 with CUDA 6.5
I am running ubuntu 14.04 system with CUDA 6.5 installed. I am trying to use the gpu implementation of the function matching of the OpenCV library and the version of the openCV library is 2.4.9. cmake .. ok but when i want to make a 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 help me with this? Thank...
+3
afsaneh R
source
to share
1 answer
put the namespace use std; before enabling gpu.hpp
Example
using namespace std;
#include <opencv2/gpu/gpu.hpp>
it works for me
+5
MooMoo
source
to share