Compile and Install Growl 1.3 via XCode 4.3 on Lion

Posted by clsung on Friday, February 17, 2012

Growl notifier has been updated to 1.3.x last year, and it also became a paid software. Since it’s open-sourced, so I decided to build it myself. The steps are quite simple, just follow the documentation you will be fine. Just be sure you have mercurial (hg) command line tools.

A few things (or say, patches) are required to be made, some errors like ‘No newline at end of file’ are easy. I just post my patch which do some modifications here, please be noted that this may only apply to today’s Growl revision (hgRevision: 5809) with XCode 4.3 on Lion.

Core/Source/GroupController.m:

diff -r 193986cc6493 Core/Source/GroupController.m
--- a/Core/Source/GroupController.m     Mon Nov 07 10:48:13 2011 -0600
+++ b/Core/Source/GroupController.m     Fri Feb 17 16:46:14 2012 +0800
@@ -32,6 +32,7 @@
 {
     [groupID release];
     [groupArray release];
+    [super dealloc];
 }
 
 -(NSComparisonResult)compare:(id)obj2

Core/Source/GrowlMenu.h:

diff -r 193986cc6493 Core/Source/GrowlMenu.h
--- a/Core/Source/GrowlMenu.h   Mon Nov 07 10:48:13 2011 -0600
+++ b/Core/Source/GrowlMenu.h   Fri Feb 17 16:46:14 2012 +0800
@@ -32,8 +32,8 @@
 - (void)stopPulse;
 - (void)pulseStatusItem;
 
-- (void) openGrowlPreferences:(id)sender;
-- (void) startStopGrowl:(id)sender;
+- (IBAction) openGrowlPreferences:(id)sender;
+- (IBAction) startStopGrowl:(id)sender;
 - (NSMenu *) createMenu:(BOOL)forDock;
 - (void) setImage:(NSNumber*)state;
 - (BOOL) validateMenuItem:(NSMenuItem *)item;

After build success, open finder and drag the ‘Growl.app’ into Applications folder, run it.