tung / DynaHack

A NetHack variant with randomized equipment, new items, new monsters, new maps, new challenges and an advanced ASCII interface.
https://tung.github.io/DynaHack/
48 stars 4 forks source link

Trouble compiling on windows #97

Closed MaddoScientisto closed 8 years ago

MaddoScientisto commented 8 years ago

I have been following the windows mingw guide on compiling dynahack but I'm running in issues on the final step mingw32-make install

here's the log

C:\MinGW\dynahack\build>mingw32-make install
[  2%] Built target makedefs
[  4%] Built target makedefs_headers
[  7%] Built target dgn_comp
[  9%] Built target dlb
[ 14%] Built target lev_comp
[ 33%] Built target nitrohack_data_files
[ 33%] Building C object libnitrohack/src/CMakeFiles/libnitrohack.dir/files.c.obj
C:\MinGW\dynahack\libnitrohack\src\files.c: In function 'open_datafile':
C:\MinGW\dynahack\libnitrohack\src\files.c:144:50: error: 'S_IRGRP' undeclared (first use in this function)
  fd = open(filename, oflags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
                                              ^
C:\MinGW\dynahack\libnitrohack\src\files.c:144:50: note: each undeclared identifier is reported only once for each function it appears in
C:\MinGW\dynahack\libnitrohack\src\files.c:144:60: error: 'S_IROTH' undeclared (first use in this function)
  fd = open(filename, oflags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
                                                        ^
libnitrohack\src\CMakeFiles\libnitrohack.dir\build.make:816: recipe for target 'libnitrohack/src/CMakeFiles/libnitrohack.dir/files.c.obj' failed
mingw32-make[2]: *** [libnitrohack/src/CMakeFiles/libnitrohack.dir/files.c.obj] Error 1
CMakeFiles\Makefile2:372: recipe for target 'libnitrohack/src/CMakeFiles/libnitrohack.dir/all' failed
mingw32-make[1]: *** [libnitrohack/src/CMakeFiles/libnitrohack.dir/all] Error 2
Makefile:126: recipe for target 'all' failed
mingw32-make: *** [all] Error 2