Mac newbie question about Frameworks
by Thomas Huehn · in Torque Game Engine · 10/20/2008 (2:26 am) · 8 replies
I'am using Cg in my TGE Project and added the Cg Framework to my project. I also included it to the "app" so it's located in .app/Contents/Frameworks/.
I guess when it's included I don't need to worry about other Macs must have Cg installed and it use the libary which is included.
Since I'am not sure about it, my question is: Is this right ?
I guess when it's included I don't need to worry about other Macs must have Cg installed and it use the libary which is included.
Since I'am not sure about it, my question is: Is this right ?
About the author
Contact: torque [AT] ohmtal [DOT] com
#2
@executable_path/../Library/Frameworks/Cg.framework/Cg (compatibility version 0.0.0, current version 0.0.0)
I don't know why it displays version 0.0.0 but I hope it will work fine.
10/21/2008 (7:33 am)
Finally i found otool :) @executable_path/../Library/Frameworks/Cg.framework/Cg (compatibility version 0.0.0, current version 0.0.0)
I don't know why it displays version 0.0.0 but I hope it will work fine.
#3
@executable_path/../Frameworks/Cg.framework/Cg
I try to fix it since hours but have no idea how.
10/21/2008 (5:18 pm)
Unfortually I missread the line and it should be:@executable_path/../Frameworks/Cg.framework/Cg
I try to fix it since hours but have no idea how.
#4
Gary (-;
10/21/2008 (5:45 pm)
Otool's a lot of work. If you're using XCode, why not just follow the instructions on apple's developer site that I linked?Gary (-;
#5
Gary (-;
10/21/2008 (5:47 pm)
Also, whoever write GG's forums to capitalise the first word of a post should be shot. It's a technical forum where coders pay for the privilege of posting, being able to be specific about case is important :-)Gary (-;
#6
10/21/2008 (6:11 pm)
Gary, i did read it but in the inspector window of the framework i've no option to change the Installation Directory. I used otool to find out where it is looking for.
#7
It's a sad day when someone is too lazy to just press 1 button.
10/21/2008 (6:55 pm)
Quote:Also, whoever write GG's forums to capitalise the first word of a post should be shot. It's a technical forum where coders pay for the privilege of posting, being able to be specific about case is important :-)
It's a sad day when someone is too lazy to just press 1 button.
#8
otool and install_name_tool are my new friends to make sure it's right and to fix the path in a framework where i only have the binary.
10/22/2008 (12:48 pm)
Problem solved, I found a good docu at www.cocoadev.com/index.pl?ApplicationLinkingotool and install_name_tool are my new friends to make sure it's right and to fix the path in a framework where i only have the binary.
Torque Owner Gary "ChunkyKs" Briggs
In long, you need to make sure that your build product knows how to look inside the app bundle for the Cg framework. Apple have some pretty good developer docs. Try this one:
developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingF...
Gary (-;