VINS-Fusion-gpu icon indicating copy to clipboard operation
VINS-Fusion-gpu copied to clipboard

error while catkin_make

Open Mehdi20000103 opened this issue 2 years ago • 1 comments

Hello everyone, So i am trying to test a SLAM algo with OAK camera following the steps in the tuto of: https://www.arducam.com/docs/opencv-ai-kit-oak/performing-location-with-visual-slam/#ftoc-heading-9. I have a problem in the step 5.5 when building the last 3 targets kitti_gps_test, kitti_odom_test and vins_node. I have as an error : usr/bin/ld : /home/mehdi/Bureau/stage/depthai/ros_workspace/OAK_Nvidia_Jetson_ROS_SLAM_VINS/VINS_GPU/devel/lib/libvins_lib.so : undefined reference to « cv::cuda::createGoodFeaturesToTrackDetector(int, int, double, double, int, bool, double) » /usr/bin/ld : /home/mehdi/Bureau/stage/depthai/ros_workspace/OAK_Nvidia_Jetson_ROS_SLAM_VINS/VINS_GPU/devel/lib/libvins_lib.so : undefined reference to « cv::cuda::SparsePyrLKOpticalFlow::create(cv::Size_, int, int, bool) » collect2: error: ld returned 1 exit status

I tried all solutions on internet but without any result. I am using OpenCV 3.4.14

Mehdi20000103 avatar Jun 02 '22 14:06 Mehdi20000103

It seem that you haven well deploy your opencv and cudatoolkit.Your should rebuild your opencv source code and enable cuda option.

alexook avatar Feb 14 '23 15:02 alexook