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

Getting error on package.xml when running "catkin_ make"

asked 2016-08-30 10:20:06 -0500

lucadg gravatar image

I have just started with ROS and I am following one of my first beginner tutorial "Writing a Simple Publisher and Subscriber (C++)".

I am receiving an error when I run catkin_make or catkin_make install

This is my terminal:

lucadg@luca-Inspiron-3543:~/catkin_ws$ catkin_make install
Base path: /home/lucadg/catkin_ws
Source space: /home/lucadg/catkin_ws/src
Build space: /home/lucadg/catkin_ws/build
Devel space: /home/lucadg/catkin_ws/devel
Install space: /home/lucadg/catkin_ws/install
**Invalid package manifest "/home/lucadg/catkin_ws/src/beginner_tutorials/package.xml": The manifest contains invalid XML:
mismatched tag: line 60, column 2**

Below a copy of my package.xml file which I checked and everything seems to be ok, line 60 is the last word, the closing tag of package.

This is my package.xml

<?xml version="3.0"?>


  <description>The beginner_tutorials package</description>

  <!-- One maintainer tag required, multiple allowed, one person per tag -->
  <!-- Example:  -->
  <!-- <maintainer email="">Jane Doe</maintainer> -->
  <maintainer email="">Luca Di Giammarino</maintainer>

  <!-- One license tag required, multiple allowed, one license per tag -->
  <!-- Commonly used license strings: -->
  <!--   BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 -->

  <!-- Url tags are optional, but mutiple are allowed, one per tag -->
  <!-- Optional attribute type can be: website, bugtracker, or repository -->
  <!-- Example: -->
  <!-- <url type="website"></url> -->

  <!-- Author tags are optional, mutiple are allowed, one per tag -->
  <!-- Authors do not have to be maintianers, but could be -->
  <!-- Example: -->
  <!-- <author email="">Jane Doe</author> -->

  <!-- The *_depend tags are used to specify dependencies -->
  <!-- Dependencies can be catkin packages or system dependencies -->
  <!-- Examples: -->
  <!-- Use build_depend for packages you need at compile time: -->
  <!--   <build_depend>message_generation</build_depend> -->
  <!-- Use buildtool_depend for build tool packages: -->
  <!--   <buildtool_depend>catkin</buildtool_depend> -->
  <!-- Use run_depend for packages you need at runtime: -->
  <!--   <run_depend>message_runtime</run_depend> -->
  <!-- Use test_depend for packages you need only for testing: -->
  <!--   <test_depend>gtest</test_depend> -->

  <!-- The export tag contains other, unspecified, tags -->
    <!-- Other tools can request additional information be placed here -->
                                                                                                                           60,1          Bot

Thank you for your help

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-08-30 10:39:48 -0500

ahendrix gravatar image

It looks like a couple of your dependencies don't have good close tags:


Sometimes the XML parser doesn't realize there's an error until it gets to a close tag, so you have to look at the error message too, not just the line number.

edit flag offensive delete link more



<?xml version="3.0"?>

Was that auto-generated @lucadg? Afaik, there are only two valid values for version: 1.0 and 1.1 (see wikipedia/XML - Versions fi).

gvdhoorn gravatar image gvdhoorn  ( 2016-08-31 01:47:00 -0500 )edit

Thank you @ahendrix, I thought that was the right line number. Also I've changed the xml version by mistake, it should be 1.0

lucadg gravatar image lucadg  ( 2016-08-31 05:04:31 -0500 )edit

have you solved this problem? I have met the same one

michael_kong gravatar image michael_kong  ( 2017-01-26 03:13:01 -0500 )edit

Yes, the error was that some of the closing tags were incorrect. Read your XML carefully and make sure that there's a close tag for every open tag.

ahendrix gravatar image ahendrix  ( 2017-01-26 16:58:11 -0500 )edit

Thanks for the solution

hpurohit gravatar image hpurohit  ( 2017-03-06 15:17:25 -0500 )edit

Question Tools



Asked: 2016-08-30 10:20:06 -0500

Seen: 6,844 times

Last updated: Aug 30 '16