Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Sil

Reply
 
Thread Tools Display Modes
Old January 8, 2017, 03:36   #1
BookofAeons
Rookie
 
Join Date: Jan 2017
Posts: 6
BookofAeons is on a distinguished road
How-To: compile and play mpa-sil on Windows

This is the procedure that worked for me. The trick was to avoid anything 64-bit like the plague.
  1. Download and run setup-x86.exe from cygwin's website.
  2. In addition to the default packages, select "make" and "mingw64-i686-gcc-core" in the devel category.
  3. When asked, allow the installation of required dependencies.
  4. In Sil's SRC folder, edit the header of MakeFile.cyg to remove -mno-cygwin and point to the proper version of gcc and windres. It should look as follows:
    Code:
    CC = i686-w64-mingw32-gcc 
    WRES = i686-w64-mingw32-windres 
    LIBS = -s -mwindows -e _mainCRTStartup -lwinmm 
    CFLAGS = -Wall -O2 -fno-strength-reduce -DWINDOWS
  5. Open cygwin and cd to Sil's SRC folder.
  6. Type "make -f Makefile.cyg install"
  7. The resulting program will require cygwin1.dll, found in cygwin\bin. You can either copy it to Sil's folder, or add cygwin\bin to your system path.

I believe this is everything, but it's possible I overlooked something relevant in the flurry of things I tried.
BookofAeons is offline   Reply With Quote
Old January 8, 2017, 03:48   #2
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 3,638
Donated: $40
Pete Mack is on a distinguished road
I've had no problem with MinGW compiling sil, though the makefile needed a tiny bit of tweaking.
Pete Mack is offline   Reply With Quote
Old January 8, 2017, 04:19   #3
BookofAeons
Rookie
 
Join Date: Jan 2017
Posts: 6
BookofAeons is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
I've had no problem with MinGW compiling sil, though the makefile needed a tiny bit of tweaking.
Could you share your procedure here? More options is always better!
BookofAeons is offline   Reply With Quote
Old January 8, 2017, 04:56   #4
protopulse
Scout
 
Join Date: Dec 2016
Posts: 36
protopulse is on a distinguished road
Yep, can confirm the above works. The default gcc does not make a functional executable even after you remove the -mno-cygwin flag. You need to change the gcc as well.
protopulse is offline   Reply With Quote
Old January 8, 2017, 18:34   #5
bagori nd
Scout
 
Join Date: Apr 2014
Posts: 48
bagori nd is on a distinguished road
any advice on compiling on OS X?
bagori nd is offline   Reply With Quote
Old January 9, 2017, 21:41   #6
BookofAeons
Rookie
 
Join Date: Jan 2017
Posts: 6
BookofAeons is on a distinguished road
Quote:
Originally Posted by bagori nd View Post
any advice on compiling on OS X?
Borrowed a mac laptop to give it a shot. Compile.txt makes it sound so easy; too bad MakeFile.crb doesn't actually exist >.> I guess I can confirm the naive procedure doesn't work? /shrug

Took a brief look at XCode and it seemed promising, but that was more than the laptop's owner was comfortable with.
BookofAeons is offline   Reply With Quote
Old January 9, 2017, 21:52   #7
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 3,638
Donated: $40
Pete Mack is on a distinguished road
Attached Makefile, adapted from V.


Quote:
Originally Posted by BookofAeons View Post
Could you share your procedure here? More options is always better!
Attached Files
File Type: txt Makefile.win.txt (2.8 KB, 14 views)
Pete Mack is offline   Reply With Quote
Old January 19, 2017, 06:28   #8
kuniqs
Rookie
 
Join Date: Jan 2017
Posts: 1
kuniqs is on a distinguished road
Are there any precompiled binaries for Windows out there?
kuniqs is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to compile on Windows 8 SlothsInTheDungeon Development 5 August 9, 2014 04:17
T2 Linux -> Windows cross-compile with CMake? Therem Harth ToME 0 December 16, 2012 18:00
Making V play more like Sil Therem Harth Vanilla 81 October 1, 2012 15:36
Issue with compile on Windows 7 64-bit using Visual C++ Express command line -K- Development 1 January 15, 2011 21:28
Is there a windows compile of Gumband 2.3.2 floating around? BlackFlame Variants 8 February 12, 2010 02:16


All times are GMT +1. The time now is 15:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.