Hi, Am 08.12.10 16:14, schrieb Jean-Sébastien Guay: > I have a few questions about the MacOS X build. I believe now the build > all happens through CMake right? Can I build binaries of OSG that would > support both 32 and 64 bit intel?
yes. Afaik you'll have to target 10.6 as older systems only support 32bit UI-applications. > I guess for this to work, I need all third-party libraries OSG links > with to be also 32+64 bit? yes. > For example I guess I need freetype at least... freetype is part of the system and should be 32+64bit. > The windowing > should be done in the right way for each build, i.e. Cocoa or Carbon > depending on 32 or 64 bit? I'd stick with one backend, namely Cocoa, as it supports 32bit and 64bit out of the box. The carbon backend is deprecated. > And reading images is done through ImageIO, > does this support both 32 and 64 bit? ImageIO supports 32 and 64bit. > In general, say I want to build a library I coded as 32+64 bit, what is > the process? Do I need to build twice with different gcc flags and then > package them into one library, or is it done in a single pass? Can I do > it with straight gcc or do I absolutely need to use XCode? I have no experience with make and universal libs, so I can talk only about Xcode: here's the process easy and transparent, just set the Arch-flags, build your libs/frameworks and done. osg/Cmake has now framework-support, a framework is basically a special folder structure bundling the lib and its headers, wheny you build osg as frameworks you can easily embed them into your application-bundle, so you don't need any installer for your app, just copy the application-bundle to your applications-folder, that's all. HTH, Stephan _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

