> > On 28.03.2011, at 13:48, Manolo Gouy wrote: > > > I have had an error when compiling the label demo of the Xcode4 > > project (with Xcode 3.2, though). > > The error was an incorrect base SDK. > > Ooops, did I skip that? It needs to be 10.6. > > > I see that Xcode 3 handles without any warning this Xcode 4 project, > > so wonder if it's not possible to have a single project for the two > > Xcode versions. > > Well, Apple offers to save the project file in 3.x or 4.x format, so I = > assume it may be different in future revisions of Xcode4, or support = > features we have not used yet, and may then be unable to load in 3.x = > then. > > But the main reason is that Xcode 4 compiles for 10.6 only (at least out = > of the box), whereas Xcode 3 comes with the 10.5 SDK as well. So if one = > targets SOX 10.5 or even lower, additional downloads of SDKs would be = > required. > > What do you think? > > - Matthias >
SDK 10.6 is mostly a superset of SDK 10.5, and similarly for other versions. Thus with a given SDK you can target earlier OS versions provided you don't call, or do that conditionally, new APIs. This is what is currently done in FLTK 1.3 that can be compiled with SDKs from 10.3 to 10.6, and produces code that runs from 10.3 to 10.6, whatever the SDK used when it was compiled. IMHO, the crucial building parameter is not the SDK but the "Mac OS X deployment target" that forbids a program to load on earlier OS releases. My first impression is that we take on a new burden with the Xcode4 project without much benefit, if, and I can't check it, Xcode4 can read the Xcode3 project. I also realize, though, this burden is rather light. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
