May 30, 2005
Anders F Björklund wrote:
> clayasaurus wrote:
> 
>> It wouldn't be too hard for derelict to work on mac osx, would it? You'd just need to add a version(OSX) and then change one file, derelict loader.d, to make use of the macs dynamic loader library which, as far as I can tell, uses the same dlopen, dlclose, and dlsym methods as linux.
> 
> 
> Seems like the new and improved dsource forums won't let me log in...

Humm... I think what's supposed to happen is if you try to login with an existing username, it sends you an email with a new password. Anyway, I put a topic on the derelict forums for you :)

> 
> Here's the patch. (real name for "OSX" is darwin, but Unix is better)
> 
> Paths to be loading on Darwin are:
>     /System/Library/Frameworks/OpenGL.framework/OpenGL
>     /Library/Frameworks/SDL.framework/SDL
> 
> And here is the "dl" library, for Mac OS X versions before Panther:
> http://www.opendarwin.org/projects/dlcompat/
> 
> --anders
> 

neat. very small. so does this mean you got derelict to work on the mac? :)

> 
> ------------------------------------------------------------------------
> 
> Index: DerelictUtil/derelict/util/loader.d
> ===================================================================
> --- DerelictUtil/derelict/util/loader.d	(revision 113)
> +++ DerelictUtil/derelict/util/loader.d	(working copy)
> @@ -6,6 +6,9 @@
>  	import std.string;
>  }
>  +version(DigitalMars)
> +	version(linux)
> +		version = Unix;
>   private alias void* SharedLibHandle;
>  @@ -81,7 +84,7 @@
>  	}
>  	
>  }
> -else version(linux)
> +else version(Unix)
>  {	
>  	extern(C)
>  	{
May 30, 2005
clayasaurus wrote:

> Humm... I think what's supposed to happen is if you try to login with an existing username, it sends you an email with a new password. Anyway, I put a topic on the derelict forums for you :)

Yeah, that is what it *said* that it'd do. Never got any mail, though.

> neat. very small. so does this mean you got derelict to work on the mac? :)

Not really, I didn't feel like hunting through the BAT and BRF files...


Can't see why it wouldn't work, though ? DL works. GL works. SDL works.

--anders
May 30, 2005
Inline:

"Anders F Björklund" <afb@algonet.se> wrote
> Kris wrote:
> > mango examples now have brf file (terrible name <g>). You don't need to create a Mango library to build them ~ the whole thing should compile
and
> > link directly?
>
> Well, that's what I'm doing. Still takes quite a while to compile...

Hmmm; that's unfavourable.


> I ran into a little barrage of "assert(0);" when trying to do it
> from the commandline directly (since I didn't define -version=Posix,
> just the default GDC definition of Unix which is the final word there)

Yeah; I'm wondering what to do about that. Mango uses version('Posix'){}where appropriate, partly because there was no established practice. Is there a concensus between DMD and GDC on this one?



May 30, 2005
Ack; I'm a bit slow today. I just twigged that you don't have the barf files for building Mango libraries, because I failed to add them into the download (thanks to Carlos for pointing that out). You'll find them over here: http://svn.dsource.org/projects/mango/trunk/build/

Hope that will help somewhat.


"Kris" <fu@bar.com> wrote in message news:d7g6vc$4qv$1@digitaldaemon.com...
> Inline:
>
> "Anders F Björklund" <afb@algonet.se> wrote
> > Kris wrote:
> > > mango examples now have brf file (terrible name <g>). You don't need
to
> > > create a Mango library to build them ~ the whole thing should compile
> and
> > > link directly?
> >
> > Well, that's what I'm doing. Still takes quite a while to compile...
>
> Hmmm; that's unfavourable.
>
>
> > I ran into a little barrage of "assert(0);" when trying to do it
> > from the commandline directly (since I didn't define -version=Posix,
> > just the default GDC definition of Unix which is the final word there)
>
> Yeah; I'm wondering what to do about that. Mango uses version('Posix'){}where appropriate, partly because there was no
established
> practice. Is there a concensus between DMD and GDC on this one?
>
>
>


May 31, 2005
Kris wrote:

> Yeah; I'm wondering what to do about that. Mango uses
> version('Posix'){}where appropriate, partly because there was no established
> practice. Is there a concensus between DMD and GDC on this one?

After much discussion, it finally settled on: Unix and std.c.unix.unix
This is the GDC standard, since DMD doesn't support anything but linux.

Using "Posix", like in Mango, is OK too since you set it up yourself.

--anders
May 31, 2005
clayasaurus wrote:

> Humm... I think what's supposed to happen is if you try to login with an existing username, it sends you an email with a new password. Anyway, I put a topic on the derelict forums for you :)

Looks like it batched the emails, I got three of them - six hours later.

--anders
1 2
Next ›   Last »