cmake Failed to process package 'kdl_parser' [solved]

asked 2022-01-31 04:07:53 -0500

obiwan gravatar image

updated 2022-05-17 03:55:13 -0500

In Gentoo, noetic.

Building ros like previously done I have this error when launching "./src/catkin/bin/catkin_make_isolated --install"

==> Processing catkin package: 'kdl_parser' ==> Building with env: '/home/david/ROS_ws/install_isolated/env.sh' Makefile exists, skipping explicit cmake invocation... ==> make cmake_check_build_system in '/home/david/ROS_ws/build_isolated/kdl_parser' -- Using CATKIN_DEVEL_PREFIX: /home/david/ROS_ws/devel_isolated/kdl_parser -- Using CMAKE_PREFIX_PATH: /home/david/ROS_ws/install_isolated -- This workspace overlays: /home/david/ROS_ws/install_isolated -- Using PYTHON_EXECUTABLE: /usr/bin/python3 -- Using default Python package layout -- Using empy: /usr/lib/python3.8/site-packages/em.py -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/david/ROS_ws/build_isolated/kdl_parser/test_results -- Found gtest: gtests will be built -- Using Python nosetests: /usr/bin/nosetests -- catkin 0.8.10 -- BUILD_SHARED_LIBS is on CMake Error at /home/david/ROS_ws/install_isolated/share/urdf/cmake/urdfConfig.cmake:173 (message): Project 'kdl_parser' tried to find library
'$<$<not:$<config:debug>>:/usr/lib64/liburdfdom_sensor.so>'. The library is neither a target nor built/installed properly. Did you compile project 'urdf'? Did you find_package() it before the subdirectory containing its code is included? Call Stack (most recent call first): CMakeLists.txt:34 (find_package) -- Configuring incomplete, errors occurred! See also "/home/david/ROS_ws/build_isolated/kdl_parser/CMakeFiles/CMakeOutput.log". See also "/home/david/ROS_ws/build_isolated/kdl_parser/CMakeFiles/CMakeError.log". make: * [Makefile:782: cmake_check_build_system] Error 1 <== Failed to process package 'kdl_parser': Command '['/home/david/ROS_ws/install_isolated/env.sh', 'make', 'cmake_check_build_system']' returned non-zero exit status 2.

But "urdf" was just the previously processed package:

<== Finished processing package [185 of 203]: 'urdf'

Anybody with the same problem?

edit retag flag offensive close merge delete

Comments

Sorry, I do not know how to properly format the output of "cmake".

obiwan gravatar image obiwan  ( 2022-01-31 04:06:09 -0500 )edit

Hi @obiwan, you could install from apt, I believe it should be ok in Gentoo.

sudo apt install ros-noetic-kdl-parser
osilva gravatar image osilva  ( 2022-01-31 08:38:54 -0500 )edit

From the repository I have exactly the same error:

CMake Error at /usr/share/urdf/cmake/urdfConfig.cmake:173 (message):
Project 'kdl_parser' tried to find library
'$<$<NOT:$<CONFIG:Debug>>:/usr/lib64/liburdfdom_sensor.so>'.  The library
is neither a target nor built/installed properly.  Did you compile project
'urdf'? Did you find_package() it before the subdirectory containing its
code is included?
Call Stack (most recent call first):
CMakeLists.txt:33 (find_package)
obiwan gravatar image obiwan  ( 2022-02-01 04:02:01 -0500 )edit

There is a bug in Gentoo bugzilla:

https://bugs.gentoo.org/829292

Let's see.

Thanks @osilva

obiwan gravatar image obiwan  ( 2022-02-01 04:10:31 -0500 )edit

Hopefully you get it working. If so pls update with an answer.

osilva gravatar image osilva  ( 2022-02-01 05:27:02 -0500 )edit

Now the problem is in "rviz". In the linking with "YAML". Do not find any related bug. Let's see.

obiwan gravatar image obiwan  ( 2022-04-19 07:27:39 -0500 )edit

Problem in "rviz" solved editing the CMakeList.txt with proper value for libyaml-cpp

obiwan gravatar image obiwan  ( 2022-05-17 03:54:37 -0500 )edit