# Noob of Linux need an Retard Guide for Compiling

**URL:** <https://discourse.cataclysmdda.org/t/noob-of-linux-need-an-retard-guide-for-compiling/13551>\
**Category:** The Toolbox\
**Created:** [March 26, 2017, 9:23am UTC](https://discourse.cataclysmdda.org/t/noob-of-linux-need-an-retard-guide-for-compiling/13551 "2017-03-26T09:23:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etherdreamer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/etherdreamer/32/8528_2.png) [@Etherdreamer](https://discourse.cataclysmdda.org/u/Etherdreamer)\
**Post date:** [March 26, 2017, 9:23am UTC](https://discourse.cataclysmdda.org/t/noob-of-linux-need-an-retard-guide-for-compiling/13551/1 "2017-03-26T09:23:08Z")

</div>

Title. Even tried to read the guides for that, maybe because my language issues / no knowledge about Linux, I can´t understand at all how to compile a graphical version of the game.

Maybe a step by step guide somewhere, please? There is a error with some libraries that don´t let me run the tiles version and I installed and tried several guides for installing the libraries and never worked at all.

distro- Linux Mint

---

<div class="post-metadata">

**Author:** ![Weyrling](https://avatars.discourse-cdn.com/v4/letter/w/7bcc69/32.png) [@Weyrling](https://discourse.cataclysmdda.org/u/Weyrling)\
**Post date:** [March 30, 2017, 7:52pm UTC](https://discourse.cataclysmdda.org/t/noob-of-linux-need-an-retard-guide-for-compiling/13551/2 "2017-03-30T19:52:16Z")

</div>

Well first you want git, to get it you just open up a console and do:

```auto

```

This is also how basically everything on Linux is installed including the libraries you’ll need.

Then you want to clone from the git onto your computer.  
To do this you’ll want to first use the command line to navigate to where you want the working project to be, then do:

```auto

```

Next you’ll want to install all of the libraries, I suggest you look at this:

> <https://github.com/CleverRaven/Cataclysm-DDA/blob/master/COMPILING.md>

Keep in mind you’ll also want the dev versions of these libraries, for example instead of just sdl2\_mixer or libsdl2, you might also need sdl2\_mixer-dev or libsdl2-dev.  
I don’t remember exactly which ones you need, but they should be listed on the github.

Once you’ve done that, you’ll want to try to compile it, so navigate to the Cataclysm-DDA folder with the Makefile in it and try something like:

```auto

```

At this point you’ll probably get an error about some library you missed, so just run an apt-get at whatever the error was about.  
Remember to try appending “-dev” on the end of it if it doesn’t fix itself with a simple attempt.

You can compile with a bunch of different options, for reference I think my normal compile command is something like:

```auto

```

---

<div class="post-metadata">

**Author:** ![jcd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jcd/32/338_2.png) [@jcd](https://discourse.cataclysmdda.org/u/jcd)\
**Post date:** [March 30, 2017, 9:16pm UTC](https://discourse.cataclysmdda.org/t/noob-of-linux-need-an-retard-guide-for-compiling/13551/3 "2017-03-30T21:16:05Z")

</div>

> [@Weyrling](#):
>
> `MAKE TILES=1 SOUND=1 LUA=1 RELEASE=1`

i’d add that it should be

```auto
make TILES=1 SOUND=1 LUA=1 RELEASE=1
```

… at least in my distro…

---

<div class="post-metadata">

**Author:** ![Etherdreamer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/etherdreamer/32/8528_2.png) [@Etherdreamer](https://discourse.cataclysmdda.org/u/Etherdreamer)\
**Post date:** [April 3, 2017, 6:13am UTC](https://discourse.cataclysmdda.org/t/noob-of-linux-need-an-retard-guide-for-compiling/13551/4 "2017-04-03T06:13:55Z")

</div>

Package SDL2\_image was not found in the pkg-config search path.  
Perhaps you should add the directory containing `SDL2_image.pc' to the PKG_CONFIG_PATH environment variable No package 'SDL2_image' found Package SDL2_ttf was not found in the pkg-config search path. Perhaps you should add the directory containing`SDL2\_ttf.pc’  
to the PKG\_CONFIG\_PATH environment variable  
No package ‘SDL2\_ttf’ found  
/bin/sh: 1: astyle: not found  
Cannot run an astyle check, your system either does not have astyle, or it is too old.  
g++ -DRELEASE -DGIT\_VERSION -DTILES -DLOCALIZE -ffast-math -Os -Wall -Wextra -fsigned-char -Werror -std=c++11 -MMD -D\_REENTRANT -I/usr/include/SDL2 -DSDL\_SOUND -I/usr/include/lua5.3 -DLUA -I/usr/include/SDL2 -D\_REENTRANT -c src/game.cpp -o obj/tiles/game.o  
In file included from src/game.cpp:110:0:  
src/cata\_tiles.h:6:21: fatal error: SDL\_ttf.h: No such file or directory  
compilation terminated.  
Makefile:687: recipe for target ‘obj/tiles/game.o’ failed  
make: \*\*\* [obj/tiles/game.o] Error 1

Anything of this makes no sense to me, I installed the dependencies that says the compile file. Or dunno, nothing it´s really clear to me.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [April 3, 2017, 8:42am UTC](https://discourse.cataclysmdda.org/t/noob-of-linux-need-an-retard-guide-for-compiling/13551/5 "2017-04-03T08:42:45Z")

</div>

Did you install dependencies with “-dev” suffix?  
You most likely only got the user libs and not the dev ones. Dev ones are necessary to compile anything.  
Also astyle

What do you need the compiled version for? If just for testing PRs, console version would be enough. If for playing, you could just get the binaries from [http://dev.narc.ro/cataclysm/jenkins-latest/](http://dev.narc.ro/cataclysm/jenkins-latest/)  
Unless you need to test PRs that change tiles or sound related code, that is.

---

<div class="post-metadata">

**Author:** ![Clwebb](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Clwebb](https://discourse.cataclysmdda.org/u/Clwebb)\
**Post date:** [April 18, 2017, 9:26am UTC](https://discourse.cataclysmdda.org/t/noob-of-linux-need-an-retard-guide-for-compiling/13551/6 "2017-04-18T09:26:19Z")

</div>

Will this work on Raspberry Pi 2 too?
