ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
That post suggests that setting the -m32
compile and link flags will compile your node as a 32-bit executable.
Since catkin is pure cmake, you should be able to use set_target_properties to add -m32
to the LINK_FLAGS
and COMPILE_FLAGS
properties on the node in question.
That said, this may not work very well if the ROS libraries that you're trying to link with are 64-bit. You may have to set up a separate workspace and build your node and all of its dependencies in 32-bit mode. In this case, you'll probably just want to set the CMAKE_CXX_FLAGS
globally when you call catkin_make.