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

catkin_make install issue: File INSTALL cannot find ...

asked 2013-05-11 11:54:54 -0600

duffany1 gravatar image

updated 2013-05-12 04:45:37 -0600

When running $ catkin_make install, I get the following error:

CMake Error at HeartBeat/heart/cmake_install.cmake:40 (FILE):
  file INSTALL cannot find "/home/brandon/ros_ws/devel/include/heart_listener".
Call Stack (most recent call first):
  cmake_install.cmake:83 (INCLUDE)

If I create the directory that it can't find, the install works. However, I would like a permanent fix for this issue. Why is this happening?

My CMakeLists.txt looks like this:

cmake_minimum_required(VERSION 2.8.3)
project(heart_listener)
find_package(catkin REQUIRED COMPONENTS roscpp std_msgs genmsg)
generate_messages(DEPENDENCIES std_msgs)
catkin_package(CATKIN_DEPENDS std_msgs roscpp)
include_directories(include ${catkin_INCLUDE_DIRS})
add_executable(heart_listener_node src/heart_listener.cpp)
add_dependencies(heart_listener_node std_msgs_gencpp)
target_link_libraries(heart_listener_node ${catkin_LIBRARIES})

My ROS workspace looks like this:

~/ros_ws/
-build    
-devel
-install
-src
--HeartBeat
---heart_listener
----msg
----src
----Package.xml
----CMakeLists.txt
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-05-12 13:53:33 -0600

duffany1 gravatar image

The problem was that I wasn't using any custom messages for my project. I needed to remove generate_messages(DEPENDENCIES std_msgs) from CMakeLists.txt.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-11 11:54:54 -0600

Seen: 2,850 times

Last updated: May 12 '13