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

Invoking "make -j1 -l1" failed

asked 2015-08-18 17:16:21 -0600

DENSO gravatar image

updated 2015-08-18 17:42:14 -0600

in src there is a package named relaxed_astar including: CMakeLists.text package.xml

This is the full cmakelists.text:

cmake_minimum_required(VERSION 2.8.3)
project(relaxed_astar)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
)

## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)


## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()

################################################
## Declare ROS messages, services and actions ##
################################################

## To declare and build messages, services or actions from within this
## package, follow these steps:
## * Let MSG_DEP_SET be the set of packages whose message types you use in
##   your messages/services/actions (e.g. std_msgs, actionlib_msgs, ...).
## * In the file package.xml:
##   * add a build_depend and a run_depend tag for each package in MSG_DEP_SET
##   * If MSG_DEP_SET isn't empty the following dependencies might have been
##     pulled in transitively but can be declared for certainty nonetheless:
##     * add a build_depend tag for "message_generation"
##     * add a run_depend tag for "message_runtime"
## * In this file (CMakeLists.txt):
##   * add "message_generation" and every package in MSG_DEP_SET to
##     find_package(catkin REQUIRED COMPONENTS ...)
##   * add "message_runtime" and every package in MSG_DEP_SET to
##     catkin_package(CATKIN_DEPENDS ...)
##   * uncomment the add_*_files sections below as needed
##     and list every .msg/.srv/.action file to be processed
##   * uncomment the generate_messages entry below
##   * add every package in MSG_DEP_SET to generate_messages(DEPENDENCIES ...)

## Generate messages in the 'msg' folder
# add_message_files(
#   FILES
#   Message1.msg
#   Message2.msg
# )

## Generate services in the 'srv' folder
# add_service_files(
#   FILES
#   Service1.srv
#   Service2.srv
# )

## Generate actions in the 'action' folder
# add_action_files(
#   FILES
#   Action1.action
#   Action2.action
# )

## Generate added messages and services with any dependencies listed here
# generate_messages(
#   DEPENDENCIES
#   std_msgs
# )

###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES relaxed_astar
#  CATKIN_DEPENDS roscpp rospy std_msgs
#  DEPENDS system_lib
)

###########
## Build ##
###########

## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
  ${catkin_INCLUDE_DIRS}
)


## Declare a cpp library
#add_library(relaxed_astar
 # src/${PROJECT_NAME}/relaxed_astar.cpp
# )



add_library(relaxed_astar_lib src/RAstar_ros.cpp)



## Declare a cpp executable


## Add cmake target dependencies of the executable/library
## as an example, message headers may need to be generated before nodes
# add_dependencies(relaxed_astar_node relaxed_astar_generate_messages_cpp)
#add_executable(relaxed_astar_node src/relaxed_astar_node.cpp)
## Specify libraries to link a library or executable target against

Also this's the full package.xml is

<?xml version="1.0"?>
<package>
  <name>relaxed_astar</name>
  <version>0.0.0</version>
  <description>The relaxed_astar package</description>

  <!-- One maintainer tag required, multiple allowed, one person per tag --> 
  <!-- Example:  -->
  <!-- <maintainer email="jane.doe@example.com">Jane Doe</maintainer> -->
  <maintainer email="turtlebot@todo.todo">turtlebot</maintainer>


  <!-- One license ...
(more)
edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2015-08-19 01:15:15 -0600

mgruhler gravatar image

If you have installed it (see answer from sloretz@em) you also need to find_package it. I.e., extend your find_package call to contain:

 find_package(catkin REQUIRED COMPONENTS
  costmap_2d
  move_base_msgs
  roscpp
  rospy
  std_msgs
)

And you should add them as dependencies in the package.xml as well.

edit flag offensive delete link more

Comments

Solved the problem after following sloretz@em and mig

DENSO gravatar image DENSO  ( 2015-08-19 07:52:50 -0600 )edit
1

answered 2015-08-18 17:45:42 -0600

sloretz gravatar image

updated 2015-08-18 17:46:22 -0600

fatal error: move_base_msgs/MoveBaseAction.h: No such file or directory

Sounds like move_base_msgs is not installed. What release of ROS are you using (Indigo? Jade?). Try installing using one of these commands:

if indigo

sudo apt-get install ros-indigo-move-base-msgs

if Jade

sudo apt-get install ros-jade-move-base-msgs
edit flag offensive delete link more

Comments

sorry but i still have this error

[100%] Building CXX object relaxed_astar/CMakeFiles/relaxed_astar_lib.dir/src/RAstar_ros.cpp.o
In file included from /home/user/catkin_ws/src/relaxed_astar/src/RAstar_ros.cpp:37:0:
/home/user/catkin_ws/src/relaxed_astar/src/RAstar_ros.h:63:39: fatal error: costmap_2d/costmap_2d_ros.h: No such file or directory
compilation terminated.
make[2]: *** [relaxed_astar/CMakeFiles/relaxed_astar_lib.dir/src/RAstar_ros.cpp.o] Error 1
make[1]: *** [relaxed_astar/CMakeFiles/relaxed_astar_lib.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed
DENSO gravatar image DENSO  ( 2015-08-18 20:48:33 -0600 )edit
0

answered 2015-08-19 07:50:48 -0600

DENSO gravatar image

Thank you all for the reply, after following sloretz@em and mig I'm getting another error

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

    costmap_2dConfig.cmake
    costmap_2d-config.cmake

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


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

Comments

Please post this as a new question.

mgruhler gravatar image mgruhler  ( 2015-08-20 01:27:26 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-08-18 17:16:21 -0600

Seen: 6,033 times

Last updated: Aug 19 '15