Ask Your Question

Jenkins fails to build because of an dependency issue to a package within the same metapackage

asked 2017-02-07 10:22:26 -0500

Markus Bader gravatar image


I have an issue building tuw_msgs Build #29

tuw_msgs is a metapackage and it includes various pkgs with msgs and also pkgs with cpp code. Somehow the pkg nav_msgs is not able to find tuw_geometry_msgs but it was build within the metapackage and I checked countless times the catkin_package statements with the makefiles but everything seems right to me.

The Jenkins output tells me that the tuw_geometry_msgs finished and the tuw_nav_msgs fails on finding that lib :-(

-- Up-to-date: /tmp/catkin_workspace/install_isolated/include/tuw_geometry_msgs
-- Installing: /tmp/catkin_workspace/install_isolated/include/tuw_geometry_msgs/point.h
-- Installing: /tmp/catkin_workspace/install_isolated/include/tuw_geometry_msgs/pose.h
-- Installing: /tmp/catkin_workspace/install_isolated/include/tuw_geometry_msgs/pose_stamped.h
<== Finished processing package [2 of 5]: 'tuw_geometry_msgs'


-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at /tmp/catkin_workspace/install_isolated/share/tuw_geometry_msgs/cmake/tuw_geometry_msgsConfig.cmake:141 (message):
Command failed, exiting.
  Project 'tuw_nav_msgs' tried to find library 'tuw_geometry_msgs'.  The
  library is neither a target nor built/installed properly.  Did you compile
  project 'tuw_geometry_msgs'? Did you find_package() it before the
  subdirectory containing its code is included?
Call Stack (most recent call first):
  /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  CMakeLists.txt:8 (find_package)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-07 10:52:26 -0500

Dirk Thomas gravatar image

When tuw_nav_msgs is being built it is trying to use tuw_geometry_msgs. The CMake config file of tuw_geometry_msgs is being included by the find_package call. That is the file referred to in the error message. It is trying to find the library tuw_geometry_msgs which the package declared to be exported ( ). It can't find the library since it is never being installed. You need to enable these lines to install the library - then it can be used by other packages:

edit flag offensive delete link more


Thank you, that was the problem.

Markus Bader gravatar image Markus Bader  ( 2017-02-07 13:40:06 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-02-07 10:22:26 -0500

Seen: 141 times

Last updated: Feb 07 '17