![]() |
|
Adding frameworks to a framework - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: Tools & Technology (/forum-10.html) +--- Thread: Adding frameworks to a framework (/thread-4246.html) |
Adding frameworks to a framework - vbuser1338 - May 24, 2006 04:06 PM I am building the CEGUI framework which includes the PCRE framework. I do not want to have to include the PCRE framework when I include the CEGUI framework. So I want to build the PCRE framework into the frameworks directory of the CEGUI framework. So I build the PCRE framework with the Installation Path set to @executable_path/Frameworks. I know for application bundles it should be @executable_path/../Frameworks, but is the way I am doing it correct for building into another framework? I then create a copy files build phase in the CEGUI framework to copy the PCRE framework into the frameworks directory of CEGUI. This compiles fine and copies it into the CEGUI framework. The problem is when I use the CEGUI framework in a Carbon bundle it complains to me and says: Code: ld: warning can't open dynamic library: @executable_path/Frameworks/PCRE.framework/Versions/A/PCRE (checking for undefined symbols may be affected) (No such file or directory, errno = 2)Why is it not finding it within the CEGUI framework? Thanks, vbuser Adding frameworks to a framework - OneSadCookie - May 24, 2006 05:10 PM because it's looking next to the CEGUI framework. That's probably fine (just move it), but using @executable_path/../Frameworks/CEGui.framework/Frameworks would probably work too Adding frameworks to a framework - vbuser1338 - May 24, 2006 06:14 PM I'm sorry I don't quite understand what you mean. Do you mean the CEGUI framework is looking for it at the wrong place? Because I have the CEGUI framework set up like this: Code: CEGUI.frameworkUsing @executable_path/Frameworks for the PCRE install path should make the CEGUI framework search in the directory with the executable and the Frameworks directory should it not? Adding frameworks to a framework - OneSadCookie - May 24, 2006 06:37 PM @executable_path refers to the executable loading the framework. That means it's looking for PCRE.framework in the same folder as CEGUI.framework. Adding frameworks to a framework - vbuser1338 - May 25, 2006 04:02 AM Ok thanks, I was thinking it was searching in the CEGUI framework because it was the one originally loading the framework. |