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

Problem with cmake + em

asked 2014-09-30 07:32:00 -0500

zeinab gravatar image

Hi, I am trying to use cmake for some source files that I have which I then need to launch as ros nodes. I have src folder for my source code of the ros packages and a build-prefix folder which is my cmake_install_prefix ( in this case /root/openrobots is my cmake_install_prefix ). When I run ccmake .. in the build folder which is inside my src/ros_package folder, this is what I get:

 CMake Error at
 /root/openrobots/share/catkin/cmake/safe_execute_process.cmake:11 (message):
   "/usr/bin/empy" "--raw-errors" "-F"
   "-o" "/root/src/ranger_ros/build/devel/lib/pkgconfig/ranger_ros.pc"
   "/root/openrobots/share/catkin/cmake/em/pkg.pc.em") returned error code 2
 Call Stack (most recent call first):
   /root/openrobots/share/catkin/cmake/catkin_package.cmake:355 (em_expand)
   CMakeLists.txt:15 (catkin_package)

Any idea on how I can solve this issue? Thanks a lot

edit retag flag offensive close merge delete


Try running the command printed in execute_process() manually. May be that gives you more information than just error code 2.

Dirk Thomas gravatar image Dirk Thomas  ( 2014-09-30 11:31:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-30 17:06:41 -0500

zeinab gravatar image

Apparently empy was missing and after installing itthis issue was resolved. However I would still get some errors because of boost system libraries. I then had to install two different version of libboost-system1.40 and libboost-system1.56 and I was able to make!

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-09-30 07:32:00 -0500

Seen: 251 times

Last updated: Sep 30 '14