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

Cmake Error from openni2_camera [closed]

asked 2015-06-22 22:53:48 -0500

psprox96 gravatar image

updated 2015-06-23 03:15:38 -0500

Hi all.

Anybody knows how can I correct these?

   CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  openni2_camera/CMakeLists.txt:9 (pkg_check_modules)


CMake Error at openni2_camera/CMakeLists.txt:26 (message):
  message called with incorrect number of arguments

Can't get past this one no matter what.

Thanks for any help.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by psprox96
close date 2015-07-14 00:11:51.853946

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-06-23 03:54:01 -0500

Humpelstilzchen gravatar image

updated 2015-06-23 03:55:53 -0500

If your Distribution does not have a OpenNi2-package, you need to build OpenNi2 from source and add a pkgconfig-file, e.g. /usr/local/lib/pkgconfig/openni2.pc:

prefix=/usr/local/OpenNI2
includedir=${prefix}/Include
libdir=${prefix}/Bin/Arm-Release

Name: openni2
Description: OpenNI2
Version: 2.2.0.33
Cflags: -I${includedir}
Libs: -L${libdir} -lOpenNI2
edit flag offensive delete link more

Comments

1

Thanks! It works! I installed:

sudo apt-get install libopenni2-dev libopenni2-0

And corrected the cmakelists.txt line 26 to: message ("${PC_OPENNI2_LIBRARY_DIRS}")

psprox96 gravatar image psprox96  ( 2015-06-23 20:31:40 -0500 )edit

Alternatively, you can run

rosdep install --from-paths . --ignore-src --rosdistro <your distro>

to automatically install required dependencies

Rufus gravatar image Rufus  ( 2021-03-17 22:21:13 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-06-22 22:53:48 -0500

Seen: 1,014 times

Last updated: Jun 23 '15