Cg Toolkit Cg 3.1 Toolkit Documentation
Cg / Topics / mac

Topic

Mac OS X - using Cg on Apple OS X

Abstract

The Cg runtime is available as a framework for Apple OS X versions 10.5 (Leopard) and onwards.

Issues

Apple App Store Deployment

The Apple App store won't accept binaries that include Power PC support. It is necessary to remove the Power PC support from the Cg framework for App Store purposes.

Using the Apple lipo tool manipulating universal files:

1. Check for Cg framework architecture support
$ lipo -i /Library/Frameworks/Cg.framework/Cg
Architectures in the fat file: /Library/Frameworks/Cg.framework/Cg are: ppc7400 i386 x86_64
$
2. Remove the ppc7400 support
$ lipo -remove ppc7400 /Library/Frameworks/Cg.framework/Cg -output Cg
$
3. Validate the result
$ lipo -i Cg
Architectures in the fat file: Cg are: i386 x86_64
$

The resulting Intel-only Cg framework binary ought to be acceptable to the Apple App Store.

See Also

TBD


Cg Toolkit | Cg Toolkit | Download | Release Archive | Profiles | Reference | Books | Discussions |


Cg Topics

cg1_2_runtime_changes
Cg
glut
mac
trace
win64