1791: Angband \\ How to compile Angband's latest code & SDL2 front-end w/ sound!
A video tutorial on compiling the open source roguelike game Angband from its latest code, with its SDL2-with-sound front-end, though the free MSYS2 build environment for Windows.
Step-by-step directions below.
Huge thanks to Angband lead programmer backwardsEric, and maintainer Nick, for their seemingly inexhaustible wisdom and patience. : )
My Angband playlist: https://www.youtube.com/playlist?list=PLZO3OPzPjIzPDGSovCSUGiEGwNrTKPb-C
0:00 - start
1:06 - installing MSYS2
2:05 - running mingw64.exe
4:51 - updating MSYS2
7:07 - installing packages
10:32 - pulling down the Angband source code
11:18 - building Angband
14:39 - running Angband
17:17 - configuring the front-end (basic)
18:57 - enabling sound
20:20 - rambling around town & dungeon
24:14 - building an updated version
27:37 - uninstalling
How to build Angband from the latest code, with the SDL2 front-end, with sound:
Download the latest MSYS2 self-extracting archive (the *sfx.exe download in the released Assets) from https://github.com/msys2/msys2-installer/releases. Running it auto-extracts to an "msys64" folder in the same directory as the *sfx.exe; you can move the extracted files to some other folder if you prefer.
Wherever you have them, go into that folder and run mingw64.exe (the blue one); it will auto-update. Once that's finished, enter (you can right-click and Paste these lines into the mingw64.exe terminal window; you will be asked to confirm some of them by pressing "y"):
pacman -Syu --noconfirm
(when it closes, relaunch)
pacman -Syu --noconfirm
pacman -S git
pacman -S make mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_image
pacman -S mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_mixer
git clone https://github.com/angband/angband.git
cd angband
cd src
make -f Makefile.msys2.sdl2 SOUND=yes
The build process, when successful, puts a fresh angband.exe in your /home/angband folder, one layer up from the /src folder.
You can launch the game by double-clicking the angband.exe (in /home/[username]/angband/ from your root msys2 folder), although the recommended thing would be to make a shortcut to the .exe, right-click it and select Properties, then add "-uPLAYER" without the quotes to the end of its Target field--this will make it so that it auto-loads the default-named "PLAYER" character (you can also use a customized name, for instance I might use "-uSmbhax").
If you want to run it from the mingw64.exe terminal, if you were compiling (in the src folder), enter
cd ..
to back out one layer; on the other hand, if you came in from just running mingw64.exe fresh, you would enter
cd angband
to go INTO the first layer of the angband project. Once in /angband, to run the compiled .exe, enter
./angband.exe -uPLAYER
Once in the game, turn on sound by typing "=ab" to get to the sound option toggle, press Enter to toggle it on, then press the s key to save the setting.
~~~
To update and build in the future, all you need to do to pull down and compile the latest code again--barring code updates that could always complicate things slightly--is run mingw64.exe and enter
pacman -Syu --noconfirm
cd angband
git pull
cd src
make -f Makefile.msys2.sdl2 SOUND=yes
(To force rebuild if you're getting weird build errors that may be from old code bits laying around--I never actually had to do this for Angband though--enter
make -Bf Makefile.msys2.sdl2 SOUND=yes
)
A lot of this is from the Angband manual, at https://angband.readthedocs.io/en/latest/hacking/compiling.html#using-msys2-with-mingw64
Note: when uninstalling, by deleting your root MSYS2 folder, Windows may warn that a couple folders can't be deleted because they're "open in another program" or something. Rebooting resolves this, or you can follow the steps here: https://learn.microsoft.com/en-us/answers/questions/210462/the-action-cant-be-completed-because-the-folder-or , namely
~~~
Open resource monitor (Windows +R to open Run then type Resmon.exe)
Expand "associated handles"
Search for the file you need
Close the process that has the handle
~~~
So, I typed "msys2" in the "Associated handles" field, since I'd named my install folder "msys2," and that came up with the conhost.exe, two explorer.exe processes, and pacman.exe. Right-clicking and choosing to close conhost.exe allowed me to delete the folders.
~~~~
For help and to participate with the Angband community, check out the forums at https://angband.live/forums
You can download Angband with its standard front end from the official site, https://rephial.org/
2/22/24
#angband #roguelike #dungeoncrawler #freegame #freegames #opensourcegame #opensourcegames #opensource #rpg #fantasy #fantasygame #fantasygames #videogame #videogames #pcgame #pcgames #freepcgames #pcgaming #sdl2 #game #games #gaming #gamingvideos #indiegame #indiegames #gameplay #playthrough #retrogame #retrogames #retrogaming #msys2 #howto #tutorial #mingw
Other Videos By smbhax 2000
Other Statistics
Angband Statistics For smbhax 2000
smbhax 2000 currently has 3,244 views spread across 54 videos for Angband. This game accounts for over 3 days of watchable video on his channel, roughly 2.40% of Angband content that smbhax 2000 has uploaded to YouTube.