Username: Password: Remember me
Search + Advanced
Package Details

cataclysm-dda-git 0.C.2942.g93c35bb-1
http://www.cataclysmdda.com/
Cataclysm: Dark Days Ahead is an actively maintained roguelike set in a post-apocalyptic world. Both SDL tiles and ascii version included.

Category: games

Submitter: Ram-Z
Maintainer: Ram-Z
Votes: 1

License: CCPL:by-sa

Last Updated: 2015/05/23 - 00:54:15 +0000
First Submitted: 2015/05/07 - 09:17:02 +0000

Tarball :: PKGBUILD

Dependenciesbzip2 freetype2 gcc-libs glibc ncurses sdl2 sdl2_image sdl2_mixer sdl2_ttf zlib 

Comment by: Ram-Z on Sat, 23 May 2015 01:06:24 +0000


The newest version uses the make option `USE_XDG_DIR` which will read the configs and data following the XDG specs [0].

Make sure to move your config files to '~/.config/cataclysm-dda' and the data to '~/.local/share/cataclysm-dda'.

[0] http://standards.freedesktop.org/basedi … atest.html

Comment by: Ram-Z on Fri, 08 May 2015 02:03:07 +0000


This is a bug upstream, please report it there.
https://github.com/CleverRaven/Cataclysm-DDA/issues

In the meantime you can disable treating warnings as errors thus:

build () {
  cd "$srcdir/$pkgname"
  sed '/^RELEASE_FLAGS/d' -i Makefile    # add this line
  make RELEASE=1 USE_HOME_DIR=1
  make RELEASE=1 USE_HOME_DIR=1 TILES=1 SOUND=1
} 

Comment by: CrystalTG on Fri, 08 May 2015 01:00:27 +0000


Trying to install it I get
src/game.cpp: In member function ‘void game::explosion(const tripoint&, int, int, bool, bool)’:
src/game.cpp:5979:62: error: narrowing conversion of ‘rng(((long int)(((int)p.tripoint::x) + (((int)radius) * -2))), ((long int)(((int)p.tripoint::x) + (((int)radius) * 2))))’ from ‘long int’ to ‘int’ inside { } [-Werror=narrowing]
         tripoint sp{ rng( p.x - 2 * radius, p.x + 2 * radius ),
                                                              ^
src/game.cpp:5980:62: error: narrowing conversion of ‘rng(((long int)(((int)p.tripoint::y) + (((int)radius) * -2))), ((long int)(((int)p.tripoint::y) + (((int)radius) * 2))))’ from ‘long int’ to ‘int’ inside { } [-Werror=narrowing]
                      rng( p.y - 2 * radius, p.y + 2 * radius ),
                                                              ^
src/game.cpp: In member function ‘bool game::spawn_hallucination()’:
src/game.cpp:6728:30: error: narrowing conversion of ‘(((long int)((game*)this)->game::u.player::posx()) + rng(-10l, 10l))’ from ‘long int’ to ‘int’ inside { } [-Werror=narrowing]
     phantasm.spawn({u.posx() + rng(-10, 10), u.posy() + rng(-10, 10), u.posz()});
                              ^
src/game.cpp:6728:55: error: narrowing conversion of ‘(((long int)((game*)this)->game::u.player::posy()) + rng(-10l, 10l))’ from ‘long int’ to ‘int’ inside { } [-Werror=narrowing]
     phantasm.spawn({u.posx() + rng(-10, 10), u.posy() + rng(-10, 10), u.posz()});
                                                       ^
cc1plus: all warnings being treated as errors
Makefile:437: recipe for target 'obj/game.o' failed
make: *** [obj/game.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
The build failed.