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

trouble creating the example project file on osx #4

Open
kylemcdonald opened this issue Jan 10, 2013 · 1 comment
Open

trouble creating the example project file on osx #4

kylemcdonald opened this issue Jan 10, 2013 · 1 comment

Comments

@kylemcdonald
Copy link

i don't think the project generator knows how to handle dylibs, so i built a project by hand starting with emptyExample.

i added everything in libs/ and src/ to the project. this automatically adds the source to the compile stage, and adds the dylibs to the linking stage. then i manually add a copy files stage that copies all the dylibs so they're adjacent to the compiled app itself (inside Contents/MacOS/). the build succeeds but when i run the app it says:

dyld: Library not loaded: ../../../Bin/Release/libXnVCNITE_1_4_1.dylib
  Referenced from: /Users/kyle/Documents/openFrameworks/addons/ofxOpenNI2/example/bin/emptyExampleDebug.app/Contents/MacOS/emptyExampleDebug

which i'm assuming means it can't find any of the dylibs. i tried a few places for Bin/Release but i'm not really sure where it's referring to.

would it be better to put all the dylibs in /usr/lib/ (like libusb) or is there some other approach i should take?

or is ofxOpenNI2 out of date relative to ofxOpenNI now?

@arturoc
Copy link
Owner

arturoc commented Jan 14, 2013

i think you need to use:

install_name_tool -change ../../../Bin/Release/libXnVCNITE_1_4_1.dylib ./libXnVCNITE_1_4_1.dylib

or whatever path the libraries will be in the bundle.

i haven't updated this in a while though, not sure what's the state of ofxOpenNI. as @elliotwoods suggests in another issue there's already openni 2.0 so probably we should move this addon to use that

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

2 participants