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

catkin_make error while building rospackage (beginner tutorial)

asked 2014-04-23 05:37:14 -0600

Surya_Deopa gravatar image

updated 2017-02-10 05:24:01 -0600

gvdhoorn gravatar image

here is the link to the tutorial i get the following errors

surya@surya-Aspire-V5-571:~/catkin_ws$ catkin_make
Base path: /home/surya/catkin_ws
Source space: /home/surya/catkin_ws/src
Build space: /home/surya/catkin_ws/build
Devel space: /home/surya/catkin_ws/devel
Install space: /home/surya/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/surya/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/surya/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/surya/catkin_ws/devel;/opt/ros/hydro
-- This workspace overlays: /home/surya/catkin_ws/devel;/opt/ros/hydro
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/surya/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.86
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - beginner_tututorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tututorials'
-- ==> add_subdirectory(beginner_tututorials)
CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package roscpy.

  Set roscpy_DIR to the directory containing a CMake configuration file for
  roscpy.  The file will have one of the following names:

    roscpyConfig.cmake
    roscpy-config.cmake

Call Stack (most recent call first):
  beginner_tututorials/CMakeLists.txt:7 (find_package)


CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package std_msg.

  Set std_msg_DIR to the directory containing a CMake configuration file for
  std_msg.  The file will have one of the following names:

    std_msgConfig.cmake
    std_msg-config.cmake

Call Stack (most recent call first):
  beginner_tututorials/CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
surya@surya-Aspire-V5-571:~/catkin_ws$
edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
5

answered 2014-04-23 09:49:28 -0600

William gravatar image

I believe you have just made some typos, the errors above are coming up because the build system cannot find roscpy and std_msg, which is probably because they should be rospy and std_msgs, respectively.

I think if you update your CMakeLists.txt to fix these typos, then it should work for you.

edit flag offensive delete link more

Comments

don't forget to also update your package.xml file

robo_lady gravatar image robo_lady  ( 2017-01-16 13:15:08 -0600 )edit
0

answered 2017-02-10 04:46:15 -0600

Hi all, my name is Gianantonio, just a beginner with ROS. I had the same problem and went around for a while. I must admit that this tutorial is quite perfectly working, thanks to the writers ;-)) but... perfection is not of humans so we have to study, try and fix. We only learn from errors ;-)) When you are at Creating ROS package > para 4. Building a catkin Workspace, before typing catkin_make, go to "../catkin_ws/src/beginners_tutorials" and you should find a file named package.xml . Open it and correct sdt_msg into std_msgs. Save and continue. For my setup, this fixed the problem ;-))

Thanks again to all the creators of this tutorial. It's encouraging for a beginner like myself.

edit flag offensive delete link more
0

answered 2016-06-27 10:53:49 -0600

Hi , I have some sort of similar error. I am going through a tutorial and go this error while creating the catkin package.

Tutorial = http://wiki.ros.org/ROS/Tutorials/Cre...

point no 3 .

The out put of my terminal is pasted on fpaste.org

http://paste.fedoraproject.org/385552/

Please help me resolve the same, I am a beginner.

Regards,

Trickyj

edit flag offensive delete link more

Comments

The first step is to understand that this is a Question and Answer forum. If you have a question, please ask it. Don't post an "answer" expecting a response. You can link to this Q&A if it seems relevant. Please provide plenty of information to help people helping you.

joq gravatar image joq  ( 2016-06-27 12:59:49 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2014-04-23 05:37:14 -0600

Seen: 4,663 times

Last updated: Feb 10 '17