Hi, Here's my old patch to include local alut.h into SimGear. http://macflightgear.svn.sourceforge.net/viewvc/macflightgear/trunk/patches/SimGear-0.3-cvs-20061203-MacOSX.diff?revision=168&view=markup
This will place alut.h inside SimGear. (Not inside OpenAL.framework) You can modify this patch to include your ALUT header. I also want to add some tips on building flightgear on macs. 1) avoid using -O2, -O3, or -O3 with gcc 4.0 (comes with Xcode 3.1.x). It will cause flightgear segfault. 2) modify OpenAL/alc.h (and alut.h) for avoiding compiler error when using gcc 4.2. The key is changing both ALvoid and ALCvoid to void if it is the only argument in a prototype declaration. I don't know what is the best to avoid this problem, but for a binary package, I don't want to include redundant framework. That's why I locally have alut.h instead of building ALUT.framework. About ALUT alternatives, I really want to have one since it will save many fg developers on Macs. I don't know what is better, though. Best, ----- Tatsuhiro Nishioka On Oct 20, 2008, at 6:44 PM, James Turner <[EMAIL PROTECTED]> wrote: >> >> > > Removing ALUT would be a pain. I have one fix - I used the freealut > sources to make a custom ALUT.framework, which works pretty well. I > have to make some extra Simgear hacks to look for alut.h in <ALUT/ > alut.h> instead of <OpenAL/alut.h>, however. > > Tat (who builds the macflightgear.org releases) uses a different > solution - he just replaces the alut.h in his OpenAL framework with > the alut.h from the freealut distribution. Both ways work, and neither > has any particular advantage or disadvantage over the other. > > > I can send you my framework and simgear diffs if you like, and you can > try Tat's approach yourself straight away (I think) - since you have > already grabbed the freealut sources. > > And yes, it's all a bit of a mess. > > Regards, > James ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel