4.2.0 windows sdl2 frontend

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adriankhl
    Rookie
    • May 2020
    • 3

    4.2.0 windows sdl2 frontend

    Hi, I am new to Angband. I wanted to play Angband on my Windows machine but I don't like how it has been compiled. Therefore, I decided to fix the code and create makefiles to compile the ncurse and sdl2 client with msys2. The PR is over here: https://github.com/angband/angband/pull/4424

    For those who want to test it, I am sharing my sdl2 build here: https://github.com/Adriankhl/angband...4.2.0-win-sdl2

    Feel free to report any issue here, though I am not an expert so I may not be able to solve it.

    Now it is time for me to enjoy my Angband
  • Sacksquatch
    Apprentice
    • Jun 2020
    • 50

    #2
    Does SDL2 have working sound? I compiled 4.2.1 this morning with SDL2 and I can't seem to get sound to work.

    I just tried your windows SDL2 using WINE and I heard no sound either.

    In both cases I enabled sound in-game. Any ideas?

    Comment

    • moosferatu
      Apprentice
      • Feb 2020
      • 99

      #3
      There was another recent thread about this that may be of interest: http://angband.oook.cz/forum/showthread.php?t=10096

      I don't normally play using SDL2 or sound, but I just did some experiments to see if I could get the sound working. I wasn't able to. However, I was able to get the SDL2 frontend working using SDL sound. I haven't tried this with the precompiled version, but here's what you'd need to do if you're compiling your own:

      Code:
      ./configure --with-no-install --enable-sdl2 --enable-sdl-mixer
      make
      cp src/angband .
      ./angband  -ssdl -msdl2
      Once you're in the game, you'll still need to enable sound in the "=a" menu.

      Comment

      • Sacksquatch
        Apprentice
        • Jun 2020
        • 50

        #4
        Thanks moose!

        I'm on my 4th day with linux. I don't know much yet. What would I need to do to clean this compile/install up before I do a second compile/install? How can I control where it gets installed?

        Comment

        • moosferatu
          Apprentice
          • Feb 2020
          • 99

          #5
          To cleanup the previous build run:

          Code:
          make clean
          Do you know what commands you ran the first time you compiled it?

          It's partly a matter of preference. I don't do a system install (--with-no-install) and just run Angband directly out of the source directory. If you want it installed at the system level, then remove that flag and run the following:

          Code:
          make clean
          ./configure --enable-sdl2 --enable-sdl-mixer
          make
          make install
          angband  -ssdl -msdl2
          Again, I don't usually do the install, so I can't say for certain what will happen, but I believe it will install Angband to some /usr directory and you might need elevated permissions to run it (like: sudo make install).

          Comment

          • Sacksquatch
            Apprentice
            • Jun 2020
            • 50

            #6
            This is what I did first time.

            Code:
            ./autogen.sh
            ./configure --enable-sdl2 --enable-sdl2-mixer
            make
            sudo make install
            Been running with angband -msdl2

            Comment

            • moosferatu
              Apprentice
              • Feb 2020
              • 99

              #7
              Cool, so I would expect this to do the trick for you:

              Code:
              make clean
              ./configure --enable-sdl2 --enable-sdl-mixer
              make
              sudo make install
              And then run with:

              Code:
              angband -ssdl -msdl2
              You seem to be doing great for only having used linux for 4 days!

              Comment

              • Sacksquatch
                Apprentice
                • Jun 2020
                • 50

                #8
                Sorry, what I meant was that I think I would prefer to do the no install. Can i just delete the folder it installed angband to after I do make clean? My windows background makes me hesitant to delete things, without uninstalling. Not really sure how linux file system and installing works yet.

                It's installed in usr/local/share/angband currently
                Last edited by Sacksquatch; June 11, 2020, 14:30.

                Comment

                • moosferatu
                  Apprentice
                  • Feb 2020
                  • 99

                  #9
                  Yes, you should be able to just delete /usr/local/share/angband. There might be other files that you'd want to cleanup too. For example, /usr/local/etc/angband, /usr/local/share/doc/angband, and /usr/local/games/angband.

                  Doing so isn't really related to running "make clean", which is just deleting the files that were created in the Angband source directory as a result of compiling.

                  Comment

                  • fph
                    Veteran
                    • Apr 2009
                    • 1030

                    #10
                    I'm too lazy to check, but maybe "make uninstall" (*before* you configure --with-no-install) works?
                    --
                    Dive fast, die young, leave a high-CHA corpse.

                    Comment

                    • Sacksquatch
                      Apprentice
                      • Jun 2020
                      • 50

                      #11
                      At step "cp src/angband ." I get error cp: cannot create regular file './angband': Permission denied

                      Edit: NM, I got it working and I have sound!

                      TYVM
                      Last edited by Sacksquatch; June 11, 2020, 16:05.

                      Comment

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