pjrambo / VINS-Fusion-gpu

This repository is a version of VINS-Fusion with gpu acceleration. It can run on the Nvidia TX2 in realtime
GNU General Public License v3.0
501 stars 134 forks source link

error while catkin_make #34

Open Mehdi20000103 opened 2 years ago

Mehdi20000103 commented 2 years ago

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/libvinslib.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

alexook commented 1 year ago

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