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

Revision history [back]

click to hide/show revision 1
initial version

catkin_package() defines the variable CATKIN_PACKAGE_BIN_DESTINATION and must therefore be called before install(). In your case the variable has not been set and therefore the destination is empty.

Besides that your CMakeLists.txt contains several other flaws: * the include directories are ordered badly, first add your local stuff and then global things, else header from other workspaces will overlay your header * your include dir should not point to src/my_package_uvc but src instead, and then you should include the header with my_package_uvc/myfile.h. * the argument to catkin_package() is CATKIN_DEPENDS not CATKIN-DEPENDS

catkin_package() defines the variable CATKIN_PACKAGE_BIN_DESTINATION and must therefore be called before install(). In your case the variable has not been set and therefore the destination is empty.

Besides that your CMakeLists.txt contains several other flaws: * flaws:

  • the include directories are ordered badly, first add your local stuff and then global things, else header from other workspaces will overlay your header * header

  • your include dir should not point to src/my_package_uvc but src instead, and then you should include the header with my_package_uvc/myfile.h. * .

  • the argument to catkin_package() is CATKIN_DEPENDS not CATKIN-DEPENDS