Is there a way to compile Windows daily on Linux?

Post Reply
User avatar
Posts: 13
Joined: Tue Nov 27, 2012 17:47

Is there a way to compile Windows daily on Linux?

by yohoho » Post

As the title asks, is there a way to compile the daily unstable for Windows while on Linux? If so could someone give me the instructions? Thank you.

User avatar
Posts: 261
Joined: Thu Oct 18, 2012 23:43
Location: Antarctica

by Leroy » Post

The only way is on Wine or VM

User avatar
Posts: 51
Joined: Sun Nov 06, 2011 16:31

by Roflo » Post

In theory, you should be able to Cross-Compile.
But it's been ages since I last did that, so I don't think I remember enough to walk you through it.

A quick search returned these 2 results. I gave them a quick glance and they sound right: ... to-windows

And in case you get stuck...
...when I last did it, I downloaded some extras from DJGPP:

From Delori'es install page (Using Zip-picker):
Using DJGPP as a unix-to-dos cross compiler is tricky. You'll need to get, build, and install binutils and gcc with ./configure --target=i586-pc-msdosdjgpp (install binutils before configuring gcc - gcc needs the cross-assembler). You may need this patch.

djcrx comes with sources for stubify, which you'll have to build and install manually.
So that's the short version:
1. You have to build binutils and gcc (for your target).
1.1. You might need something like the stubify (to get proper W32 binaries).
2. When you have the above, you'll need to specify a --target when compiling.
3. Have fun compiling just about everything (libraries/dependencies).

And do let us know if you managed to do it.
Last edited by Roflo on Mon Dec 03, 2012 00:54, edited 1 time in total.
Unless otherwise specified: I use linux and run (and compile) the latest dev.

User avatar
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay

by kaeza » Post

Leroy wrote: The only way is on Wine or VM
False. You can also use the mingw32-binutils package (available from your favorite package manager or from the usual MinGW sites).

yohoho, take a look at the CMake docs in particular to the CMAKE_TOOLCHAIN_FILE variable. You should get all the info you need there; if not, just post again. Thanks.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
Posts: 3962
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests