rosbuild fails in cmake [closed]
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?
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...
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.