Ask Your Question

undefined reference to `cv::cuda::StreamAccessor::getStream(cv::cuda::Stream const&)'

asked 2018-12-27 08:08:38 -0500

TouchDeeper gravatar image

updated 2018-12-28 06:22:30 -0500

System information (version)

  • OpenCV => 3.3.1 with cuda10
  • Operating System / Platform => Ubuntu16.04
  • Compiler => vim

Detailed description

When i process the last steps below, I encounter the make error below

[ 80%] Built target OpenDTAM
[ 85%] Linking CXX executable a.out undefined reference to `cv::cuda::StreamAccessor::getStream(cv::cuda::Stream const&)'
collect2: error: ld returned 1 exit status
CMakeFiles/a.out.dir/build.make:163: recipe for target 'a.out' failed
make[2]: *** [a.out] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/a.out.dir/all' failed
make[1]: *** [CMakeFiles/a.out.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Can you give me some advice? Thanks a lot!

Steps to reproduce

  1. clone the OpenDTAM
  2. install qtbase5-dev sudo apt-add-repository ppa:ubuntu-sdk-team/ppa sudo apt-get update sudo apt-get install qtbase5-dev
  3. install boost sudo apt-get install libboost-system-dev libboost-thread-dev
  4. List itemBuild OpenDTAM cd OpenDTAM mkdir build cd build cmake ../Cpp make -j4
edit retag flag offensive close merge delete


please be so nice, and replace the screenshot with a TEXT version, so we can quote you, it can be indexed for search, etc, thank you !

berak gravatar imageberak ( 2018-12-27 08:26:26 -0500 )edit

Hi,@berak Thanks for your reply.I have replace the screenshot with the text version.

TouchDeeper gravatar imageTouchDeeper ( 2018-12-28 06:21:49 -0500 )edit

yea, thanks !

however, this is somewhat an unfortunate question, since noone here will be able to reproduce it without installing the whole setup / dependancies.

to rule out, that something with your opencv install is broken, you should build & run the cuda related opencv tests. if those don't reproduce the problem, you know, it's something in the OpenDTAM setup (a broken cmake file or similar), and you probably should raise an issue there, not with the opencv bugtracker.

berak gravatar imageberak ( 2018-12-28 07:12:10 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2018-12-28 08:36:49 -0500

TouchDeeper gravatar image

Hi,@berak Thanks for your advice! I will try some cuda related opencv test first. Thanks!

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-12-27 08:08:38 -0500

Seen: 859 times

Last updated: Dec 28 '18