![]() |
#1 |
Scout
Join Date: Sep 2012
Posts: 43
![]() |
Cross-compiling for Windows.
I'm starting a separate thread since I've hit a soft wall and I now know what the problem is.
I have angband compiling and running, but it currently runs through Cygwin. Looking at Makefile.win, it should have been created as a native Windows executable, and this is what I want (I don't need Posix emulation, etc.). What do I need to modify in Makefile.win for this to compile as a Windows executable? Currently I'm calling Makefile.win with MINGW=yes as an option, but the cross-compiler isn't producing a Windows executable--it's producing a Cygwin executable. I'm a bit lost at this point because the makefile is a bit complicated so I'd rather not use trial-and-error if there's a simple solution. Thanks as always. I'll get this thing to work even if it kills me. |
![]() |
![]() |
![]() |
#2 |
Scout
Join Date: Sep 2012
Posts: 43
![]() |
Success!!!
The problem was discussed here: http://angband.oook.cz/forum/showthread.php?t=4888 Apparently adding CROSS=i686-pc-mingw32- will fix the issue for Cygwin cross-compile. In the thread above, it failed to work, but this was a fault of an older Makefile.win. I also had to undo the changes to z-file.c, not surprisingly. I had thought that was the issue there! In summary, if you want to compile a Windows executable, the proper commands for clean and build are: ${MAKE} MINGW=yes -f Makefile.win clean ${MAKE} MINGW=yes CROSS=i686-pc-mingw32- -f Makefile.win Good Luna this has been a misadventure. Happily able to start work on my variant, however, so no complaints here. ![]() |
![]() |
![]() |
![]() |
Tags |
cross-compile, cygwin, makefile, mingw, windows |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
T2 Linux -> Windows cross-compile with CMake? | Therem Harth | ToME | 0 | December 16, 2012 18:00 |
Compiling V for Windows | Therem Harth | Vanilla | 8 | September 4, 2011 23:36 |
Compiling Z+Angband under Windows | Altefcat | Variants | 8 | December 11, 2008 10:44 |
(cross)Compiling for Nokia 770 / N800 Tablets | pupnik | Vanilla | 13 | March 25, 2008 00:19 |
Windows Compiling and Makefiles | APWhite | Vanilla | 11 | August 22, 2007 21:22 |