Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Sil

Reply
 
Thread Tools Display Modes
Old November 10, 2017, 14:22   #1
Gothmog
Apprentice
 
Join Date: Sep 2016
Posts: 80
Gothmog is on a distinguished road
I need to step by step (as easy as possible) to compile Sil on windows

I've tried numerous times but Cygwin keeps saying No such file or directory.
Gothmog is offline   Reply With Quote
Old November 10, 2017, 14:36   #2
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,346
Donated: $40
Pete Mack is on a distinguished road
That's not quite enough: which file isn't it finding? You may need to prepend the two cygwin directories to your PATH:
/c/cygwin/bin
/c/cygwin/msys/1.0/bin
Pete Mack is offline   Reply With Quote
Old November 10, 2017, 14:46   #3
Gothmog
Apprentice
 
Join Date: Sep 2016
Posts: 80
Gothmog is on a distinguished road
I'll give that a go, I wasn't sure if that would make a difference so I did not bother doing it and the file (off the top of my head was) sil-130-src
Gothmog is offline   Reply With Quote
Old November 10, 2017, 20:37   #4
clouded
Adept
 
Join Date: Jun 2012
Posts: 202
clouded is on a distinguished road
Just use Makefile.std with cygwin. Edit the file and scroll down a bit to where it talks about if you want to compile X11 or curses, X11 is like the windows binary you probably have, curses would be like playing on angband.live. I've only compiled with curses. To compile for gcu find this part and uncomment it out and add the stuff I have (and comment out the other variations):

Code:
##
## Variation -- "main-gcu.c"
##
CFLAGS = -Wall -O1 -pipe -g -D"USE_GCU" -I/usr/include/ncurses
LIBS = -lncurses
Then run "make -f Makefile.std install" in the src directory, then "cd .." and "./sil" If that doesn't work or if you haven't already make sure you have the ncurses/curses stuff for cygwin. If you want to try compiling X11 then uncomment out the one that only does that, then do those commands.

Last edited by clouded; November 10, 2017 at 20:53.
clouded is offline   Reply With Quote
Old November 10, 2017, 21:23   #5
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,346
Donated: $40
Pete Mack is on a distinguished road
Oh, one more thing: for some variants, you need to prepend the make command with

CYGWIN=YES make -f makefile.win

Or whatever. You may need to make minor edits to the makefile, depending on error messages.
Pete Mack is offline   Reply With Quote
Old November 11, 2017, 02:01   #6
Quirk
Apprentice
 
Join Date: Mar 2016
Posts: 93
Quirk is on a distinguished road
The correct makefile is Makefile.cyg.

It may require some tweaking to work with recent mingw; I suggest you take the one from sil-q, found at https://github.com/sil-quirk/sil-q/b...c/Makefile.cyg, because I had to make those tweaks already.

I note I have gcc linked thusly in cygwin:
gcc -> i686-w64-mingw32-gcc.exe
can't recall if I had to do this manually.
Quirk 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
How-To: compile and play mpa-sil on Windows BookofAeons Sil 7 January 19, 2017 06:28
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
Combat redesign - taking a step back jens Vanilla 17 July 14, 2011 20:51
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 02:18.


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