Problem libOpenni2 for hydro installation with homebrew
Hi everybody,
I try to install ROS Hydro on my mac with homebrew following this tutorial http://wiki.ros.org/hydro/Installatio... And I face a problem. For the installation of openni2_camera, I have the following error.
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.28")
-- checking for module 'libopenni2'
-- package 'libopenni2' not found
CMake Error at /opt/local/share/cmake-3.0/Modules/FindPkgConfig.cmake:341 (message):
A required package was not found
Call Stack (most recent call first):
/opt/local/share/cmake-3.0/Modules/FindPkgConfig.cmake:395 (_pkg_check_modules_internal)
CMakeLists.txt:9 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
Of course I installed openni2 via hombrew but it seems like it doesn't create any libopenni2.pc which is a problem.
Any ideas about it ?
Thank you.
UPDATE
This is the result of brew info openni2
openni2: stable 2.2.0.33, HEAD
http://structure.io/openni
/usr/local/Cellar/openni2/2.2.0.33 (149 files, 6,8M) *
Built from source
From: https://github.com/homebrew/homebrew-science/blob/master/openni2.rb
==> Dependencies
Required: libusb ✔
==> Options
--universal
Build a universal binary
--with-docs
Build documentation using javadoc (might fail with Java 1.8)
--HEAD
Install HEAD version
==> Caveats
Add the recommended variables to your dotfiles.
* On Bash, add them to `~/.bash_profile`.
* On Zsh, add them to `~/.zprofile` instead.
export OPENNI2_INCLUDE=/usr/local/include/ni2
export OPENNI2_REDIST=/usr/local/lib/ni2