[Ohrrpgce] FreeBASIC Mac OS X build

James Paige Bob at HamsterRepublic.com
Fri Oct 8 08:34:28 PDT 2010


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!

> > 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 :)

> >> 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.

---
James



More information about the Ohrrpgce mailing list