View Single Post
Old September 24, 2018, 16:57   #25
shirish
Rookie
 
Join Date: Aug 2018
Posts: 22
shirish is on a distinguished road
Reply in-line :-

Quote:
Originally Posted by t4nk View Post
I sent the pull request:
https://github.com/angband/angband/pull/502

For those who are interested in compiling it (instructions for Debian-based systems!):

You'll need three libraries: the "base" SDL2, SDL2_ttf (fonts stuff) and SDL2_image (loading .png files and such). Also, their dependecies (Freetype, zlib and co). If you want sounds, you'll also need SDL2_mixer. In short:
Code:
apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev
Clone the repo and switch to sdl2 branch:
Code:
git clone https://github.com/t4nk074/angband
git checkout sdl2
Shouldn't this be from inside the repo. I have done the following -

Code:
~/games$ git clone https://github.com/t4nk074/angband angband-t4nk074
Cloning into 'angband-t4nk074'...
remote: Counting objects: 56527, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 56527 (delta 15), reused 14 (delta 8), pack-reused 56489
Receiving objects: 100% (56527/56527), 64.93 MiB | 287.00 KiB/s, done.
Resolving deltas: 100% (45476/45476), done.
Then -

Code:
~/games$ cd angband-t4nk074/
~/games/angband-t4nk074$ git checkout sdl2
Branch 'sdl2' set up to track remote branch 'sdl2' from 'origin'.
Switched to a new branch 'sdl2'
I would be updating my answer as I do the next steps.

Quote:
Originally Posted by t4nk View Post
Configure Angband without any frontends (just in case):
Code:
cd angband
./autogen.sh
./configure --with-no-install --disable-curses --disable-x11
(I think other stuff is disabled by default)

Now compile the game using Makefile.sdl2:
Code:
cd src
make -f Makefile.sdl2
If you want sounds, use this instead:
Code:
cd src
SOUND=yes make -f Makefile.sdl2
Now it should work... well, works for me
Code:
cd ..
./angband
Let me know if there are any problems!
The compilation terminated see https://paste.debian.net/1043948/

This is when I have all the -dev versions that were needed -

Code:
$ apt-cache policy libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev
libsdl2-dev:
  Installed: 2.0.8+dfsg1-2
  Candidate: 2.0.8+dfsg1-2
  Version table:
 *** 2.0.8+dfsg1-2 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
libsdl2-ttf-dev:
  Installed: 2.0.14+dfsg1-2
  Candidate: 2.0.14+dfsg1-2
  Version table:
 *** 2.0.14+dfsg1-2 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
libsdl2-image-dev:
  Installed: 2.0.3+dfsg1-1
  Candidate: 2.0.3+dfsg1-1
  Version table:
 *** 2.0.3+dfsg1-1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
libsdl2-mixer-dev:
  Installed: 2.0.2+dfsg1-2
  Candidate: 2.0.2+dfsg1-2
  Version table:
 *** 2.0.2+dfsg1-2 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status

Last edited by shirish; September 24, 2018 at 17:08.
shirish is offline   Reply With Quote