Openni rosmake failing on OSX
Edited to add: I see that I need to install the original branch of ni, not the master, so I've done that now. MacPorts won't install libusb-devel for me, so that's the latest problem.
OS X 10.6.6 Snow Leopard. openni from https://github.com/ros-pkg-git/ni.git as in the wiki.
rosmake --pre-clean openni --rosdep-install
This results in an error (I've replaced the actual path with ~):
[ rosmake ] rosdep successfully installed all system dependencies
[rosmake-0] Starting >>> openni [ make clean ]
[rosmake-0] Finished <<< openni [PASS] [ 0.06 seconds ]
[ rosmake ] Starting >>> tools/rospack
[ rosmake ] Finished <<< tools/rospack
[rosmake-0] Starting >>> openni [ make ]
[ rosmake ] All 19 linespenni: 0.7 sec ] [ 1 Active 0/1 Complete ]
{-------------------------------------------------------------------------------
### Patching the main Makefile for OpenNI...
~/ros/ni/openni
### Patching the output library for OpenNI...
~/ros/ni/openni
### Patching the output library for all library Modules...
~/ros/ni/openni
### Patching the output location for all samples...
~/ros/ni/openni
### Patching the output location for all tools...
~/ros/ni/openni
### Patching the location of modules.xml...
~/ros/ni/openni
### Patching the location of SamplesConfig.xml...
~/ros/ni/openni
cd build/openni/Platform/Linux-x86/Build && make core samples && cd -
make -C OpenNI
make[2]: *** libnCFLAGS+=-O3: Is a directory. Stop.
make[1]: *** [OpenNI] Error 2
Some troubleshooting: Obviously something is not being escaped properly and the wrong things are being interpreted as directory names. I find two cases where libnCFLAGS+=-O3 and also -msse2nBIN_DIR= are being created as subdirs within ~/ros/ni/openni/build/openni/Platform/Linux-x86/Build/OpenNI/:
- pre—clean (which also generates similar errors as above)
- the last cited command in the error output: cd build/openni/Platform/Linux-x86/Build && make core samples && cd -
In both cases the -msse... dir also replicates the path /User/username/ros/ni/openni/
This gets beyond my capabilities, but it looks to me like make is having the problem in both cases. Any help?