Page 1 of 1

compiling DCSS libretro ipad port

PostPosted: Thursday, 22nd October 2015, 05:44
by lightrow
So there is a libretro port of dcss that can be run in Retroarch on ipad ( the goal here is to get dcss running on ipad, a standalone "not-ssh" version ). Its on github and i couldnt find an already compiled version:

https://github.com/libretro/crawl-ref

The problem is im not very good at this stuff, so im using a prebuilt git+minGW or whatever toolchain package to compile from the github sources.
I used the "guide" from the original creator of the port ( https://github.com/meancoot/stonesoup-libretro ):

  Code:
git submodule update --init
cd crawl-ref
make -f Makefile.libretro generate
make -f Makefile.libretro


but it gives me the following on "generate" command:

  Code:
Ivan@DESKTOP-I9IP2GD /usr/crawl-ref/crawl-ref (master)
$ make -f Makefile.libretro generate
cd source && ./util/gen-mst.pl
cd source && ./util/art-data.pl
    Generating art-data.h
    Generating art-enum.h
    Generating dc-unrand.txt
    Generating tiledef-unrand.cc
cd source && ./util/gen-mi-enum
cd source && ./util/cmd-name.pl
cd source && ./util/gen-luatags.pl
cd source && ./util/gen_ver.pl build.h
cd source && ./util/gen-cflg.pl compflag.h " -msse -msse2  -DTARGET_OS_WINDOWS -DFT2_BUILD_LIBRARY -DHAVE_FDATASYNC -D__LIBRETRO__ -DSQLITE_OMIT_LOAD_EXTENSION -DUSE_TILE -DUSE_TILE_LOCAL -DWIZARD -DUSE_FT  -DPROPORTIONAL_FONT=\"DejaVuSans.ttf\" -DMONOSPACED_FONT=\"DejaVuSansMono.ttf\"  -DUSE_FB -I./source/rltiles -I./source/contrib/lua/src -I./source/contrib/pcre -I./source -I./source/contrib/libpng -I./source/contrib/zlib -I./source/contrib/freetype/include -I./source/contrib/sqlite -I./libretro/libco -O3 -DNDEBUG -std=c++11" "-shared -static-libgcc -static-libstdc++ -Wl,--version-script=libretro/link.T -lwinmm -lgdi32" "libretro" "retro"
D:/GAMES/MinGW/mingw64/bin/make -C source/rltiles all TILES=1
make[1]: Entering directory 'D:/GAMES/MinGW/crawl-ref/crawl-ref/source/rltiles'
    HOSTCXX tool/tile_colour.o
tool/tile_colour.cc:7:18: fatal error: png.h: No such file or directory
  #include <png.h>
                  ^
compilation terminated.
Makefile:133: recipe for target 'tool/tile_colour.o' failed
make[1]: *** [tool/tile_colour.o] Error 1
make[1]: Leaving directory 'D:/GAMES/MinGW/crawl-ref/crawl-ref/source/rltiles'
Makefile.libretro:115: recipe for target 'generate' failed
make: *** [generate] Error 2


since the error seems to be related to some crawl files i thought it would be more appropriate to post it here and not on libretro forums... maybe.

Re: compiling DCSS libretro ipad port

PostPosted: Thursday, 22nd October 2015, 12:33
by lightrow
so i googled a bit and found out my toolchain is missing zlib and libpng packages, i downloaded some prebuilt packages for windows but then it says on generate that libpng is outdated and just crashes :( I downloaded newer packages but i need to compile them beforehand and it just doesnt work in git bash toolchain...

EDIT: should have edited the first post instead of adding another one... Ive installed Cygwin and added all packages from this thread : viewtopic.php?f=9&t=7437, it allowed me to successfully pass the "generate" command, but now im getting errors on compiling. I'll try to redownload the sources from git, since i messed with files in 'contrib' and 'sources' folders and maybe broke something on accident.

EDIT: redownloading didnt help, this is the step where it fails:

  Code:
g++ -std=c++11  -msse -msse2  -DTARGET_OS_WINDOWS -DFT2_BUILD_LIBRARY -DHAVE_FDA                       TASYNC -D__LIBRETRO__ -DSQLITE_OMIT_LOAD_EXTENSION -DUSE_TILE -DUSE_TILE_LOCAL -                       DWIZARD -DUSE_FT  -DPROPORTIONAL_FONT=\"DejaVuSans.ttf\" -DMONOSPACED_FONT=\"Dej                       aVuSansMono.ttf\"  -DUSE_FB -I./source/rltiles -I./source/contrib/lua/src -I./so                       urce/contrib/pcre -I./source -I./source/contrib/libpng -I./source/contrib/zlib -                       I./source/contrib/freetype/include -I./source/contrib/sqlite -I./libretro/libco                        -O3 -DNDEBUG  -c -o source/skill_menu.o source/skill_menu.cc
source/skill_menu.cc: In member function ‘void SkillMenuEntry::set_aptitude()’:
source/skill_menu.cc:350:43: error: ‘to_string’ was not declared in this scope
             text += to_string(manual_bonus);
                                           ^
source/skill_menu.cc: In member function ‘void SkillMenuEntry::set_level()’:
source/skill_menu.cc:369:47: error: ‘to_string’ was not declared in this scope
         m_level->set_text(to_string(level / 10));
                                               ^
<builtin>: recipe for target 'source/skill_menu.o' failed
make: *** [source/skill_menu.o] Error 1



EDIT: looks like i missed INSTALL.TXT: https://github.com/libretro/crawl-ref/c ... 99c5e826cd
gonna try it with msysgit now...