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

dyld: Library not loaded #8

Closed
NiccoloGranieri opened this issue Apr 15, 2016 · 1 comment
Closed

dyld: Library not loaded #8

NiccoloGranieri opened this issue Apr 15, 2016 · 1 comment

Comments

@NiccoloGranieri
Copy link
Contributor

I had an issue running the example XCode project, due to the dyld: Library not loaded problem.

I noticed after a while this comment on the ofApp.cpp file:

/* Note on OS X, you must have this in the Run Script Build Phase of your project.
where the first path ../../../addons/ofxLeapMotion2/ is the path to the ofxLeapMotion addon.

cp -f ../../../addons/ofxLeapMotion2/libs/lib/osx/libLeap.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/libLeap.dylib"; install_name_tool -change ./libLeap.dylib @executable_path/libLeap.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME";

If you don't have this you'll see an error in the console: dyld: Library not loaded: @loader_path/libLeap.dylib
*/

My question is, speaking of an XCode project, why is this comment there? Why isn't the line directly implemented in Run Script Build Phase?

If you let me, I could file a Pull Request, and solve the issue!

@genekogan
Copy link
Owner

a PR would be very welcome thanks!

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