SFML community forums
Help => General => Topic started by: bluevideogame on February 19, 2015, 06:26:48 am
-
Can I create a .exe in xcode, or how can I get my program c++ SFML to run on pc? I can make a .app already.
Thanks
-
Short answer: No.
Slightly longer answer: Although cross-compiling is a thing it's seriously not worth spending time on for this. Even if you could get it working without problems (unlikely) you would have no way to debug and you would also be precluded from using the Visual Studio compiler (should you wish to). Don't waste time going that route. So realistically, still no.
If you want to create Windows executables you have three realistic options:
1) buy a second machine running Windows and do your builds there.
2) buy a copy of Windows and install it in a virtual machine and do your builds there.
3) buy a copy of Windows and install it as a dual-boot option on your Mac.
-
The cheapest solution is using a virtual machine(s) to do things like this. :) The main problem is the dang things tend to eat through RAM when in use so the more you have the better.
https://www.virtualbox.org/
http://www.vmware.com/
http://www.digitaltrends.com/computing/best-virtual-machine-apps-for-mac-linux-and-windows-pcs/
and the search:
https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=Free+Virtual+Machine+software
Figured these might be useful if you want to go the virtual machine route. :) It isn't all that is out there but a nice sample of what is. Both my CIT classes and Networking ones use virtual machines when needed so finding the stuff is easy enough.
-
thank you