Ask Your Question
0

Opencv 3.2 with Cuda 8.0

asked 2017-07-25 09:17:17 -0600

Emory gravatar image

Hello everyone,

I am trying to implement an application with CUDA 8.0, at the momment I am trying to implement in my machine x84_64 and then using a cross-compile to my Jetson TX1

I already download and install opencv from git and install with CUDA 8.0

When I use cv::cuda::GpuMat is working, but when I try tu use cv::gpu:GpuMat I get the error below:

undefined reference to `cv::gpu::GpuMat::release()'

I looked up at some blogs and others site that is missing lopencv_gpu but when I use pkg-config I cannot find this library in OPencv libs.

By the way, I found this library when use command "whereis opencv_gpu" and get the answer to opencv2.

Could anyone help me, please?

BR,

Emory Freitas

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-07-25 10:25:11 -0600

berak gravatar image

updated 2017-07-25 10:26:46 -0600

there is no such thing as gpu::GpuMat in opencv3, it exists only in opencv2.4

(same problem with -lopencv_gpu - 2.4 only)

edit flag offensive delete link more

Comments

Then how can one compile a opencv3 program with cuda linkers?

tejasa97 gravatar imagetejasa97 ( 2018-08-22 00:10:03 -0600 )edit

sorry, if the answer was misleading, it's only about different naming between 2.4 and 3.x

berak gravatar imageberak ( 2018-08-22 00:12:26 -0600 )edit

thats' okay, but right now i'm finding it hard to link for opencv2/cuda.hpp. it says 'no such file or directory'. i'm using opencv3.4.2. can you help?

tejasa97 gravatar imagetejasa97 ( 2018-08-22 01:43:01 -0600 )edit

yea, that does no more exist. the cuda parts have been split into several cudaXXX submodules.

have a look at current docs

berak gravatar imageberak ( 2018-08-22 02:53:17 -0600 )edit

how does one link them?

tejasa97 gravatar imagetejasa97 ( 2018-08-22 02:56:57 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-07-25 09:17:17 -0600

Seen: 699 times

Last updated: Jul 25 '17