View Single Post
Old September 24, 2018, 17:59   #27
Join Date: Aug 2018
Posts: 22
shirish is on a distinguished road
Originally Posted by takkaria View Post
You should probably run ./configure with --disable-sdl-mixer too. (Hi magnate!)
Hi all,

I retried and failed -

~/games/angband-t4nk074$ ./
*info* running aclocal (-I m4)
*info* running autoheader
*info* running autoconf
and then - will be sharing just the start and end messages -

~/games/angband-t4nk074$ ./configure --with-no-install --disable-curses --disable-x11 --disable-sdl-mixer
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure: creating ./config.status
config.status: creating mk/
config.status: creating mk/
config.status: creating mk/
config.status: creating src/autoconf.h
config.status: src/autoconf.h is unchanged


  Install path:                           (not used)
  binary path:                            ..
  config path:                            /home/shirish/games/angband-t4nk074/lib/
  lib path:                               /home/shirish/games/angband-t4nk074/lib/
  doc path:                               /home/shirish/games/angband-t4nk074/doc/
  var path:                               /home/shirish/games/angband-t4nk074/lib/

-- Frontends --
- Curses                                  Disabled
- X11                                     Disabled
- SDL                                     Disabled
- Windows                                 Disabled
- Test                                    No
- Stats                                   No

- SDL sound                               Disabled
Still got the same issue -

shirish@debian:~/games/angband-t4nk074$ cd src/
shirish@debian:~/games/angband-t4nk074/src$ SOUND=yes make -f Makefile.sdl2
        CC snd-sdl.c           
snd-sdl.c:25:10: fatal error: SDL/SDL.h: No such file or directory
 #include <SDL/SDL.h>
compilation terminated.
make: *** [Makefile.sdl2:100: snd-sdl.o] Error 1
Perhaps it should be -

$ dpkg -L libsdl2-dev | grep SDL.h
I was able to fix it by doing in sdl2.c -

$ cat snd-sdl.c | grep include
 *    are included in all such copies.  Other copyrights may also apply.
#include "angband.h"
#include "init.h"
#include "sound.h"
#include <SDL2/SDL.h>
#include <SDL2/SDL_mixer.h>
just changed SDL/SDL.h and SDL/SDL_mixer.h to SDL2/SDL.h and SDL2/SDL.mixer.h

and was able to compile -

~/games/angband-t4nk074/src$ SOUND=yes make -f Makefile.sdl2
        CC snd-sdl.c           
      LINK angband             
cp angband ..

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