Inside3D!
     

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

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming
View previous topic :: View next topic  
Author Message
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Mon Jan 12, 2009 3:57 am    Post subject: MinGW - Can I compile for Linux on Windows? OSX too? Reply with quote

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.
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Wed Jan 14, 2009 5:29 pm    Post subject: Reply with quote

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.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Wed Jan 14, 2009 6:45 pm    Post subject: Reply with quote

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 Smile


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 ?
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Wed Jan 14, 2009 6:59 pm    Post subject: Reply with quote

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.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Engine Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group