Thread overview
Cross compiler Win->Mac available?
Jul 31, 2005
Billy
Sep 13, 2005
Def
July 31, 2005
Hello, can I use D on Windows and create an executable file that will run on the Mac as well? And if yes, do I need Apple's libraries? Can I download them off the web? Any step-by-step tutorial available? How about a cross platform GUI toolkit for D that works with, say, Win, Linux, and Mac?

Thanks heaps,
Billy


July 31, 2005
Billy wrote:

> Hello, can I use D on Windows and create an executable file that will run
> on the Mac as well? And if yes, do I need Apple's libraries? Can I
> download them off the web? Any step-by-step tutorial available?

If you use GDC (and thus GCC) it should be able to build a cross-compiler, but I'm not sure that's enough to build from
Windows (cygwin) to Mac OS X (darwin) ? No tutorials yet, AFAIK.

For the low-level libraries, Apple do provide the source code...
Things like Carbon, Cocoa and Quicktime aren't available, though.
But the Darwin portion is at http://developer.apple.com/darwin/

--anders

PS. You could just provide the source code, or get someone else
    to compile it into a library for you ? Might be easier. :-)
September 13, 2005
In article <dcj3e5$f3e$1@digitaldaemon.com>, =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= says...

>For the low-level libraries, Apple do provide the source code... Things like Carbon, Cocoa and Quicktime aren't available, though. But the Darwin portion is at http://developer.apple.com/darwin/

In theory (i.e. I haven't tested this myself), if you use GTK 1.x you could
let the users of your program download the GTK+OSX port.
http://gtk-osx.sourceforge.net/
Then setup a cross compiler with PPC/MacOS as a target and compile your
source code. The resulting program is likely to look GTK type instead of
Mac native, but still usable. As I said, *in theory* it *might* work.
(Anyone tried this?)

>PS. You could just provide the source code, or get someone else
>     to compile it into a library for you ? Might be easier. :-)

I'm sure it would!

Def