Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 7, 2012, 01:23 AM   #1
e-r-a-n
macrumors member
 
Join Date: Jan 2012
Cross compiling for windows using Xcode

continuing me previous post, where i asked about cgal library, i now managed to run on my mac c++ code with installed cgal libraries (using macports)
now i have another issue, i wish to target it for windows.
i read some breif explenation saying to change compiler to cygwin.
im not sure how & even if its already installed,
but another point to take into consideration, will it work with the installed cgal libraries? or will it ignore it for some reason?
e-r-a-n is offline   0 Reply With Quote
Old Nov 7, 2012, 03:14 PM   #2
ghellquist
macrumors regular
 
Join Date: Aug 2011
Location: Stockholm Sweden
Donīt

Cross-compiling from one platform to another is sort of complicated. At least has every time I have worked on it. Not worth it if you ask me as there are always little nagging things creating problems. And you still need to test it on the actual target anyway.

So, simple donīt. Get a windows partition and boot into that (or run it as a virtual machine) and compile and test on that platform. Saves lots and lots of trouble.

Other ideas to take home. Always use a source code version control system, GIT is one example. Fetch the code from there into the different environments and check changes back in.

// Gunnar
ghellquist is offline   0 Reply With Quote
Old Nov 7, 2012, 03:31 PM   #3
e-r-a-n
Thread Starter
macrumors member
 
Join Date: Jan 2012
well, im getting the picture and it does seems complicated
sadly, i need to work with cgal library, and its was too complicated to install on a windows machine
the installation & setup on mac + xcode was very easy and its already working.
so i just thought maybe to compile to windows from my mac, and get it done already..

further testing is not an issue at all, i have windows7 with parallels anyway

about git, i should use it but in this case its really a few lines
but thanks for the advice
e-r-a-n is offline   0 Reply With Quote
Old Dec 2, 2012, 12:58 PM   #4
Madd the Sane
macrumors 6502
 
Join Date: Nov 2010
Location: Utah
Theoretically, Xcode's architecture support can make targeting the Windows architecture fairly easy. However there are no projects that I know of that takes advantage of this.
Madd the Sane is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
xCode and multiple windows DennisBlah Mac Programming 17 Dec 10, 2013 12:29 AM
Moving from xcode 3.2 to xcode 4.5.2 compilation error for 'abs' macro in stdlib.h hrishidev Mac Programming 7 Jun 2, 2013 10:36 AM
Cross compiling DenBeke Mac Programming 8 May 18, 2013 02:08 AM
compiling VTK using Xcode ilantal Mac Programming 7 Jan 2, 2013 10:43 AM
c++ xcode cross-platform game development Ultimatenero Mac Programming 3 Sep 8, 2012 04:19 PM

Forum Jump

All times are GMT -5. The time now is 09:20 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC