[Ohrrpgce] FreeBASIC Mac OS X build

Ralph Versteegen teeemcee at gmail.com
Fri Oct 8 10:08:18 PDT 2010


On 9 October 2010 04:34, James Paige <Bob at hamsterrepublic.com> wrote:
> On Fri, Oct 08, 2010 at 04:37:18PM +1300, Ralph Versteegen wrote:
>> On 8 October 2010 04:43, James Paige <Bob at hamsterrepublic.com> wrote:
>> > On Fri, Oct 08, 2010 at 01:39:54AM +1300, Ralph Versteegen wrote:
>> >> On 6 October 2010 19:34, Ralph Versteegen <teeemcee at gmail.com> wrote:
>> >> OK James, I've sorted out .app bundling. Now I'm just impatiently
>> >> waiting to hear whether you can compile, and commence nightly builds
>> >> :)
>> >
>> > Unfortunately I am still getting:
>> >
>> > fbc -lang deprecated -m verprint verprint.bas -g
>> > dyld: Library not loaded: /usr/local/lib/libintl.3.dylib
>> >  Referenced from: /Users/james/misc/fbc-mac/bin/darwin/as
>> >  Reason: image not found
>> > make[1]: *** [verprint] Error 1
>>
>> What the devil?! I'm sure that I checked the new as didn't depend on
>> libintl. Are you sure you downloaded the new
>> fbc-mac-20101006-2.tar.bz2? bin/darwin/as should be 1463572 bytes.
>> That appears to be the version I most recently built.
>
> Oh! I had not realized that you had uploaded that file! *testing now*
> Woo! Works perfectly!

Great!

I was thinking of putting up another build, identical to the first but
with .app bundles so the frameworks are included, but now I'll pass.

>> > I also tried symlinking from ~/misc/fbc-mac/bin/darwin/as -> my system
>> > as at /usr/bin/as but that caused different and interesting freakouts
>>
>> That won't work, as not only is it a cross compiling build to linux,
>> but it's actually a completely different program: apple and gnu gas
>> forked something like 20 years ago.
>
> 20 years? dang!
> Yeah, I figured it wouldn't work, but sometimes I like trying stuff like
> that because it can provide new and interesting error messages :)

Well, I don't really know how long ago. I can't find any information
about it. I am assuming NeXT forked binutils some time after it was
formed in 1985, as NeXTSTEP has always used a macho kernel and mach-o
executable files. I know for certain that binutils/cctools were
separate 10 years ago. But they didn't fork gcc.

>> >> I also noticed that temporary directories for games in
>> >> .ohrrpgce are being cleaned out but not deleted (which I think happens
>> >> on all platforms).
>> >
>> > On my box, they only get left behind if game crashes. If it exists
>> > without a crash, they do get cleaned up and removed okay.
>>
>> Well, I hadn't had any crashes on the Mac yet. I know that lots of
>> empty directories get left behind on Windows, can't actually remember
>> what happens under Linux.
>
> I was thinking about a cleanup scheme.
>
> Maybe a running game.exe should update a timestamp file in the playing
> temporary file at some interval (30 minutes?)
>
> Then when a game.exe instance closes, after cleaning up its own files,
> it could safely go and delete any temp files much older than that
> interval
>
> ... although now that I type this, I suddenly realize that scheme will
> fail messily in certain situations. Suppose you run 2 instances of
> game.exe at the same time. Then you hibernate your computer for a few
> hours. Then you wake it up and close one game.exe and the other will get
> its temp files killed even though it is still running.
>
> Bleh.

Why did we decide against recording the PID of the process and
deleting the directory if it's no longer running?

> ---
> James



More information about the Ohrrpgce mailing list