Package 'urdf' exports the library 'urdf' which couldn't be found

asked 2019-02-16 08:11:18 -0500

uPrizZ gravatar image

updated 2019-02-16 12:00:39 -0500

So I am trying to follow the installation tutorials and the "create package using colcon" tutorial. I managed to build ros2 from source successfully (at least I think so, console output down below).

But now I am trying to follow the package creation tutorial, where I have to create a workspace with symlink build. That, for some reason, just doesn't want to work. I always get the above stated error, so that the compilation fails. I tried to use the 'release-latest' branch instead of the 'master' one (as it is instructed in the tutorial), but still same error (just for a different package).

I am working on Windows 10, using VS17.

(Successful?) Compile of the "release-latest" source with --merge-install (last relevant lines)

Starting >>> rqt_srv
[391.445s] colcon.colcon_cmake.task.cmake.build WARNING Could not run installation step for package 'pendulum_control' because it has no 'install' target
Finished <<< pendulum_control [13.0s]
Finished <<< ros2lifecycle [12.4s]
Finished <<< dummy_robot_bringup [20.4s]
Finished <<< lifecycle [16.3s]
--- stderr: ros1_bridge
CMake Warning at CMakeLists.txt:25 (message):
  Failed to find PkgConfig, skipping...


---
Finished <<< ros1_bridge [19.5s]
Finished <<< rqt_srv [11.4s]
Finished <<< rviz_default_plugins [59.2s]
Starting >>> rviz2
Finished <<< rviz2 [12.8s]
[Processing: test_communication]
[Processing: test_communication]
[Processing: test_communication]
[Processing: test_communication]
Finished <<< test_communication [3min 28s]

Summary: 229 packages finished [9min 7s]
  10 packages had stderr output: rmw_connext_cpp rmw_connext_shared_cpp rmw_opensplice_cpp ros1_bridge rosidl_typesupport_connext_c rosidl_typesupport_connext_cpp rosidl_typesupport_opensplice_c rosidl_typesupport_opensplice_cpp rqt test_launch_ros



Failed compile of "master" source with --symlink-install

Finished <<< urdf [12.0s]
Starting >>> kdl_parser
Finished <<< qt_gui_py_common [8.89s]
Finished <<< rosidl_actions [9.32s]
Starting >>> rosidl_cmake
Finished <<< qt_dotgraph [10.5s]
Finished <<< rcutils [20.0s]
Starting >>> pluginlib
Finished <<< rosidl_cmake [5.92s]
Starting >>> rosidl_generator_c
Starting >>> rosidl_generator_dds_idl
Finished <<< resource_retriever [18.5s]
Starting >>> rviz_rendering
--- stderr: kdl_parser
CMake Error at C:/dev/ros2_ws/install/urdf/share/urdf/cmake/ament_cmake_export_libraries-extras.cmake:48 (message):
  Package 'urdf' exports the library 'urdf' which couldn't be found
Call Stack (most recent call first):
  C:/dev/ros2_ws/install/urdf/share/urdf/cmake/urdfConfig.cmake:38 (include)
  CMakeLists.txt:9 (find_package)


---
Failed   <<< kdl_parser [ Exited with code 1 ]
Aborted  <<< rosidl_generator_c
Aborted  <<< qt_gui_app
Aborted  <<< rosidl_generator_dds_idl
--- stderr: pluginlib
CMake Warning at C:/dev/ros2_ws/install/class_loader/share/class_loader/cmake/ament_cmake_export_libraries-extras.cmake:116 (message):
  Package 'class_loader' exports library 'class_loader' which couldn't be
  found
Call Stack (most recent call first):
  C:/dev/ros2_ws/install/class_loader/share/class_loader/cmake/class_loaderConfig.cmake:38 (include)
  CMakeLists.txt:15 (find_package)


CMake Error at C:/dev/ros2_ws/install/rcutils/share/rcutils/cmake/ament_cmake_export_libraries-extras.cmake:48 (message):
  Package 'rcutils' exports the library 'rcutils' which couldn't be found
Call Stack (most recent call first):
  C:/dev/ros2_ws/install/rcutils/share/rcutils/cmake/rcutilsConfig.cmake:38 (include)
  CMakeLists.txt:16 (find_package)


---
Aborted  <<< pluginlib
Aborted  <<< rviz_rendering

Summary: 92 packages finished [1min 28s]
  1 package failed: kdl_parser
  5 packages aborted: pluginlib qt_gui_app rosidl_generator_c rosidl_generator_dds_idl rviz_rendering
  2 packages had stderr output: kdl_parser pluginlib
  131 packages not processed
edit retag flag offensive close merge delete

Comments

I have now tried to compile a symlink build using the release-latest branch. This doesn't work either, almost identical error

'release-latest' symlink build

uPrizZ gravatar image uPrizZ  ( 2019-02-16 08:49:06 -0500 )edit
1

I'm sorry, but I must ask you to not post screenshots of terminals. This goes against the ROS Answers support guidelines (rationale provided on that page).

I'm closing your post, not because it's not a valid question, but to give you an opportunity to edit it ..

gvdhoorn gravatar image gvdhoorn  ( 2019-02-16 11:26:06 -0500 )edit
1

.. and remove the screenshots.

After you've fixed it we'll re-open.

gvdhoorn gravatar image gvdhoorn  ( 2019-02-16 11:26:28 -0500 )edit

I cannot delete comments nor edit them though

uPrizZ gravatar image uPrizZ  ( 2019-02-16 11:42:52 -0500 )edit
1

You should be able to edit your main question.

gvdhoorn gravatar image gvdhoorn  ( 2019-02-16 11:45:26 -0500 )edit
1

I have done so now

uPrizZ gravatar image uPrizZ  ( 2019-02-16 12:01:07 -0500 )edit

Thank you. I've re-opened it.

gvdhoorn gravatar image gvdhoorn  ( 2019-02-16 12:11:47 -0500 )edit

Today I tried everything on a different machine with windows 10 completely fresh installed. Same error on package rosidl_generator_cpp. Doesn't anyone have a clue? Either I am doing the same mistake over and over again or there is something wrong with the tutorial (or something missing).

uPrizZ gravatar image uPrizZ  ( 2019-02-23 07:46:03 -0500 )edit