Building Soem drivers fails

Hi,

I just wanted to compile my own soem drivers but I get an error when compiling. The drivers worked before and I did not change anything to the drivers. I do not have any problems building any other packages like soem_beckhoff_drivers etc.

I'm using the orocos-toolchain-ros 0.4.0 from the prebuild deb packages. I attached the build_output.log but for convenience:

  [UseOrocos] Linking all targets with libraries from package 'soem_master'.
  [UseOrocos] Linking all targets with libraries from package 'rtt_ros_integration'.
  -- checking for one of the modules 'rtt_ros_integration_hexapod_msgs;rtt_ros_integration_hexapod_msgs-gnulinux'
  CMake Error at /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt_ros_integration/cmake/GenerateRTTtypekit.cmake:82 (add_custom_command):
    add_custom_command Wrong syntax.  A TARGET or OUTPUT must be specified.
  Call Stack (most recent call first):
    CMakeLists.txt:36 (ros_generate_rtt_typekit)
 
  [UseOrocos] Building plugin library soem_wrxxxx in ROS tree.
  [UseOrocos] Building plugin library soem_hp0002 in ROS tree.
  -- Configuring incomplete, errors occurred!

Thanks Jeroen

AttachmentSize
build_output.txt3.42 KB

Building Soem drivers fails

On Wed, Jul 6, 2011 at 12:30 PM, <jjpa [dot] willems [..] ...> wrote:
> Hi,
>
> I just wanted to compile my own soem drivers but I get an error when
> compiling.
> The drivers worked before and I did not change anything to the drivers. I do
> not have any problems building any other packages like soem_beckhoff_drivers
> etc.
>
> I'm using the orocos-toolchain-ros 0.4.0 from the prebuild deb packages.
> I attached the build_output.log but for convenience:
> &#10;&gt;  [UseOrocos] Linking all targets with libraries from package &#039;soem_master&#039;.&#10;&gt;  [UseOrocos] Linking all targets with libraries from package&#10;&gt; &#039;rtt_ros_integration&#039;.&#10;&gt;  -- checking for one of the modules&#10;&gt; &#039;rtt_ros_integration_hexapod_msgs;rtt_ros_integration_hexapod_msgs-gnulinux&#039;&#10;&gt;  CMake Error at&#10;&gt; /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt_ros_integration/cmake/GenerateRTTtypekit.cmake:82&#10;&gt; (add_custom_command):&#10;&gt;   add_custom_command Wrong syntax.  A TARGET or OUTPUT must be specified.&#10;&gt;  Call Stack (most recent call first):&#10;&gt;   CMakeLists.txt:36 (ros_generate_rtt_typekit)&#10;&gt;  [UseOrocos] Building plugin library soem_wrxxxx in ROS tree.&#10;&gt;  [UseOrocos] Building plugin library soem_hp0002 in ROS tree.&#10;&gt;  -- Configuring incomplete, errors occurred!&#10;&gt;
>
> Thanks Jeroen

The code seems not to be robust against the fact that your package
does not contain any msg files. I would suggest you uncomment the
ros_generate_rtt_typekit() call from your CMakeLists.txt file ?

We'll update the macro that it issues a warning if no msg files have
been found...

Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users

Building Soem drivers fails

On Thu, Jul 7, 2011 at 00:27, Peter Soetens <peter [..] ...>
wrote:
> On Wed, Jul 6, 2011 at 12:30 PM, <jjpa [dot] willems [..] ...> wrote:
>> Hi,
>>
>> I just wanted to compile my own soem drivers but I get an error when
>> compiling.
>> The drivers worked before and I did not change anything to the drivers. I
do
>> not have any problems building any other packages like
soem_beckhoff_drivers
>> etc.
>>
>> I'm using the orocos-toolchain-ros 0.4.0 from the prebuild deb packages.
>> I attached the build_output.log but for convenience:
>> &#10;&gt;&gt;  [UseOrocos] Linking all targets with libraries from package&#10;&#039;soem_master&#039;.&#10;&gt;&gt;  [UseOrocos] Linking all targets with libraries from package&#10;&gt;&gt; &#039;rtt_ros_integration&#039;.&#10;&gt;&gt;  -- checking for one of the modules&#10;&gt;&gt;&#10;&#039;rtt_ros_integration_hexapod_msgs;rtt_ros_integration_hexapod_msgs-gnulinux&#039;&#10;&gt;&gt;  CMake Error at&#10;&gt;&gt;&#10;/opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt_ros_integration/cmake/GenerateRTTtypekit.cmake:82&#10;&gt;&gt; (add_custom_command):&#10;&gt;&gt;   add_custom_command Wrong syntax.  A TARGET or OUTPUT must be specified.&#10;&gt;&gt;  Call Stack (most recent call first):&#10;&gt;&gt;   CMakeLists.txt:36 (ros_generate_rtt_typekit)&#10;&gt;&gt;  [UseOrocos] Building plugin library soem_wrxxxx in ROS tree.&#10;&gt;&gt;  [UseOrocos] Building plugin library soem_hp0002 in ROS tree.&#10;&gt;&gt;  -- Configuring incomplete, errors occurred!&#10;&gt;&gt;
>>
>> Thanks Jeroen
>
> The code seems not to be robust against the fact that your package
> does not contain any msg files. I would suggest you uncomment the
> ros_generate_rtt_typekit() call from your CMakeLists.txt file ?
>

Commenting the ros_generate_rtt_typekit() solved my problem, the driver
works again.

> We'll update the macro that it issues a warning if no msg files have
> been found...
>
> Peter
>

Thanks Jeroen