Martins,

I was under the impression that the projects were 'partial' in this way so you had an option of installing OSG frameworks.

What I do, to make standard, distributable examples, is:

Add a build stage to the target you're building, a 'Copy Files' stage. Set the destination to 'Frameworks'.

Go up to products and pick it, in the top right contents pane, you should see all the Frameworks.

Drag the OpenThreads, OSG, OSGViewer, OSGDB and any other frameworks you need into your copy stage - make sure you have OpenThreads plus all the frameworks the targets you linked to.

Now make a Copy Files stage set to 'Plugins'. Go and find all the osgdb_xxx products. Drag any of these you might need into that stage. Be aware that some of them, if used in an OSG file, may need additional frameworks, even if the app didn't.

Now build the example app. You'll end up with all the libraries you need being copied into it.

Bruce

On Apr 23, 2010, at 11:12 AM, Martins Innus wrote:

Hello,

I've been using the frameworks generated by the latest CMake updates in my own projects under osx, and it works great. However it doesn't seem like its working for the osg provided applications. I build the frameworks and application bundles using svn from yesterday. Then when i run osgviewer i get:

dyld: Library not loaded: @executable_path/../Frameworks/ OpenThreads.framework/Versions/2.5.0/OpenThreads Referenced from: /util/osg/svn64/bin/osgconv.app/Contents/MacOS/ osgconv

Same thing with osgconv, etc

The path appears correct, but the frameworks are not being copied into the application bundle during the install stage i guess.

In my own project, I just add a "copy Files" build stage to copy the frameworks to the application bundle. I'm not sure how to do that under CMake though for OSG itself.

Has any body else run into this or is there something misconfigured on my machine?

Thanks

Martins
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to