Forum

MinGW - Can I compile for Linux on Windows? OSX too?

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

MinGW - Can I compile for Linux on Windows? OSX too?

Postby Baker » Mon Jan 12, 2009 3:57 am

MinGW - Can I compile for Linux on Windows?

Anyone know?

Also, although I have a Mac, I saw some xcode library for MinGW. Can I actually compile for OSX on Windows with MinGW?

I ask because Windows is a hell of a lot easier for me writing and editing source code and although I have an FTP into my Mac setup and used to do that for Linux, it'd be so much easier to do all of my compiling on Windows.
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby Spike » Wed Jan 14, 2009 5:29 pm

mingw is minimalist gnu for windows. so no.
you can compile for linux in windows using colinux.

alternatively you can download gcc and compile a cross compiler, then get the linux headers (glibc is a biggie). and get a native compiler...
but colinux is easier to install and get running, though I'm not sure what it'll let you run. should let you test stuff to some extent too, or something. not sure. at least it'll come with all the right header files :)

don't know about compiling for mac on windows. I don't think apple officially allow it. you'd lack lots of libraries.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Baker » Wed Jan 14, 2009 6:45 pm

Spike wrote:mingw is minimalist gnu for windows. so no.
you can compile for linux in windows using colinux.

alternatively you can download gcc and compile a cross compiler, then get the linux headers (glibc is a biggie). and get a native compiler...
but colinux is easier to install and get running, though I'm not sure what it'll let you run. should let you test stuff to some extent too, or something. not sure. at least it'll come with all the right header files :)


Foiled again!

Ok, I'll give colinux a shot then and see that works out.

I expected that compiling for OSX was not workable, but likewise wondering why MinGW has an xcode folder ?
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby Spike » Wed Jan 14, 2009 6:59 pm

mingw compiles _for_ windows, not specifically on windows. to build windows apps in linux, you use mingw set up as a cross compiler.
I assume the xcode thing is so you can set up a mac->windows cross compiler with it, but I don't really know.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest