Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old May 30, 2020, 07:55   #1
Adriankhl
Rookie
 
Join Date: May 2020
Posts: 3
Adriankhl is on a distinguished road
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
Adriankhl is offline   Reply With Quote
Old June 11, 2020, 13:03   #2
Sacksquatch
Scout
 
Join Date: Jun 2020
Posts: 38
Sacksquatch is on a distinguished road
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?
Sacksquatch is offline   Reply With Quote
Old June 11, 2020, 13:21   #3
moosferatu
Apprentice
 
Join Date: Feb 2020
Posts: 99
moosferatu is on a distinguished road
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.
moosferatu is offline   Reply With Quote
Old June 11, 2020, 13:33   #4
Sacksquatch
Scout
 
Join Date: Jun 2020
Posts: 38
Sacksquatch is on a distinguished road
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?
Sacksquatch is offline   Reply With Quote
Old June 11, 2020, 13:52   #5
moosferatu
Apprentice
 
Join Date: Feb 2020
Posts: 99
moosferatu is on a distinguished road
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).
moosferatu is offline   Reply With Quote
Old June 11, 2020, 13:57   #6
Sacksquatch
Scout
 
Join Date: Jun 2020
Posts: 38
Sacksquatch is on a distinguished road
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
Sacksquatch is offline   Reply With Quote
Old June 11, 2020, 14:04   #7
moosferatu
Apprentice
 
Join Date: Feb 2020
Posts: 99
moosferatu is on a distinguished road
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!
moosferatu is offline   Reply With Quote
Old June 11, 2020, 14:14   #8
Sacksquatch
Scout
 
Join Date: Jun 2020
Posts: 38
Sacksquatch is on a distinguished road
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.
Sacksquatch is offline   Reply With Quote
Old June 11, 2020, 14:31   #9
moosferatu
Apprentice
 
Join Date: Feb 2020
Posts: 99
moosferatu is on a distinguished road
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.
moosferatu is offline   Reply With Quote
Old June 11, 2020, 15:35   #10
fph
Veteran
 
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,027
fph is on a distinguished road
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.
fph is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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 11:58
Term windows Aristobulus Variants 9 November 6, 2008 15:43


All times are GMT +1. The time now is 10:03.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.