SFML community forums
Help => General => Topic started by: Kashlavor on September 01, 2013, 11:10:03 am
-
I'm working on a project using Fedora linux and Code::Blocks, I was hoping that someone could point me in the right direction for how I would be able to compile an exe for windows (I'm using the static libraries right now).
Ideally I'd like to be able to develop on my laptop, and then compile for various build targets, email/dropbox them over to everyone else (who mostly uses windows) in order to have some rapid playtesting and iteration. Any help would be appreciated.
-
As far as I know true cross-compilation doesn't really exist in general so you're probably going to have to get Windows in some form if you want to compile for Windows. The good news is that a VM is more than enough if all you want to do is compile on it.
-
http://www.virtualbox.org/ or http://qemu.org/
Easiest way... by far... really far...
If you need to resort to asking on this forum about cross-compilation I would also recommend not trying to do it the hard way...
-
I'm not experienced in cross compilation, but from what I've read and seeing the difficulties one can encounter already on native Windows, I'd say, you'd be wasting more time to get something to cross conpile, rather than using a VM to do so.
In any case MinGW has such cross compilagion features, but don't ask me anything about its use. ;)
-
So best way would be to get SFML and Code::Blocks set up on a windows machine and then share the source, then compile on that?
Thanks for the advice so far.
-
Yes.
-
So best way would be to get SFML and Code::Blocks set up on a windows machine and then share the source, then compile on that?
Thanks for the advice so far.
Yeah if you have cmake and a git repo, it can be as simple as cloning it and running cmake to get a new makefile.