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

Missing GLUT framework from OS X Bundle #14

Open
dfeeuh opened this issue Oct 4, 2017 · 0 comments
Open

Missing GLUT framework from OS X Bundle #14

dfeeuh opened this issue Oct 4, 2017 · 0 comments

Comments

@dfeeuh
Copy link

dfeeuh commented Oct 4, 2017

Hi there

Thanks for the work on this, really appreciated. I've been trying to build a simple example using Leap Motion outside of the openFrameworks directory structure and worked all the way back to find that it (ofxLeapMotion) requires the GLUT framework. I eventually managed to fix this by adding the following to configApple.cmake:

ADD_CUSTOM_COMMAND(TARGET ${APP_NAME}
POST_BUILD
COMMAND rsync -av --exclude=Headers ${LIB_GLUT} ${PROJECT_SOURCE_DIR}/bin/${APP_NAME}.app/Contents/Frameworks
COMMENT "Custom command: Copying ${LIB_GLUT} to output App Frameworks directory"
)

GLUT is also used by the 3DPrimitivesExample, so built that externally as well. I thought I'd test it by stashing the above change, but got the following cryptic error:

dyld: Library not loaded: @rpath/libopenFrameworksShared.dylib
Referenced from: /Users/davidfee1/myprojects/ofTest/3DPrimitivesExample/bin/3DPrimitivesExample.app/Contents/MacOS/./3DPrimitivesExample
Reason: image not found
Abort trap: 6

Unstashing the changes fixes it and everything runs fine.
Just wondering if you'd encountered this and if there was any better workaround?

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

1 participant