Building Narsil on Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bill Peterson
    Adept
    • Jul 2007
    • 190

    Building Narsil on Windows

    Is anyone doing this? If so, would you mind giving me a few hints as to how you're doing it. What tool chain are you using? If you're using a makefile, is it the one in the distribution or a custom one.
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9630

    #2
    I have traditionally used msys2 on Windows (for V, FA etc), and built with
    Code:
    cd src
    MINGW=yes make -f Makefile.win
    and there are also the instructions for building with msys2 here.

    That said, neither of these is currently working for me, but they're failing in the same way for V, so I suspect it's my msys2 setup (which I've just redone after a dev environment catastrophe a few weeks back) that's the problem.
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • smbhax
      Swordsman
      • Oct 2021
      • 340

      #3
      I'm able to build V with

      cd src
      make -f Makefile.msys2.sdl2 SOUND=yes

      but trying that with NarSil, I got

      ~~~
      snd-sdl.c:219:27: error: 'SDL_INIT_AUDIO' undeclared (first use in this function)
      219 | SDL_QuitSubSystem(SDL_INIT_AUDIO);
      | ^~~~~~~~~~~~~~
      make: *** [Makefile.msys2.sdl2:138: snd-sdl.o] Error 1
      ~~~

      Trying the version in the NarSil docs

      make -f Makefile.msys2.sdl2

      I got

      ~~~
      C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lbrotlidec-static: No such file or directory
      C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lbrotlicommon-static: No such file or directory
      collect2.exe: error: ld returned 1 exit status
      make: *** [Makefile.msys2.sdl2:110: narsil] Error 1
      ~~~

      I have the up-to-date mingw-w64-x86_64-brotli-1.0.9-6 installed.

      The error output looks similar to what a V user reported a year ago - http://angband.oook.cz/forum/showthread.php?t=11120 . I've never had this problem with V, myself.
      My Angband videos

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9630

        #4
        Thanks, it's probably just a matter of me needing to pull in some updates from V (I did some of this to patch some initial issues when trying this earlier).
        One for the Dark Lord on his dark throne
        In the Land of Mordor where the Shadows lie.

        Comment

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