Catkin_make error Invoking "make -j8 -l8" failed

asked 2021-01-26 07:55:22 -0600

impaidk gravatar image

updated 2021-01-26 10:03:38 -0600

Delb gravatar image

I'm trying to build my project Workspace which I got from my mate using Catkin_make, I keep getting this error. Can someone help me solving this, if you have already come across this.

I have checked if there are any dependencies missing, currently no dependencies are missing.

Base path: /home/impaidk/project_ws
Source space: /home/impaidk/project_ws/src
Build space: /home/impaidk/project_ws/build
Devel space: /home/impaidk/project_ws/devel
Install space: /home/impaidk/project_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/impaidk/project_ws/build"
####
####
#### Running command: "make -j8 -l8" in "/home/impaidk/project_ws/build"
####
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_ThrustCommand
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_LandingAction
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_PoseResult
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_TakeoffActionResult
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_MotorPWM
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_RawMagnetic
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_TakeoffAction
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_PoseActionFeedback
[  0%] Built target actionlib_msgs_generate_messages_py
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_LandingActionFeedback
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_TakeoffResult
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_LandingFeedback
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_RuddersCommand
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_ControllerState
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_ServoCommand
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_PoseFeedback
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_TakeoffActionGoal
[  0%] Built target geometry_msgs_generate_messages_py
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_TakeoffActionFeedback
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_YawrateCommand
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_PoseAction
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_LandingActionGoal
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_TakeoffGoal
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_RawImu
[  0%] Built target std_msgs_generate_messages_py
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_VelocityZCommand
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_LandingGoal
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_AttitudeCommand
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_Altimeter
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_LandingActionResult
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_VelocityXYCommand
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_RC
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_Supply
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_EnableMotors
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_TakeoffFeedback
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_MotorStatus
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_PoseGoal
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_PoseActionGoal
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_RawRC
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_PoseActionResult
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_HeadingCommand
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_MotorCommand
[  0%] Built target std_msgs_generate_messages_eus
[  0%] Built target geometry_msgs_generate_messages_eus
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_PositionXYCommand
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_LandingResult
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_Compass
[  0%] Built target actionlib_msgs_generate_messages_eus
[  0%] Built target actionlib_msgs_generate_messages_cpp
[  0%] Built target std_msgs_generate_messages_cpp
[  0%] Built target geometry_msgs_generate_messages_cpp
[  0%] Built target actionlib_msgs_generate_messages_lisp
[  0%] Built target _hector_uav_msgs_generate_messages_check_deps_HeightCommand
[  0%] Built target std_msgs_generate_messages_lisp
[  0%] Built target actionlib_msgs_generate_messages_nodejs
[  0%] Built target geometry_msgs_generate_messages_lisp
[  0%] Built target std_msgs_generate_messages_nodejs
[  0%] Built target geometry_msgs_generate_messages_nodejs
[  0%] Built target hector_quadrotor_aerodynamics
[  0%] Built target pcl_msgs_generate_messages_py
[  0%] Built target roscpp_generate_messages_py
[  0%] Built target _rosinrange_msg_generate_messages_check_deps_RangePose
[  0%] Linking CXX executable /home/impaidk/project_ws/devel/lib/message_to_tf/message_to_tf
[  0%] Built target roscpp_generate_messages_nodejs
[  0%] Built target _drone_control_generate_messages_check_deps_MarkerPosition
[  0%] Built target roscpp_generate_messages_eus
[  0%] Built target roscpp_generate_messages_lisp
[  0%] Built target rosgraph_msgs_generate_messages_cpp
[  0%] Built target roscpp_generate_messages_cpp
[  0%] Built target rosgraph_msgs_generate_messages_eus
[  0%] Built target rosgraph_msgs_generate_messages_py
[  0%] Built target rosgraph_msgs_generate_messages_nodejs
[  0%] Built target rosgraph_msgs_generate_messages_lisp
[  0%] Built target sensor_msgs_generate_messages_lisp
[  0%] Built target tf2_msgs_generate_messages_cpp
[  0%] Built target nav_msgs_generate_messages_py
[  0%] Built target nav_msgs_generate_messages_nodejs
[  1%] Built target tf_generate_messages_lisp
[  7%] Built target tf2_msgs_generate_messages_eus
[  7%] Built target hector_pose_estimation
[  7%] Built target nav_msgs_generate_messages_lisp
[  7%] Built target sensor_msgs_generate_messages_eus
[  7%] Built target sensor_msgs_generate_messages_cpp
[  7%] Built target tf_generate_messages_cpp
[  7%] Built target nav_msgs_generate_messages_eus
[  7%] Built target tf2_msgs_generate_messages_lisp
[  7%] Built target actionlib_generate_messages_eus
[  7%] Built target tf2_msgs_generate_messages_py
[  7%] Built target tf_generate_messages_eus
[  7%] Built target tf2_msgs_generate_messages_nodejs
[  7%] Built target tf_generate_messages_nodejs
[  7%] Built target nav_msgs_generate_messages_cpp
[  7%] Built target tf_generate_messages_py
[  7%] Built target sensor_msgs_generate_messages_py
[  7%] Built target sensor_msgs_generate_messages_nodejs
Scanning dependencies of target nodelet_generate_messages_nodejs
[  7%] Built target actionlib_generate_messages_nodejs
[  7%] Built target actionlib_generate_messages_lisp
[  7%] Built target actionlib_generate_messages_py ...
(more)
edit retag flag offensive close merge delete

Comments

1

The first line showing an error tells this :

/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

Undefined reference errors mean you have a problem with the linking of your libraries. Can you show your CMakeLists.txt and package.xml ? I'm guessing you miss tf2_ros in catkin_package().

Delb gravatar image Delb  ( 2021-01-26 10:08:18 -0600 )edit

Thank you for the reply.

drone_pose/drone/hector_quadrotor/hector_localization/message_to_tf

do you mean CMakelists.txt and package.xml of message_to_tf package?

impaidk gravatar image impaidk  ( 2021-01-26 11:10:22 -0600 )edit

If that's the package you are building, yes.

Delb gravatar image Delb  ( 2021-01-27 03:22:46 -0600 )edit

I'm building 4 packages in my ws and this is the one that shows the error above. So I'm attaching the cmakelists.txt and package.xml of this package.

Here is the cmakelist gist https://gist.github.com/impaidk/15731... and package.xml is here https://gist.github.com/impaidk/621d7...

impaidk gravatar image impaidk  ( 2021-01-28 05:16:43 -0600 )edit

You need to add tf2_ros in the function catkin_package and find_package in CMakeLists.txt and also add <depend>tf2_ros</depend> in package.xml.

Delb gravatar image Delb  ( 2021-01-28 10:59:15 -0600 )edit