rgbd build error
Opened this issue · 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
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
libORB_SLAM2_CUDA.so has been created in ORB_SLAM2_CUDA folder
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.
@hoangthien94
This is my Config:
Opencv 3.2.0
Cuda 9.0
I meet the same question,the above solutions could not work,any other way?
@WangShuaixian
Have you solved your issue? I will try to help you. Send me the details.
Hello is this issue fixed? I have the same problem with jetson xavier NX
Hello is this issue fixed? I have the same problem with jetson xavier NX
Mine is OpenCV 4.1.0 and CUDA 10.1