Cmake Error 'catkin' must be listed as a buildtool dependency in package.xml
Hello all,
I am currently doing the ROS tutorial (I am on the 'writing a simple publisher and subscriber in C++). When I enter the 'catkin_make' command into the terminal, I first got the add_message_files() directory not found error. To fix this I went into the CMakeLists.txt file and commented out the add_message_file(), add_service_file() and so on. This got rid of that error, however, I am now getting this error when running 'catkin_make':
"Cmake Error at /opt/ros/groovy/share/catkin/cmake/catkin_package.cmake:92(message): catkin_package() 'catkin' must be listed as a buildtool dependency in the package.xml"
However, catkin is specified as a buildtool dependency in my package.xml. How can I fix this?
I am running ROS Groovy on top of Ubuntu 12.04 in a VirtualBox instance.
Thank you!
EDIT: Here is my package.xml file:
<package>
<name>beginner_tutorials</name>
<version>0.0.0</version>
<description>The beginner_tutorials package</description>
<maintainer email="viki@todo.todo">viki</maintainer>
<license>TODO</license>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
<run_depend>roscpp</run_depend>
<run_depend>rospy</run_depend>
<run_depend>std_msgs</run_depend>
<export>
</export>
</package>
hello there. then how you fix that error? i got same problem that "Cmake Error 'catkin' must be listed as a buildtool dependency in package.xml"
sorry for my question.