Reputation: 1088
I have installed OpenCV-3.0
in my jetson-tk1
board using following cmake command.
cmake -DWITH_CUDA=ON -DCUDA_ARCH_BIN="3.2" -DCUDA_ARCH_PTX="" -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF ..
After make install, I was not able to find libopencv_gpu
.
In opencv lib path libopencv_gpu is not available.
Due to this I am getting undefined reference to cv::gpu::GpuMat::upload()
Can anybody tell what is the problem ?
Upvotes: 1
Views: 815
Reputation: 504
OpenCV3.0 has merged gpu module into cuda namespace. Try using cv::cuda::GpuMat
. Moreover, make sure you add opencv2/core/cuda.hpp
and link cuda libraries in the linker.
For further reference you can check this documentation
Upvotes: 2
Reputation: 6420
In OpenCV 3.0 gpu module was split onto several modules: cudaarithm
, cudafilters
, cudaimgproc
, cudaoptflow
, etc. Also gpu
namespace was renamed to cuda
.
So you need to link with libopencv_core
, which contains GpuMat
definition and with other cuda modules: libopencv_cudaarithm
, etc.
Upvotes: 2