Re: Coding a plain C application in XCode with windows compatibility
Re: Coding a plain C application in XCode with windows compatibility
- Subject: Re: Coding a plain C application in XCode with windows compatibility
- From: "MacArthur, Ian (SELEX) (UK)" <email@hidden>
- Date: Thu, 5 Oct 2006 09:35:29 +0100
- Thread-topic: Coding a plain C application in XCode with windows compatibility
> >>
> >> It would be superb if XCode could create a Makefile (and
> maintain it
> >> up to date) so I can just "make" under windows to compile
> my project.
> >>
> >
> > With the use of a sufficiently large crowbar, you can convince Xcode
> > to compile a Windows application. I've used the instructions at
> > http://www.zonic.co.uk/products/mingw/ for setting up MinGW as a
> > cross-compiler, except that instead of trying to tell Xcode
> that MinGW
> > is a new compiler, I used symbolic links and wrapper scripts to make
> > Xcode think that the MinGW cross-compiler is actually GCC 2.95 for
> > Mac.
> >
>
> I will look into it, being able to compile under macosx would
> be Superb!
FWIW, when I tried this, it worked OK. But... in the end it was less
hassle to just get a cheap win32 box (and lets face it, they are dirt
cheap nowadays) and network it to the Mac.
I do all the actual work on the Mac (but using Makefiles rather than
Xcode projects) and then whe I get something that works on the Mac, copy
it across to the win32 box, rebuild it using mingw/Msys and test it. VNC
can come in handy too...
If you want to build cross-platform code that works with OpenGL and SDL,
and you need some windowing support, then I'm a big fan of fltk
(www.fltk.org) that works nicely across platforms, works really well
with OpenGL and works OK with SDL. Write once, compile anywhere, and all
that...
--
Ian
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden