Rank: 496963 based on 0 downloads (last 30 days) and 0 file submitted
photo

Tim

E-mail
Company/University
University of Toronto

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Tim View all
Updated File Comments Rating
12 Mar 2012 Kinect Matlab Microsoft Kinect, OpenNI wrapper, Skeleton, Depth Author: Dirk-Jan Kroon

Update to my previous post, I was eventually able to get this software to compile and run. I had to do three main things to make this work on a 64-bit version of Matlab in OS X Lion:

0. Install universal (32/64 bit) versions of Open NI libraries.

1. Provide the explicit location of the Open NI libraries to mex.

2. Tell mex to not downgraded the MX library to 32-bit

To accomplish #1 and #2 above, I made the following changes in the compile_cpp_files script:

a. OpenNiPathInclude='/usr/include/ni/';

b. OpenNiPathLib='/usr/lib';

c. mex('-v',['-DMX_COMPAT_32_OFF -L' OpenNiPathLib],'/usr/lib/libOpenNI.dylib',['-I' OpenNiPathInclude],Filename);

After that, everything just ran fine.

06 Mar 2012 Kinect Matlab Microsoft Kinect, OpenNI wrapper, Skeleton, Depth Author: Dirk-Jan Kroon

Having trouble with the 'compile_cpp_files' step. I'm using Mac OS X 10.7.3 with Matlab R2011b (64-bit but there's no other option for Mac I think) and Xcode 4.3. I've successfully installed all the Open NI stuff. The trouble comes when mex tries to link against Open NI:

-> gcc -O -Wl,-twolevel_namespace -undefined error -arch x86_64 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5 -bundle -Wl,-exported_symbols_list,/Applications/MATLAB_R2011b.app/extern/lib/maci64/mexFunction.map -o "mxNiChangeDepthViewPoint.mexmaci64" mxNiChangeDepthViewPoint.o -L/usr/lib -lOpenNI -L/Applications/MATLAB_R2011b.app/bin/maci64 -lmx -lmex -lmat -lstdc++

ld: library not found for -lOpenNI
collect2: ld returned 1 exit status

The Open NI library is located in /usr/lib (and you can see I've provided this path to mex) and it's called libOpenNI.dylib. Does anybody know if I need to do something special because it's a dynamic library? By the way, with Xcode 4.3 I had to tell mexopts.sh where the SDKs where because they are not in the usual old place anymore.

thanks in advance for any help

T

Contact us