building this patch on the mac is real simple with some tiny changes:
1. download a clean copy of the celestia 1.4.1 source
2. copy the patch files into the celestia 1.4.1 directory; but do not replace any of the folders! copy the contents of the folders in the patch to the matching folder in the 1.4.1 release. if there are sub-folders in the patch, open the subfolders and copy the contents to the matching subfolder in the 1.4.1 source. Some folders have no counterparts so just move those over.
3. install the OpenAL framwork.
from here, you can download another patch to fix the mac build from here.
http://zenof.com/downloads/celestia_1.4 ... h2_mac.zip
and apply it to vincent's patch2 and follow the directions in the readme. (just replace the celestia.xcodeproj file and the celestiacore.h/.cpp files and you should be good to go.)
otherwise if you're using an older version of xcode you can follow along with these steps.
Vincent, I #ifdefed the code so that you can incorporate the changes to your patch.
4. Add the OpenAL framework to the celestia.xcodeproj
to do that A. select Frameworks->Linked Frameworks in the file list.
right click/or control click for you one button mouse users
select Add->Existing Frameworks.... and then navigate to /Library/Frameworks/ and select the OpenAL framework from that directory
5. open the file celestiacore.h, change lines
35 &
36 from
#include <Al/al.h>
#include <Al/alut.h>
to
#ifndef MACOSX
#include <Al/al.h>
#include <Al/alut.h>
#else
#include <OpenAL/al.h>
#include <OpenAL/alut.h>
#endif
6. now open the celestiacore.cpp file and goto line
4548.
change
alutLoadWAVFile((ALbyte*)fullname.c_str(),&fmt,&data,&size,&freq,&lp);
to
#ifndef MACOSX
ALboolean lp;
alutLoadWAVFile((ALbyte*)fullname.c_str(),&fmt,&data,&size,&freq,&lp);
#else
alutLoadWAVFile((ALbyte*)fullname.c_str(),&fmt,&data,&size,&freq);
#endif
delete[\b] line [b]4545 (it's part of the ifdef now in case Vincent wants to add this change to his patch.)