Could NOT find openni [closed]

asked 2014-02-23 23:25:35 -0500

Safeer gravatar image

updated 2016-10-24 08:35:56 -0500

ngrennan gravatar image

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})
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2018-01-30 22:48:22.541861

Comments

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.

Kamiccolo gravatar image Kamiccolo  ( 2014-02-23 23:54:35 -0500 )edit