ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ira_laser_tools compilation causes "undefined reference" errors

asked 2020-12-01 04:59:31 -0600

Artem_Melnyk gravatar image

Hello, I am on the Raspberry Pi 4 with Raspbian Buster and ROS melodic. My goal is to compile my current project with the ira_laser_tools library. After cloning the library I am compiling with catkin_make, and the error is:

[100%] Linking CXX executable /home/pi/wheelchairv2/devel/lib/ira_laser_tools/laserscan_multi_merger
/usr/bin/ld: /opt/ros/melodic/lib/libtf.so: undefined reference to `tf2_ros::TransformListener::TransformListener(tf2::BufferCore&, ros::NodeHandle const&, bool)'

collect2: error: ld returned 1 exit status 

make[2]: *** [wheelchairv2_ros/dependencies/ira_laser_tools/CMakeFiles/laserscan_virtualizer.dir/build.make:709: 
/home/pi/wheelchairv2/devel/lib/ira_laser_tools/laserscan_virtualizer] Error 1 

make[1]: *** [CMakeFiles/Makefile2:7989: wheelchairv2_ros/dependencies/ira_laser_tools/CMakeFiles/laserscan_virtualizer.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

/usr/bin/ld: /opt/ros/melodic/lib/libtf.so: undefined reference to `tf2_ros::TransformListener::TransformListener(tf2::BufferCore&, 
ros::NodeHandle const&, bool)'

collect2: error: ld returned 1 exit status 

make[2]: *** [wheelchairv2_ros/dependencies/ira_laser_tools/CMakeFiles/laserscan_multi_merger.dir/build.make:709: 
/home/pi/wheelchairv2/devel/lib/ira_laser_tools/laserscan_multi_merger] Error 1

make[1]: *** [CMakeFiles/Makefile2:8769: 
wheelchairv2_ros/dependencies/ira_laser_tools/CMakeFiles/laserscan_multi_merger.dir/all] Error 2

make: *** [Makefile:141: all] Error 2

Invoking "make -j4 -l4" failed

Do you have any advice for this situation? Kind regards, Artem

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-01 08:17:08 -0600

miura gravatar image

Perhaps the default branch is for kinetic. The following development branch should solve the problem.

$ git checkout -b development origin/development
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-12-01 04:59:31 -0600

Seen: 156 times

Last updated: Dec 01 '20