Cross compilation

Anything else
Post Reply
User avatar
Wilbefast
Posts: 1204
Joined: Wed Dec 31, 2008 2:32 pm
Location: In a sealed box shielded against environmentally induced quantum decoherence
Contact:

Cross compilation

Post by Wilbefast » Wed Oct 07, 2009 11:20 am

Hey guys,

I'm trying to compile a C SDL project and create a Windows executable under Ubuntu 9.04. Thought I'd just throw it out there: does anyone have any idea how this can be done, because I'm up to my pits in cross-compilation tips and can't make head nor tail of any of it :(

Thanks,

William

User avatar
BlackHole
Posts: 454
Joined: Sun Nov 30, 2008 8:08 am
Location: 127.0.0.1
Contact:

Re: Cross compilation

Post by BlackHole » Wed Oct 07, 2009 4:22 pm

I can't think of any easy solution, so let's do this the difficult way:

- Install virtualization software like VMware
- Install Windows on a virtual machine
- Install Visual Studio in Windows on the VM
- Compile your code using Visual Studio

Another option may be running Visual Studio or Visual C with WineHQ. It seems to work well enough for simple compiling...

That's what I would do. At least it's a lot easier then finding a way to compile Windows code from Linux. Just make the Windows tools run in Linux! ^^

- Black
Area 52 -- a location so extraordinarily top secret that Area 51 was invented just to hide it

User avatar
Wilbefast
Posts: 1204
Joined: Wed Dec 31, 2008 2:32 pm
Location: In a sealed box shielded against environmentally induced quantum decoherence
Contact:

Re: Cross compilation

Post by Wilbefast » Thu Oct 08, 2009 8:59 am

Hmm VM ware :?

Apparently minGW is the "way to go" though I don't know how simple that is: found a couple of tutorial too but it seems to be absurdly complicated. It would really help people switch if they knew they weren't completely cutting themselves off: it's like joining a cult or something :x

I'll post again when I've tried and failed :wink:

User avatar
Wilbefast
Posts: 1204
Joined: Wed Dec 31, 2008 2:32 pm
Location: In a sealed box shielded against environmentally induced quantum decoherence
Contact:

Re: Cross compilation

Post by Wilbefast » Sat Oct 10, 2009 4:47 am

Went with VirtualBox in the end since that way you have an environment to test the game in as well - Thanks for the advice Black :wink:

User avatar
BlackHole
Posts: 454
Joined: Sun Nov 30, 2008 8:08 am
Location: 127.0.0.1
Contact:

Re: Cross compilation

Post by BlackHole » Sat Oct 10, 2009 6:33 am

You're welcome. :)

- Black
Only the dead have seen the end of war.

Post Reply