Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Could NOT find openni

I am using this code

I am using ROS Groovy on Ubuntu 12.04. When I try to build the code using catkin, I get the error

Could NOT find openni (missing:  OPENNI_INCLUDE_DIRS)

my cMakeList:

cmake_minimum_required(VERSION 2.8.3)
project(mypackage)

find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs kobuki_msgs sensor_msgs cv_bridge image_transport opencv2)
find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)

include_directories(include
  ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS}
)

add_executable(move src/receive.cpp)
add_executable(bump src/hello.cpp)
add_dependencies(move mypackage_generate_messages_cpp)
add_dependencies(bump mypackage_generate_messages_cpp)

 target_link_libraries(move ${catkin_LIBRARIES})
 target_link_libraries(bump ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${PCL_LIBRARIES} ${OPENNI_LIBRARIES})

Could NOT find openni

I am using this code

I am using ROS Groovy on Ubuntu 12.04. When I try to build the code using catkin, I get the error

Could NOT find openni (missing:  OPENNI_INCLUDE_DIRS)

my cMakeList:

cmake_minimum_required(VERSION 2.8.3)
project(mypackage)

find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs kobuki_msgs sensor_msgs cv_bridge image_transport opencv2)
find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)

include_directories(include
  ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS}
)

add_executable(move src/receive.cpp)
add_executable(bump src/hello.cpp)
add_dependencies(move mypackage_generate_messages_cpp)
add_dependencies(bump mypackage_generate_messages_cpp)

 target_link_libraries(move ${catkin_LIBRARIES})
 target_link_libraries(bump ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${PCL_LIBRARIES} ${OPENNI_LIBRARIES})