Bruce,
Yeah, thanks, thats what I've been doing in my own projects and it works fine. The problem is, when I do this from within the osg XCode project for osgviewer, I get the following:

PBXCp build/bin/Release/osgviewer.app/Contents/Frameworks/osg.framework build/bin/Release/osg.framework
cd /util/src/osgsvn64
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /util/src/osgsvn64/build/bin/Release/osg.framework /util/src/osgsvn64/build/bin/Release/osgviewer.app/Contents/Frameworks

Note that its trying to copy from build/bin instead of build/lib which fails. Yet when I choose "Get Info" or "Show in Finder" for those frameworks, it shows them correctly as being in lib. Seems like its using the BUILT_PRODUCTS_DIR from the application instead of from the framework.

Good to know that this should work at least, just need to find what the hangup is on this end.

Martins

On 4/24/10 11:15 AM, Bruce Wheaton wrote:
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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to