# Guide for compiling on cygwin

**URL:** <https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256>\
**Category:** The Bunker\
**Created:** [July 25, 2020, 8:37pm UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256 "2020-07-25T20:37:46Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dracolich\_Zero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dracolich_zero/32/9677_2.png) [@Dracolich\_Zero](https://discourse.cataclysmdda.org/u/Dracolich_Zero)\
**Post date:** [July 25, 2020, 8:37pm UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/1 "2020-07-25T20:37:46Z")

</div>

Hi all, been a long time since i’ve played the game and i want to come back, but i despise the look of the windows terminal and i want to play with cygwin which has a sexy look, however i have no clue on how to do this, so i’m asking for all the good hearted folks around here that can give me a hand with a tutorial of sorts so that i can start playing again 🙂

Thanks…

---

<div class="post-metadata">

**Author:** ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)\
**Post date:** [July 25, 2020, 8:39pm UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/2 "2020-07-25T20:39:06Z")

</div>

[Here’s the guide](https://github.com/CleverRaven/Cataclysm-DDA/blob/e092a04d939474c519e0e936898bbd2f07fe6712/doc/COMPILING/COMPILING-CYGWIN.md).

---

<div class="post-metadata">

**Author:** ![Dracolich\_Zero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dracolich_zero/32/9677_2.png) [@Dracolich\_Zero](https://discourse.cataclysmdda.org/u/Dracolich_Zero)\
**Post date:** [July 25, 2020, 9:20pm UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/3 "2020-07-25T21:20:33Z")

</div>

You sir are a GOD. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Dracolich\_Zero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dracolich_zero/32/9677_2.png) [@Dracolich\_Zero](https://discourse.cataclysmdda.org/u/Dracolich_Zero)\
**Post date:** [July 26, 2020, 12:33am UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/4 "2020-07-26T00:33:02Z")

</div>

i got the following error at the compile step

make CCACHE=1 RELEASE=1 CYGWIN=1 DYNAMIC\_LINKING=1 SDL=1 TILES=1 SOUND=1 LOCALIZE=1 LANGUAGES=all LINTJSON=0 ASTYLE=0 RUNTESTS=0  
ccache g++ -DRELEASE -DCATA\_NO\_CPP11\_STRING\_CONVERSIONS -DGIT\_VERSION -DTILES -DBACKTRACE -DLOCALIZE -D\_GLIBCXX\_USE\_C99\_MATH\_TR1 -ffast-math -Os -Werror -Wall -Wextra -Wformat-signedness -Wlogical-op -Wmissing-declarations -Wmissing-noreturn -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wpedantic -Wsuggest-override -Wunused-macros -Wzero-as-null-pointer-constant -Wno-unknown-warning-option -Wimplicit-fallthrough=0 -Wredundant-decls -fsigned-char -std=gnu++14 -MMD -MP -I/usr/include/SDL2 -D\_REENTRANT -DSDL\_SOUND -I/usr/include/SDL2 -D\_REENTRANT -I/usr/include/SDL2 -D\_REENTRANT -I/usr/include/SDL2 -D\_REENTRANT -c src/achievement.cpp -o obj/tiles/achievement.o  
make: ccache: No such file or directory  
make: \*\*\* [Makefile:870: obj/tiles/achievement.o] Error 127

any ideas?

---

<div class="post-metadata">

**Author:** ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)\
**Post date:** [July 26, 2020, 12:47am UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/5 "2020-07-26T00:47:22Z")

</div>

Install ccache.

---

<div class="post-metadata">

**Author:** ![Dracolich\_Zero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dracolich_zero/32/9677_2.png) [@Dracolich\_Zero](https://discourse.cataclysmdda.org/u/Dracolich_Zero)\
**Post date:** [July 26, 2020, 1:03am UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/6 "2020-07-26T01:03:42Z")

</div>

now it says this:

make CCACHE=1 RELEASE=1 CYGWIN=1 DYNAMIC\_LINKING=1 SDL=1 TILES=1 SOUND=1 LOCALIZE=1 LANGUAGES=all LINTJSON=0 ASTYLE=0 RUNTESTS=0ccache g++ -DRELEASE -DCATA\_NO\_CPP11\_STRING\_CONVERSIONS -DGIT\_VERSION -DTILES -DBACKTRACE -DLOCALIZE -D\_GLIBCXX\_USE\_C99\_MATH\_TR1 -ffast-math -Os -Werror -Wall -Wextra -Wformat-signedness -Wlogical-op -Wmissing-declarations -Wmissing-noreturn -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wpedantic -Wsuggest-override -Wunused-macros -Wzero-as-null-pointer-constant -Wno-unknown-warning-option -Wimplicit-fallthrough=0 -Wredundant-decls -fsigned-char -std=gnu++14 -MMD -MP -I/usr/include/SDL2 -D\_REENTRANT -DSDL\_SOUND -I/usr/include/SDL2 -D\_REENTRANT -I/usr/include/SDL2 -D\_REENTRANT -I/usr/include/SDL2 -D\_REENTRANT -c src/debug.cpp -o obj/tiles/debug.o  
src/debug.cpp:60:17: fatal error: execinfo.h: No such file or directory  
60 | # include \<execinfo.h\>  
| ^ ~~~~~~~~~~~  
compilation terminated.  
make: \*\*\* [Makefile:870: obj/tiles/debug.o] Error 1

---

<div class="post-metadata">

**Author:** ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)\
**Post date:** [July 26, 2020, 1:04am UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/7 "2020-07-26T01:04:56Z")

</div>

I don’t know about that one, make an issue.

---

<div class="post-metadata">

**Author:** ![Dracolich\_Zero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dracolich_zero/32/9677_2.png) [@Dracolich\_Zero](https://discourse.cataclysmdda.org/u/Dracolich_Zero)\
**Post date:** [July 26, 2020, 1:05am UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/8 "2020-07-26T01:05:30Z")

</div>

Thanks, i’ll look into it.

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [July 26, 2020, 9:21am UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/9 "2020-07-26T09:21:17Z")

</div>

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/41040>
>
> Errors when building with Cygwin
> Compiling via make fails under Cygwin 86-64.
> Steps To Reproduce
> git pull
> make -j
> Expected behavior
> Project builds successfully, per description in...

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [July 26, 2020, 9:24am UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/10 "2020-07-26T09:24:28Z")

</div>

It does not matter how terminal looks in Cygwin as non-SDL builds are not available there, so I suggest you just using MSYS - [https://github.com/CleverRaven/Cataclysm-DDA/blob/1e9533926517037193edc5e7ff9e1ad87c2ce5f9/doc/COMPILING/COMPILING-MSYS.md](https://github.com/CleverRaven/Cataclysm-DDA/blob/1e9533926517037193edc5e7ff9e1ad87c2ce5f9/doc/COMPILING/COMPILING-MSYS.md)

---

<div class="post-metadata">

**Author:** ![Dracolich\_Zero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dracolich_zero/32/9677_2.png) [@Dracolich\_Zero](https://discourse.cataclysmdda.org/u/Dracolich_Zero)\
**Post date:** [July 26, 2020, 1:21pm UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/11 "2020-07-26T13:21:45Z")

</div>

Thanks i’ll look it up.

---

<div class="post-metadata">

**Author:** ![Dracolich\_Zero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dracolich_zero/32/9677_2.png) [@Dracolich\_Zero](https://discourse.cataclysmdda.org/u/Dracolich_Zero)\
**Post date:** [July 26, 2020, 3:59pm UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/12 "2020-07-26T15:59:31Z")

</div>

Ok the thing is i run the game and it has it´s own window which i can´t customize colors with, and that´s the main reason i used cywin to begin with, is there a way to customize the background black color to another?

---

<div class="post-metadata">

**Author:** ![Dracolich\_Zero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dracolich_zero/32/9677_2.png) [@Dracolich\_Zero](https://discourse.cataclysmdda.org/u/Dracolich_Zero)\
**Post date:** [July 26, 2020, 4:10pm UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/13 "2020-07-26T16:10:28Z")

</div>

i want to customize colors like this [https://preview.redd.it/ba5k9gs1y8w01.png?width=960&crop=smart&auto=webp&s=b427e2628d7d2f3e6d952c959b9ef2f2a745fedc](https://preview.redd.it/ba5k9gs1y8w01.png?width=960&crop=smart&auto=webp&s=b427e2628d7d2f3e6d952c959b9ef2f2a745fedc)

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [July 26, 2020, 5:21pm UTC](https://discourse.cataclysmdda.org/t/guide-for-compiling-on-cygwin/24256/14 "2020-07-26T17:21:48Z")

</div>

`base_colors.json` in `config` folder.
