I am trying to setup this addon I got from git, I follow the instructions, but I get the following error:
dyld: Library not loaded: @executable_path/./…/…/…/data/openni/lib/libOpenNI.dylib
Referenced from: /Users/nardove/Programming/openFrameworks_master/my apps/Kinect/ofxOpenNIExample/bin/emptyExampleDebug.app/Contents/MacOS/emptyExampleDebug
Reason: image not found
sharedlibrary apply-load-rules all
Data Formatters temporarily unavailable, will re-try after a ‘continue’. (Cannot call into the loader at present, it is locked.)
I’ve changed
context.initFromXMLFile() to
context.setupUsingXMLFile();
this gets rid of that error. But I have one remaining error. Has anyone experienced this or knows what it means? Perhaps the "duplicate symbol CreateRainbowPallet() " part below??
thanks
Andrew
ld: warning: directory ‘/Users/robertson/Documents/work/programming/of_preRelease_v0062_osxSL_FAT/apps/my_SL_openFrameworks/openNiExample/…/mac/copy_to_data_path/openni/lib’ following -L not found
ld: warning: directory ‘/Users/robertson/Documents/work/programming/of_preRelease_v0062_osxSL_FAT/apps/my_SL_openFrameworks/openNiExample/…/mac/copy_to_data_path/openni/lib’ following -L not found
ld: duplicate symbol CreateRainbowPallet() in /Users/robertson/Documents/work/programming/of_preRelease_v0062_osxSL_FAT/apps/my_SL_openFrameworks/openNiExample/build/opennisample.build/Debug/emptyExample.build/Objects-normal/i386/ofxDepthGenerator-2904E4D848C0F730.o and /Users/robertson/Documents/work/programming/of_preRelease_v0062_osxSL_FAT/apps/my_SL_openFrameworks/openNiExample/build/opennisample.build/Debug/emptyExample.build/Objects-normal/i386/ofxDepthGenerator-2904E4D848C0F730.o
collect2: ld returned 1 exit status
Command /Developer/usr/bin/g+±4.2 failed with exit code 1
follow the instructions that patricio gives above. In particular, once you have bin>data>openni
(containing libs), drag that particular libOpenNI.dylib to the project
make sure you’ve added the appropriate addons
when you errors on ofVec2d etc - change to ofxVec2d
I think I needed ofx3dutils - got folder in my addons, then dragged this into the project so that it gets found. (this may not be necessary)
change context.initFromXMLFile();
to
context.setupUsingXMLFile();
uncomment the draw code:
depth.draw(0,0,640,480);
user.draw();
Hi , I’m getting that error too , I don’t get this part of readme :
“Drag and drop the file: bin/data/openni/lib/libOpenNI.dylib into your project” it means just dropping it and it will be below the project name and above src folder? or it means something else?
thanks
I’m also running into the same error, even though I tried to follow the instructions to the letter. I’ve attached two screen shots showing my file/project setup, is it obvious where I went wrong?