Is there a way to compile Windows daily on Linux?
Is there a way to compile Windows daily on Linux?
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.
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.
http://en.wikipedia.org/wiki/Cross_compiler
A quick search returned these 2 results. I gave them a quick glance and they sound right:
http://stackoverflow.com/questions/1824 ... to-windows
http://forums.codeblocks.org/index.php?topic=3343.0
And in case you get stuck...
...when I last did it, I downloaded some extras from DJGPP:
http://www.delorie.com/djgpp/
From Delori'es install page (Using Zip-picker):
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.
But it's been ages since I last did that, so I don't think I remember enough to walk you through it.
http://en.wikipedia.org/wiki/Cross_compiler
A quick search returned these 2 results. I gave them a quick glance and they sound right:
http://stackoverflow.com/questions/1824 ... to-windows
http://forums.codeblocks.org/index.php?topic=3343.0
And in case you get stuck...
...when I last did it, I downloaded some extras from DJGPP:
http://www.delorie.com/djgpp/
From Delori'es install page (Using Zip-picker):
So that's the short version: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.
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.
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
False. You can also use the mingw32-binutils package (available from your favorite package manager or from the usual MinGW sites).Leroy wrote: The only way is on Wine or VM
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
Check out my stuff! | Donations greatly appreciated! PayPal
-
- Moderator
- Posts: 4094
- Joined: Wed Aug 24, 2011 09:44
- GitHub: sfan5
- IRC: sfan5
- Location: Germany
https://github.com/celeron55/minetest/b ... ldwin32.sh
FYI I'm already doing Windows Builds: http://minetest.net/forum/viewtopic.php?id=1523
FYI I'm already doing Windows Builds: http://minetest.net/forum/viewtopic.php?id=1523
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 12 guests