ORB_SLAM2_CUDA icon indicating copy to clipboard operation
ORB_SLAM2_CUDA copied to clipboard

rgbd build error

Open sivaariram opened this issue 7 years ago • 8 comments

[ 73%] Linking CXX executable rgbd_tum ../lib/libORB_SLAM2_CUDA.so: undefined reference to cv::cuda::createGaussianFilter(int, int, cv::Size_, double, double, int, int)' ../lib/libORB_SLAM2_CUDA.so: undefined reference to cv::cuda::copyMakeBorder(cv::_InputArray const&, cv::OutputArray const&, int, int, int, int, int, cv::Scalar, cv::cuda::Stream&)' ../lib/libORB_SLAM2_CUDA.so: undefined reference to cv::cuda::resize(cv::_InputArray const&, cv::OutputArray const&, cv::Size, double, double, int, cv::cuda::Stream&)' ../lib/libORB_SLAM2_CUDA.so: undefined reference to cv::cuda::StreamAccessor::wrapStream(CUstream_st*)' collect2: error: ld returned 1 exit status CMakeFiles/rgbd_tum.dir/build.make:162: recipe for target 'rgbd_tum' failed make[2]: *** [rgbd_tum] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/rgbd_tum.dir/all' failed make[1]: *** [CMakeFiles/rgbd_tum.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

sivaariram avatar Nov 27 '18 11:11 sivaariram

Can you check whether the file lib/libORB_SLAM2_CUDA.so has been created in ORB_SLAM2_CUDA folder? If not, try to build it then compile again:

chmod +x build.sh
./build.sh

thien94 avatar Nov 27 '18 12:11 thien94

libORB_SLAM2_CUDA.so has been created in ORB_SLAM2_CUDA folder

sivaariram avatar Nov 27 '18 12:11 sivaariram

What version of OpenCV are you using? If it's not 3.2.0 then that might be the problem. You can check this out.

thien94 avatar Nov 27 '18 13:11 thien94

@hoangthien94 This is my Config: Opencv 3.2.0 Cuda 9.0

sivaariram avatar Nov 27 '18 14:11 sivaariram

I meet the same question,the above solutions could not work,any other way?

3D-A avatar Jun 28 '19 07:06 3D-A

@WangShuaixian Have you solved your issue? I will try to help you. Send me the details.

SquirminatorHotHead avatar Jul 08 '19 14:07 SquirminatorHotHead

Hello is this issue fixed? I have the same problem with jetson xavier NX

stephennacion06 avatar Oct 03 '20 06:10 stephennacion06

Hello is this issue fixed? I have the same problem with jetson xavier NX

Mine is OpenCV 4.1.0 and CUDA 10.1

stephennacion06 avatar Oct 03 '20 06:10 stephennacion06