OSX 10.11 openni_camera make error indigo
I recently install ros in my laptop with desktop with desktop_full mode. After awhile, I realized that I don't have openni_launch I need for kinect camera. So I'm following this step to install the openni_launch this answer
Everything runs fine, except for the last step, I got a problem like this:
Felixs-MacBook-Pro:openni_ws FelixJonathan$ catkin_make install
Base path: /Users/FelixJonathan/openni_ws
Source space: /Users/FelixJonathan/openni_ws/src
Build space: /Users/FelixJonathan/openni_ws/build
Devel space: /Users/FelixJonathan/openni_ws/devel
Install space: /Users/FelixJonathan/openni_ws/install
####
#### Running command: "make cmake_check_build_system" in "/Users/FelixJonathan/openni_ws/build"
####
####
#### Running command: "make install -j4 -l4" in "/Users/FelixJonathan/openni_ws/build"
####
[ 5%] Built target openni_camera_gencfg
[ 11%] Linking CXX shared library /Users/FelixJonathan/openni_ws/devel/lib/libopenni_driver.dylib
ld: library not found for -lOpenNI
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/FelixJonathan/openni_ws/devel/lib/libopenni_driver.dylib] Error 1
make[1]: *** [openni_camera/CMakeFiles/openni_driver.dir/all] Error 2
make: *** [all] Error 2
Invoking "make install -j4 -l4" failed
My openni installed from brew, with brew info openni result:
homebrew/science/openni: stable 1.5.7.10, devel 1.5.8.5, HEAD
http://www.openni.org/
/usr/local/Cellar/openni/1.5.7.10 (1604 files, 32M) *
Built from source
From: https://github.com/Homebrew/homebrew-science/blob/master/openni.rb
==> Dependencies
Build: automake ✔, libtool ✔, doxygen ✔
Required: libusb ✔
==> Options
--universal
Build a universal binary
--devel
Install development version 1.5.8.5
--HEAD
Install HEAD version
Every dependency seems to already been satisfied:
rosdep install --from-paths ./src --ignore-src -y
#All required rosdeps installed successfully