Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Sil

Reply
 
Thread Tools Display Modes
Old January 8, 2017, 02: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, 02:48   #2
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,768
Donated: $40
Pete Mack will become famous soon enough
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, 03: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, 03:56   #4
protopulse
Apprentice
 
Join Date: Dec 2016
Posts: 63
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, 17:34   #5
bagori nd
Apprentice
 
Join Date: Apr 2014
Posts: 56
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, 20: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, 20:52   #7
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,768
Donated: $40
Pete Mack will become famous soon enough
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, 198 views)
Pete Mack is offline   Reply With Quote
Old January 19, 2017, 05:28   #8
kuniqs
Rookie
 
Join Date: Jan 2017
Posts: 3
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 03:17
T2 Linux -> Windows cross-compile with CMake? Therem Harth ToME 0 December 16, 2012 17:00
Making V play more like Sil Therem Harth Vanilla 81 October 1, 2012 14:36
Issue with compile on Windows 7 64-bit using Visual C++ Express command line -K- Development 1 January 15, 2011 20:28
Is there a windows compile of Gumband 2.3.2 floating around? BlackFlame Variants 8 February 12, 2010 01:16


All times are GMT +1. The time now is 21:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.