![]() |
#1 |
Rookie
Join Date: May 2020
Posts: 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 ![]() |
![]() |
![]() |
![]() |
#2 |
Scout
Join Date: Jun 2020
Posts: 37
![]() |
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? |
![]() |
![]() |
![]() |
#3 |
Apprentice
Join Date: Feb 2020
Posts: 99
![]() |
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 |
![]() |
![]() |
![]() |
#4 |
Scout
Join Date: Jun 2020
Posts: 37
![]() |
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? |
![]() |
![]() |
![]() |
#5 |
Apprentice
Join Date: Feb 2020
Posts: 99
![]() |
To cleanup the previous build run:
Code:
make clean 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 |
![]() |
![]() |
![]() |
#6 |
Scout
Join Date: Jun 2020
Posts: 37
![]() |
This is what I did first time.
Code:
./autogen.sh ./configure --enable-sdl2 --enable-sdl2-mixer make sudo make install |
![]() |
![]() |
![]() |
#7 |
Apprentice
Join Date: Feb 2020
Posts: 99
![]() |
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 Code:
angband -ssdl -msdl2 |
![]() |
![]() |
![]() |
#8 |
Scout
Join Date: Jun 2020
Posts: 37
![]() |
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 at 14:30. |
![]() |
![]() |
![]() |
#9 |
Apprentice
Join Date: Feb 2020
Posts: 99
![]() |
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. |
![]() |
![]() |
![]() |
#10 |
Veteran
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,027
![]() |
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. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SDL2 port when ? | shirish | Development | 89 | September 2, 2019 11:59 |
Latest Nightly release, SDL2 crashing with 8 terms | EducatedNoob | Development | 3 | June 24, 2019 22:17 |
JavaScript frontend | Gwarl | Development | 0 | June 5, 2017 15:48 |
Windows misbehaving in windows (?) | Wanderlust | Vanilla | 4 | January 5, 2017 10:58 |
Term windows | Aristobulus | Variants | 9 | November 6, 2008 14:43 |