www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

D.gnu - Cross compiler Win->Mac available?

↑ ↓ ← Billy <Billy_member pathlink.com> writes:
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
Jul 31 2005
↑ ↓ =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
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. :-)
Jul 31 2005
↑ ↓ → Def <Def_member pathlink.com> writes:
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
Sep 13 2005