rosbuild fails in cmake [closed]

asked 2014-12-20 13:28:52 -0600

alex233 gravatar image

updated 2014-12-20 13:40:24 -0600

Hello,

I'm just trying out an example of compiling and linking with ROS in C++. I know how to use CMake, but under this scenario, robuild just crashes:

~/catkin_ws/src/test/build$ cmake ..
[rosbuild] Building package test
[rosbuild] Error from syntax check of test/manifest.xml
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/manifest.py", line 139, in parse_file
    return roslib.manifestlib.parse_file(Manifest(), file)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/manifestlib.py", line 497, in parse_file
    raise ValueError("Invalid/non-existent manifest file: %s"%file)
ValueError: Invalid/non-existent manifest file: manifest.xml
CMake Error at /opt/ros/indigo/share/ros/core/rosbuild/private.cmake:78 (message):
  [rosbuild] Syntax check of test/manifest.xml failed; aborting
Call Stack (most recent call first):
  /opt/ros/indigo/share/ros/core/rosbuild/public.cmake:174 (_rosbuild_check_manifest)
  CMakeLists.txt:3 (rosbuild_init)

Can anyone help? EDIT:

Interestingly enough, setting direct compilation works fine:

g++ main.cpp -o hello_world_node -I/opt/ros/indigo/include -L/opt/ros/indigo/lib -Wl,-rpath,/opt/ros/indigo/lib -lroscpp -lrosconsole -lrostime

So the error must be elsewhere?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-03-09 17:31:15.687804

Comments

Please share your CMakeLists.txt.and how you're setting up your workspace. rosbuild is not designed for being invoked by cmake. catkin packages can be used in a plain cmake package. One of the ROS tutorials is about how to compile: http://wiki.ros.org/ROS/Tutorials/Bui...

tfoote gravatar image tfoote  ( 2014-12-23 18:19:43 -0600 )edit

Hello, I don't have access to the CMakeLists.txt right now, but I was using the typical examples found on the tutorials, nothing weird. I know that rosbuild has been dropped in newer versions of ROS, which I am assuming would explain why it doesn't work under indigo? catkin works fine btw.

alex233 gravatar image alex233  ( 2014-12-29 11:14:45 -0600 )edit