I need to step by step (as easy as possible) to compile Sil on windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    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.
  • Pete Mack
    Prophet
    • Apr 2007
    • 6883

    #2
    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

    Comment

    • Guest

      #3
      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

      Comment

      • clouded
        Swordsman
        • Jun 2012
        • 268

        #4
        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, 19:53.

        Comment

        • Pete Mack
          Prophet
          • Apr 2007
          • 6883

          #5
          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.

          Comment

          • Quirk
            Swordsman
            • Mar 2016
            • 462

            #6
            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.

            Comment

            • Guest

              #7
              That page is unavailable

              Comment

              • Quirk
                Swordsman
                • Mar 2016
                • 462

                #8
                Originally posted by Gothmog
                That page is unavailable
                Ah, the repository structure has changed since I posted that.

                Use https://github.com/sil-quirk/sil-q/b...c/Makefile.cyg now.

                Comment

                • Guest

                  #9
                  what packages will I download from Cygwin?

                  Comment

                  Working...
                  😀
                  😂
                  🥰
                  😘
                  🤢
                  😎
                  😞
                  😡
                  👍
                  👎