ofxNI2
ofxNI2 copied to clipboard
openNI2.2.0.33
Hi,
I´m trying to upgrade the openNI libraries to 2.2.0.33beta. I managed to relink dlybs and compile but kinect is not being found. Can you help me where to look next? Maybe FreenectDriver needs to be updated?
Best, P.
https://github.com/pelayomendez/ofxNI2/tree/feature-openNI2.2.0.33
Hi,
Unfortunately, I can't test because I don't have kinect for now. But, I think you can build FreenectDriver following step:
$ brew install apple-gcc42
$ brew install libusb --universal --no-runtime-logging
$ git clone [email protected]:OpenKinect/libfreenect.git
$ cd libfreenect/
$ mkdir build
$ cd build/
$ cmake -DCMAKE_C_COMPILER=/usr/local/bin/gcc-4.2 -DCMAKE_CXX_COMPILER=/usr/local/bin/g++-4.2 -DCMAKE_OSX_ARCHITECTURES=i386 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" -DCMAKE_CXX_FLAGS=-O3 -DBUILD_EXAMPLES=0 -DBUILD_FAKENECT=0 -DBUILD_OPENNI2_DRIVER=1 ..
$ make
$ cd lib/OpenNI2-FreenectDriver/
$ lipo -info ./libFreenectDriver.0.4.2.dylib
>> Non-fat file: ./libFreenectDriver.0.4.2.dylib is architecture: i386
$ otool -L ./libFreenectDriver.0.4.2.dylib
>> ./libFreenectDriver.0.4.2.dylib:
/src/libfreenect/build/lib/OpenNI2-FreenectDriver/libFreenectDriver.0.4.dylib (compatibility version 0.4.0, current version 0.4.2)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/usr/local/lib/libusb-1.0.0.dylib (compatibility version 2.0.0, current version 2.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
$ install_name_tool -id @executable_path/OpenNI2/Drivers/libFreenectDriver.dylib ./libFreenectDriver.0.4.2.dylib
$ mv libFreenectDriver.0.4.2.dylib libFreenectDriver.dylib
$ otool -L ./libFreenectDriver.dylib
>> ./libFreenectDriver.dylib:
@executable_path/OpenNI2/Drivers/libFreenectDriver.dylib (compatibility version 0.4.0, current version 0.4.2)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/usr/local/lib/libusb-1.0.0.dylib (compatibility version 2.0.0, current version 2.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)
anyway, I will check tommorow.
thanks,
It worked! The kinect is now found. Sorry. I couldn't try your answer until today. Do you think you can confirm the update on the libraries work for you too?
Thanks a lot.
I guess this is solved? I confirm 2.2.0.33beta works with windows.