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

Migrating from ros indigo to ros kinetic, CMake can't finish the run.

asked 2018-07-02 02:36:51 -0500

onilsson gravatar image

updated 2022-01-22 16:16:24 -0500

Evgeny gravatar image

I am currently trying to compile a project from Ubuntu 14.04 in 16.04 and have had to fix quite a few problems. This probem seems to be related to orocos for ros, but I’m unable to find the origin of the problem, so I have mostly made random searches with key words I thought to be relevant.

I am posting here because I thing the problem may be related to ros, maybe some compatibiliy error between ros indigo and ros kinetic?

For this project I am using these orocos packages for ros: rtt_ros_integration, rtt_common_msgs, rtt_ros_comm and rtt-roscomm and it is constructed with catkin

Does anyone understand what the problem is? I am not the one that made this CMake project and I haven't been able to locate the origin of the problem, so I can’t provide more info.

Here is the error generated by cmake:

-- Checking for one of the modules 'rtt_rosgraph_msgs-gnulinux'
-- [UseOrocos] Found orocos package 'rtt_rosgraph_msgs'.
-- Checking for one of the modules 'rtt_geometry_msgs-gnulinux'
-- [UseOrocos] Found orocos package 'rtt_geometry_msgs'.
-- - Detected OROCOS_TARGET environment variable. Using: gnulinux
-- Found orocos-rtt 2.9.0 for the gnulinux target. Available transports: corba mqueue
-- - Found requested orocos-rtt components: rtt-marshalling rtt-scripting rtt-scripting rtt-marshalling rtt-transport-mqueue rtt-transport-corba
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- ros_generate_rtt_typekit: Could not find any .msg files in the lc_control package.
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- [UseOrocos] Building plugin library rtt_lc_control_rosservice_proxies CMake Error at /opt/ros/kinetic/lib/cmake/orocos-rtt/UseOROCOS-RTT.cmake:761 (target_link_libraries):   Target "lc_control_generate_messages_eus" of type UTILITY may not be linked   into another target.  One may link only to STATIC or SHARED libraries, or   to executables with the ENABLE_EXPORTS property set. Call Stack (most recent call first):   /opt/ros/kinetic/lib/cmake/orocos-rtt/UseOROCOS-RTT.cmake:786 (orocos_plugin)   /opt/ros/kinetic/share/rtt_roscomm/src/templates/service/CMakeLists.txt:93 (orocos_service)


CMake Error at /opt/ros/kinetic/lib/cmake/orocos-rtt/UseOROCOS-RTT.cmake:761 (target_link_libraries):   Target "lc_control_generate_messages_nodejs" of type UTILITY may not be   linked into another target.  One may link only to STATIC or SHARED   libraries, or to executables with the ENABLE_EXPORTS property set. Call Stack (most recent call first):   /opt/ros/kinetic/lib/cmake/orocos-rtt/UseOROCOS-RTT.cmake:786 (orocos_plugin)   /opt/ros/kinetic/share/rtt_roscomm/src/templates/service/CMakeLists.txt:93 (orocos_service)


CMake Error at /opt/ros/kinetic/share/rtt_roscomm/src/templates/service/CMakeLists.txt:94 (target_link_libraries):   Target "lc_control_generate_messages_eus" of type UTILITY may not be linked   into another target.  One may link only to STATIC or SHARED libraries, or   to executables with the ENABLE_EXPORTS property set.


CMake Error at /opt/ros/kinetic/share/rtt_roscomm/src/templates/service/CMakeLists.txt:94 (target_link_libraries):   Target "lc_control_generate_messages_nodejs" of type UTILITY may not be   linked into another target.  One may link only to STATIC or SHARED   libraries, or to executables with the ENABLE_EXPORTS property set.


-- [UseOrocos] Generating package version 0.0.0 from rtt_lc_control_VERSION (package.xml).
-- [UseOrocos] Generating pkg-config file for package in catkin devel space.
-- [UseOrocos] Exporting targets rtt_lc_control_rosservice_proxies;roscpp_generate_messages_cpp;roscpp_generate_messages_eus;roscpp_generate_messages_lisp;roscpp_generate_messages_nodejs;roscpp_generate_messages_py;rosgraph_msgs_generate_messages_cpp;rosgraph_msgs_generate_messages_eus;rosgraph_msgs_generate_messages_lisp;rosgraph_msgs_generate_messages_nodejs;rosgraph_msgs_generate_messages_py ...
(more)
edit retag flag offensive close merge delete

Comments

2

+100 for copy-pasting the console text (instead of screenshotting it), but could you please do it again? Use the Preformatted Text button this time though (the one with 101010 on it) instead of the block quote. It's rather unreadable like this.

gvdhoorn gravatar image gvdhoorn  ( 2018-07-02 03:13:31 -0500 )edit

Thank's for your input gvdhoorn, I thought it would be better with the block quote, but now it's changed.

onilsson gravatar image onilsson  ( 2018-07-02 03:39:38 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-07-02 03:50:18 -0500

gvdhoorn gravatar image
-- [UseOrocos] Building plugin library rtt_lc_control_rosservice_proxies CMake Error at /opt/ros/kinetic/lib/cmake/orocos-rtt/UseOROCOS-RTT.cmake:761 (target_link_libraries):   Target "lc_control_generate_messages_eus" of type UTILITY may not be linked   into another target.  One may link only to STATIC or SHARED libraries, or   to executables with the ENABLE_EXPORTS property set. Call Stack (most recent call first):   /opt/ros/kinetic/lib/cmake/orocos-rtt/UseOROCOS-RTT.cmake:786 (orocos_plugin)   /opt/ros/kinetic/share/rtt_roscomm/src/templates/service/CMakeLists.txt:93 (orocos_service)

From this error I would say this is a problem with the orocos_rtt / rtt_roscomm packages, or at least with one of the build scripts they provide (orocos-rtt/UseOROCOS-RTT.cmake).

Reporting this as an issue on the appropriate OROCOS issue tracker seems like the best course of action.

edit flag offensive delete link more

Comments

Ok, thank you for your swift answer. I will post on the issue tracker too then.

onilsson gravatar image onilsson  ( 2018-07-02 03:57:37 -0500 )edit

If you do post on their tracker(s), please post back a link to the issue(s) here to keep things connected.

gvdhoorn gravatar image gvdhoorn  ( 2018-07-02 04:00:36 -0500 )edit

Ok, I will do that as soon as I find the issue tracker

onilsson gravatar image onilsson  ( 2018-07-02 04:21:56 -0500 )edit

Probably one of the repositories under github.com/orocos (rtt_ros_integration?)

gvdhoorn gravatar image gvdhoorn  ( 2018-07-02 04:25:04 -0500 )edit

Thanks! I think I posted it on the wrong page, now it's under rtt_ros_integration

onilsson gravatar image onilsson  ( 2018-07-02 05:34:04 -0500 )edit

Question Tools

Stats

Asked: 2018-07-02 02:36:51 -0500

Seen: 521 times

Last updated: Jul 02 '18