# Problem with game sound \[RESOLVED\]

**URL:** <https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929>\
**Category:** The Garage\
**Created:** [March 2, 2020, 3:26pm UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929 "2020-03-02T15:26:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![W-F-S](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/w-f-s/32/8127_2.png) [@W-F-S](https://discourse.cataclysmdda.org/u/W-F-S)\
**Post date:** [March 2, 2020, 3:26pm UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/1 "2020-03-02T15:26:15Z")

</div>

I download the git version of the game ()on my Linux Mint (Cinnamon 19.1) and compilated. So I’m trying to put some music in the game. I have seen the mod music CO.AG\_MusicPack\_Redux and I trying to install hin but when I go on the game options does not have the [choose the music]. What I have to make?

---

<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:** [March 2, 2020, 3:28pm UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/2 "2020-03-02T15:28:08Z")

</div>

How did you compile? For sound you need both `TILES=1` and `SOUND=1`.

---

<div class="post-metadata">

**Author:** ![W-F-S](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/w-f-s/32/8127_2.png) [@W-F-S](https://discourse.cataclysmdda.org/u/W-F-S)\
**Post date:** [March 2, 2020, 3:32pm UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/3 "2020-03-02T15:32:46Z")

</div>

No. I compile following the wiki HOW\_TO\_COMPILE using the command “make TILES=1 RELEASE=1”

---

<div class="post-metadata">

**Author:** ![W-F-S](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/w-f-s/32/8127_2.png) [@W-F-S](https://discourse.cataclysmdda.org/u/W-F-S)\
**Post date:** [March 2, 2020, 3:33pm UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/4 "2020-03-02T15:33:32Z")

</div>

i have to compile everything again?

---

<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:** [March 2, 2020, 3:53pm UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/5 "2020-03-02T15:53:14Z")

</div>

Yes, it probably won’t take as long  
You can also add things like `LTO=1` to make the game run faster.

---

<div class="post-metadata">

**Author:** ![W-F-S](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/w-f-s/32/8127_2.png) [@W-F-S](https://discourse.cataclysmdda.org/u/W-F-S)\
**Post date:** [March 2, 2020, 3:59pm UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/6 "2020-03-02T15:59:19Z")

</div>

thanks. Is more things that i can put?

---

<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:** [March 2, 2020, 5:09pm UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/7 "2020-03-02T17:09:43Z")

</div>

Yes, but I don’t remember them off the top of my head, so they’re probably not too important.  
The makefile has a list of them around the top.

---

<div class="post-metadata">

**Author:** ![Mantar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mantar/32/42_2.png) [@Mantar](https://discourse.cataclysmdda.org/u/Mantar)\
**Post date:** [March 2, 2020, 6:26pm UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/8 "2020-03-02T18:26:38Z")

</div>

I usually add CCACHE=1 as it gives faster recompile times.

---

<div class="post-metadata">

**Author:** ![W-F-S](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/w-f-s/32/8127_2.png) [@W-F-S](https://discourse.cataclysmdda.org/u/W-F-S)\
**Post date:** [March 3, 2020, 1:09am UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/9 "2020-03-03T01:09:25Z")

</div>

So. It didn’t work. I have an error message like this

root@walker-Z450LA:~/Documents/games/cataclysmdda-0.D-8574-Linux-Tiles/Cataclysm-DDA# make TILES=1 SOUND=1  
Package SDL2\_mixer was not found in the pkg-config search path.  
Perhaps you should add the directory containing `SDL2_mixer.pc' to the PKG_CONFIG_PATH environment variable No package 'SDL2_mixer' found Package SDL2_mixer was not found in the pkg-config search path. Perhaps you should add the directory containing `SDL2\_mixer.pc’  
to the PKG\_CONFIG\_PATH environment variable  
No package ‘SDL2\_mixer’ found  
Makefile:1092: target ‘data/sound/damalsksoundpack-master/Mods/Ascension’ given more than once in the same rule  
Makefile:1092: target ‘data/sound/damalsksoundpack-master/Mods/Expanded’ given more than once in the same rule  
Makefile:1092: target ‘.json’ given more than once in the same rule  
g++ -DGIT\_VERSION -DTILES -DBACKTRACE -DLOCALIZE -ffast-math -Og -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 -Wredundant-decls -g -fsigned-char -std=c++14 -MMD -MP -DSDL\_SOUND -I/usr/include/SDL2 -D\_REENTRANT -D\_REENTRANT -I/usr/include/SDL2 -D\_REENTRANT -I/usr/include/SDL2 -c src/sdlsound.cpp -o obj/tiles/sdlsound.o  
src/sdlsound.cpp:20:14: fatal error: SDL\_mixer.h: No such file or directory

# include \<SDL\_mixer.h\>

```
          ^ ~~~~~~~~~~~~

```

compilation terminated.  
Makefile:852: recipe for target ‘obj/tiles/sdlsound.o’ failed  
make: \*\*\* [obj/tiles/sdlsound.o] Error 1

Sorry bro but, can you help me or give me some light?

---

<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:** [March 3, 2020, 4:07am UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/10 "2020-03-03T04:07:49Z")

</div>

What linux distro are you on?  
Basically, you need to install an sdl mixer package.

---

<div class="post-metadata">

**Author:** ![MamaLlama](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mamallama/32/7246_2.png) [@MamaLlama](https://discourse.cataclysmdda.org/u/MamaLlama)\
**Post date:** [March 3, 2020, 8:40am UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/11 "2020-03-03T08:40:26Z")

</div>

Double check that you have all the dependencies installed. Sounds like you missed one.

> <https://github.com/CleverRaven/Cataclysm-DDA/blob/a53058fa343d08ef7f9e24a29f9ad89d9a688d52/doc/COMPILING/COMPILING.md#dependencies>

---

<div class="post-metadata">

**Author:** ![W-F-S](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/w-f-s/32/8127_2.png) [@W-F-S](https://discourse.cataclysmdda.org/u/W-F-S)\
**Post date:** [March 3, 2020, 1:33pm UTC](https://discourse.cataclysmdda.org/t/problem-with-game-sound-resolved/22929/12 "2020-03-03T13:33:31Z")

</div>

Yes. I forgot one. Thanks
