How-To: compile and play mpa-sil on Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BookofAeons
    Rookie
    • Jan 2017
    • 6

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

    #2
    I've had no problem with MinGW compiling sil, though the makefile needed a tiny bit of tweaking.

    Comment

    • BookofAeons
      Rookie
      • Jan 2017
      • 6

      #3
      Originally posted by Pete Mack
      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!

      Comment

      • protopulse
        Apprentice
        • Dec 2016
        • 63

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

        Comment

        • bagori nd
          Apprentice
          • Apr 2014
          • 56

          #5
          any advice on compiling on OS X?

          Comment

          • BookofAeons
            Rookie
            • Jan 2017
            • 6

            #6
            Originally posted by bagori nd
            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.

            Comment

            • Pete Mack
              Prophet
              • Apr 2007
              • 6883

              #7
              Attached Makefile, adapted from V.


              Originally posted by BookofAeons
              Could you share your procedure here? More options is always better!
              Attached Files

              Comment

              • kuniqs
                Rookie
                • Jan 2017
                • 6

                #8
                Are there any precompiled binaries for Windows out there?

                Comment

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