Author Topic: Windows 2 OSX cross compiling howto?  (Read 4253 times)

Offline hexdust

  • Single posting newcomer
  • *
  • Posts: 2
Windows 2 OSX cross compiling howto?
« on: April 22, 2011, 05:16:35 pm »
Hi there,

<preamble>Loving this IDE. Has been the most useful system I used yet for C++/wxWidgets. Thanks muchly!!</preamble>

Now for my query:

Has anyone tried using C::B to cross compile from Windows (Yeah, I know :roll:..) to OSX on Intel architectures?

Have had a long look round and there doesn't seem to be anything tutorial-wise other than using Linux to compile for Windows/Wine.

Specifically, I'm just starting into multiplatform wxWidgets projects (have used it for a several windows only programs so far) and need a way of setting C::B to force GCC output to OSX binaries. Any thoughts/wisdom, peoples?

Currently using C::B MinGW 8.02 with the wxPack on Vista Home Premium SP2

Thanks in advance for any help you may provide.


Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Windows 2 OSX cross compiling howto?
« Reply #1 on: April 23, 2011, 06:04:19 pm »
I once tried but IMHO to compile for OSX you would need the libs that require you to own a Mac. The Apple licensing if very strict here. So: No Mac, no compilation, even more no cross-compilation. Once you own a Mac you don't need to cross compile anymore.

That's at least my experience, so I personally dropped Mac support.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline hexdust

  • Single posting newcomer
  • *
  • Posts: 2
Re: Windows 2 OSX cross compiling howto?
« Reply #2 on: April 24, 2011, 01:05:08 pm »
Thanks MortenMacFly,

As support for Mac is one of the conditions of my project, I do have access to a Mac for compilation. I was just trying to ease the workload by using the one machine and setting a parameter or two.

Oh well...




Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Windows 2 OSX cross compiling howto?
« Reply #3 on: April 25, 2011, 09:29:52 am »
I was just trying to ease the workload by using the one machine and setting a parameter or two.
Even then, I searched for this a lot as well, but unfortunately I always ended up in setups that are either illegal to use or that do not compile to the most recent OSX version or that do compile not natively. My personal understanding is that Apple also just don't want cross-compilation, so they do not support it at all. I guess you'll save yourself a lot time if you don't even try. However, if you have a Mac how about using e.g. remote desktop for "cross compilation"? Well - it's not really "cross" then, but at least you can stay on one machine and don't have to switch working places. In addition you can share the sources via network shares...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ