Page 1 of 1

Trouble compiling crawl

PostPosted: Sunday, 15th January 2017, 15:03
by dracos369
  Code:
$ make TILES=Y
sh: cc: command not found
make: gcc: Command not found
/bin/sh: g++: command not found
/bin/sh: g++: command not found
which: no advpng in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
which: no pngcrush in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
  * If you experience any problems building Crawl, please take a second look
  * at INSTALL.txt: the solution to your problem just might be in there!
    * Need to build contribs: pcre freetype libpng sdl2 sdl2-image zlib lua/src sqlite
make[1]: Entering directory '/home/tihom_000/crawl/crawl-ref/source/contrib'
make[2]: Entering directory '/home/tihom_000/crawl/crawl-ref/source/contrib/pcre'
    CC pcre_byte_order.o
/bin/sh: gcc: command not found
make[2]: *** [Makefile:115: pcre_byte_order.o] Error 127
make[2]: Leaving directory '/home/tihom_000/crawl/crawl-ref/source/contrib/pcre'
make[1]: *** [Makefile:24: pcre] Error 2
make[1]: Leaving directory '/home/tihom_000/crawl/crawl-ref/source/contrib'
make: *** [Makefile:1564: .contrib-libs] Error 2

Umm... plese help?

I'm using MSYS2 on Win10
I followed all the instructions found here.

Re: Trouble compiling crawl

PostPosted: Sunday, 15th January 2017, 17:07
by pedritolo
Hi, did you exit and restarted the mingw64.exe after each package install? (I'm assuming you installed the c dev tools as specified in the install notes, ofc)

Re: Trouble compiling crawl

PostPosted: Sunday, 15th January 2017, 17:21
by dracos369
I don't think I did. I think I only restarted once

Re: Trouble compiling crawl

PostPosted: Monday, 16th January 2017, 09:05
by gammafunk
It looks like you have make, so you have the dev toolchain probably, but you don't have a compiler. Maybe you didn't follow the instructions from here:

  Code:
pacman -S mingw-w64-x86_64-toolchain

Verify that you've run this pacman command to install the compiler toolchain. If so you should be able to simply type 'gcc -v' from the bash shell and get a bunch of gcc version info.

Re: Trouble compiling crawl

PostPosted: Monday, 16th January 2017, 20:06
by dracos369
It appears it was not installed. Funny, I distinctly remember doing that step. Oh, well.

Re: Trouble compiling crawl

PostPosted: Monday, 16th January 2017, 21:45
by dracos369
OK, I reinstalled the package (and it said reinstalling), but I still get the same message.