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

Errors with catkin_make and beginner_tutorials

asked 2015-10-22 08:50:44 -0600

xuao gravatar image

updated 2015-10-22 09:04:31 -0600

I'm new to ROS. I followed the tutorials and run cd ~/catkin_ws and catkin_make, but the output has some warnings and errors, following is the output:

Base path: /home/xu/catkin_ws
Source space: /home/xu/catkin_ws/src
Build space: /home/xu/catkin_ws/build
Devel space: /home/xu/catkin_ws/devel
Install space: /home/xu/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/xu/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/xu/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/xu/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.14
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
**CMake Warning (dev) in beginner_tutorials/CMakeLists.txt:
  Syntax Warning in cmake code at****strong text**

    /home/xu/catkin_ws/src/beginner_tutorials/CMakeLists.txt:11:14

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

**CMake Warning** (dev) in beginner_tutorials/CMakeLists.txt:
  Syntax Warning in cmake code at

    /home/xu/catkin_ws/src/beginner_tutorials/CMakeLists.txt:11:29

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

**CMake Error** at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
  Could not find a package configuration file provided by "<span" with any of
  the following names:

    <spanConfig.cmake
    <span-config.cmake

  Add the installation prefix of "<span" to CMAKE_PREFIX_PATH or set
  "<span_DIR" to a directory containing one of the above files.  If "<span"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  beginner_tutorials/CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/xu/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/xu/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
**Invoking "make cmake_check_build_system" failed**
edit retag flag offensive close merge delete

Comments

Note I edited your question to add a more descriptive title, and I used the "preformatted text" button (button with 101010) to better format the output.

jarvisschultz gravatar image jarvisschultz  ( 2015-10-22 09:06:10 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-10-22 09:15:32 -0600

This definitely looks like you've not quite copied the contents of the CMakeLists.txt file correctly. It seems like you have accidently pasted some HTML code into the file. I don't know what step you are actually on, so it is difficult for me to point you to the exact CMakeLists.txt that you should be comparing against. But note that most of the tutorials link to a GitHub page that will allow you to view the raw text of the correct CMakeLists.txt. For example, the Writing a Simple Publisher and Subscriber (C++) links to this CMakeLists.txt file.

Make sure that the contents of your CMakeLists.txt exactly match the tutorial that you are following. If you still can't figure it out, please edit your original question and add the contents of your CMakeLists.txt.

edit flag offensive delete link more

Comments

i modified my CMakeLists.txt.and run cd ~/catkin_ws and catkin_make, some warning disappeared ,but the output is: Running command: "make cmake_check_build_system" in "/home/xu/catkin_ws/build" Running command: "make -j2 -l2" in "/home/xu/catkin_ws/build" the color of these code is blue,how to solve?

xuao gravatar image xuao  ( 2015-10-23 04:06:57 -0600 )edit

All of those messages are normal. If only "some" of the warnings disappeared, then you should edit your original question with an updated terminal output.

jarvisschultz gravatar image jarvisschultz  ( 2015-10-23 06:29:42 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-10-22 08:50:44 -0600

Seen: 1,031 times

Last updated: Oct 22 '15