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

catkin_package() include dir neither an absolute directory nor exists relative to workspace

asked 2013-02-17 16:39:44 -0500

joq gravatar image

updated 2013-02-17 17:30:21 -0500

jbohren gravatar image

I am trying to convert camera1394 to catkin. My working repository is this master branch.

Perhaps foolishly, I am attempting this migration by hand, using only the documentation I can find on-line. That has not been easy or pleasant, but I wanted to see if I could do it.

When trying to build by itself on Precise in a catkin workspace based on Groovy, I get this failure:

$ catkin_make
Base path: /home/joq/ros/hydro
Source space: /home/joq/ros/hydro/src
Build space: /home/joq/ros/hydro/build
Devel space: /home/joq/ros/hydro/devel
Install space: /home/joq/ros/hydro/install
####
#### Running command: "cmake /home/joq/ros/hydro/src -DCATKIN_DEVEL_PREFIX=/home/joq/ros/hydro/devel -DCMAKE_INSTALL_PREFIX=/home/joq/ros/hydro/install" in "/home/joq/ros/hydro/build"
####
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using CATKIN_DEVEL_PREFIX: /home/joq/ros/hydro/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/groovy
-- This workspace overlays: /opt/ros/groovy
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.63
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing packages in topological order:
-- ~~  - camera1394
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'camera1394'
-- ==> add_subdirectory(camera1394)
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   thread
-- checking for module 'libdc1394-2'
--   found libdc1394-2, version 2.2.0
-- dynamic_reconfigure built cfg/Camera1394.cfg: Generating reconfiguration files for Camera1394 in camera1394
CMake Error at /opt/ros/groovy/share/catkin/cmake/catkin_package.cmake:266 (message):
  catkin_package() include dir '/home/joq/ros/hydro/devel/include' is neither
  an absolute directory nor exists relative to
  '/home/joq/ros/hydro/src/camera1394'
Call Stack (most recent call first):
  /opt/ros/groovy/share/catkin/cmake/catkin_package.cmake:78 (_catkin_package)
  camera1394/CMakeLists.txt:34 (catkin_package)


-- Configuring incomplete, errors occurred!
Invoking "cmake" failed

I don't know how to set this. The camera1394 package has no include/ subdirectory, since it exports no header files. I've tried many different ideas, but really have no clear concept what this message is complaining about.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-02-20 11:23:24 -0500

joq gravatar image

This particular message seems to come from dynamic_reconfigure generation.

The fix is to change the cfg file. In place of:

from dynamic_reconfigure.parameter_generator import *

catkin packages should use:

from dynamic_reconfigure.parameter_generator_catkin import *
edit flag offensive delete link more

Comments

Hello, I have encountered a similar problem. Can you indicate to me how can I access the cfg files. There are many cfg files.

Asfandyar Ashraf Malik gravatar image Asfandyar Ashraf Malik  ( 2013-06-17 01:19:57 -0500 )edit

Hard to answer that without more information. Would you please open a new question (which can link to this one) and provide details about the cfg files causing you trouble?

joq gravatar image joq  ( 2013-06-17 05:39:05 -0500 )edit

Thanks joq. I fixed the error. I just made an include folder inside src and did the catkin_make and it compiled. I asked this questions originally on this page with the specifications (http://answers.ros.org/question/65285/rviz-tutorial-error-dir-include-is-neither-an-absolute-directory-nor-exists/

Asfandyar Ashraf Malik gravatar image Asfandyar Ashraf Malik  ( 2013-06-17 05:43:09 -0500 )edit

Question Tools

Stats

Asked: 2013-02-17 16:39:44 -0500

Seen: 3,756 times

Last updated: Feb 20 '13