Could NOT find openni [closed]
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})
Have You got Openni libraries installed? `sudo apt-get install ros-groovy-openni-camera ros-groovy-openni-launch`. Not sure, but `libopenni-dev openni-dev` **might** be required either. EDIT: `dpkg -L ros-groovy-openni-camera` reports, that driver Openni driver is includes, so... that should work.