When I added -install_name <something> to our LDFLAGS, it complained that the option was in there twice. So I assumed CMAKE was putting it in. Maybe I should look to see if we're doing it somewhere.
andy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martins Innus Sent: Tuesday, May 27, 2008 2:24 PM To: OpenSceneGraph Users Subject: Re: [osg-users] mac -install_name Yeah, thats what I do, but I only have a couple files in my case I need to worry about. Although I just tried adding: "-install_name @executable_path/../Frameworks/file.dylib" to LDFLAGS and that seemed to work. I do this in a Makefile project and use the resulting dylib in a larger XCode project. Then i didn't have to do the install_name_tool voodoo. Martins Andy Skinner wrote: > Thanks, but that's what I'm trying to avoid. Don't you have to do the -id > version for every file (changing its own name) and the -change version for > every dependency in every file? I'm hoping I can do something in the link > commands and avoid having to patch up the files. > > andy > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martins Innus > Sent: Tuesday, May 27, 2008 1:03 PM > To: OpenSceneGraph Users > Subject: Re: [osg-users] mac -install_name > > Andy, > > I use "install_name_tool -change ....." and "install_name_tool -id > ..." > in a script as a Run Script Build phase. I don't know if you can do it > in XCode directly. Seems to work. Let me know if you need more info > and I'll dig up the exact script. > > Martins > > Andy Skinner wrote: >> I'll admit to being a little past the limit of my knowledge here ... >> >> >> >> We would like to specify the -install_name arg with which we link the >> shared libraries. I think it is because we don't want the paths where >> these things were built to be in the files. We're trying to replace the >> value with something like: "@load_path/<filename>". >> >> >> >> Is there a way to specify the -install_name argument on the Mac? >> >> >> >> I tried setting it in our linker flags, then saw it was in there >> already, and I think it is added by the OSG build. >> >> >> >> I have looked at the gmane archive, and found some mention of >> -install_name, but nothing I can see how to use. >> >> >> >> thanks >> >> andy >> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 _______________________________________________ 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

