Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failed #35

Open
aiyanxiao opened this issue Jun 25, 2021 · 1 comment
Open

Compilation failed #35

aiyanxiao opened this issue Jun 25, 2021 · 1 comment

Comments

@aiyanxiao
Copy link

[ 12%] Linking CXX executable ../RGBD_RealTime
[ 25%] Linking CXX executable ../KITTI
../../../../build/libORB_SLAM2_PointMap_SegNetM.so:对‘image_transport::ImageTransport::ImageTransport(ros::NodeHandle const&)’未定义的引用
../../../../build/libORB_SLAM2_PointMap_SegNetM.so:对‘image_transport::ImageTransport::~ImageTransport()’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/RGBD_RealTime.dir/build.make:490: recipe for target '../RGBD_RealTime' failed
make[2]: *** [../RGBD_RealTime] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/RGBD_RealTime.dir/all' failed
make[1]: *** [CMakeFiles/RGBD_RealTime.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
../../../../build/libORB_SLAM2_PointMap_SegNetM.so:对‘image_transport::ImageTransport::ImageTransport(ros::NodeHandle const&)’未定义的引用
../../../../build/libORB_SLAM2_PointMap_SegNetM.so:对‘image_transport::ImageTransport::~ImageTransport()’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/KITTI.dir/build.make:490: recipe for target '../KITTI' failed
make[2]: *** [../KITTI] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/KITTI.dir/all' failed
make[1]: *** [CMakeFiles/KITTI.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Who could help me with it, please? Thanks very much!

@aiyanxiao
Copy link
Author

find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
message_generation
tf
image_transport
) image_transport添加到DS-SLAM文件夹下的CMakeList.txt文件中,即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant