#4 Current SVN and Tiger

open
nobody
None
5
2009-06-30
2009-06-30
Terje Bless
No

Just for future reference, in order to make current SVN trunk build (and run) on Mac OS X 10.4 Tiger, I had to make the following changes:

1. Set MACOSX_DEPLOYMENT_TARGET = 10.4;
2. Set active SDK to 10.4 (due to libiconv version incompatibility otherwise).
3. In plugins/bundle_loader/bundle_loader_plugin.mm on line 50, change:
url = CFURLCreateWithFileSystemPath(0, bundle_path, 0, 0);
…to…
url = CFURLCreateWithFileSystemPath(0, bundle_path, kCFURLPOSIXPathStyle, 0);
…since the datatype of the third argument has changed from 10.4 to 10.5.
4. In fe-aqua/MenuMaker.mm, around line 455, change:
NSUInteger length;
…to…
int length;
…since NSInteger/NSUInteger are new as of Leopard.
5. In fe-aqua/MenuMaker.mm, around line 456, change:
title = [title stringByReplacingOccurrencesOfString:@"_" withString:@""];
…to…
NSMutableString *mTitle = [title mutableCopy];
[mTitle replaceOccurrencesOfString:@"_" withString:@"" options:NSCaseInsensitiveSearch range:(NSRange){0,[mTitle length]}];
title = [NSString stringWithString: [mTitle autorelease]];
…since stringByReplacingOccurrencesOfString is new as of Leopard.

With these changes it built fine, using XCode 3.1.3 on Mac OS X 10.5.6, and tested fine on Mac OS X 10.4.x (probably latest, but didn't check).

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks