Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openNI2.2.0.33 #8

Open
pelayomendez opened this issue May 8, 2014 · 3 comments
Open

openNI2.2.0.33 #8

pelayomendez opened this issue May 8, 2014 · 3 comments

Comments

@pelayomendez
Copy link

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

@satoruhiga
Copy link
Owner

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,

@pelayomendez
Copy link
Author

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.

@micuat
Copy link
Contributor

micuat commented Apr 28, 2017

I guess this is solved? I confirm 2.2.0.33beta works with windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants