# [SDL] SDL_mixer not working (ubuntu)

## Recommended Posts

EvanClark    130

Hello i have been working with sdl for a while but this is my first time
using sound. However when i try to install SDL_Mixer with this
following command

sudo apt-get install ibsdl-mixer1.2-dev


it all installs perfectly and such but then when i run a program (made
by lazy foo) it returns an error "SDL_types not found" how would i be
able to fix this?

##### Share on other sites
__SKYe    1784

I don't use Ubuntu, and never used SDL, but if it installed correctly, maybe you have to add the SDL_Mixer directory to your project, or something along those lines.

What is your IDE and language? Does your program without sound work fine? Have you installed any other SDL package the same way, and it worked?

##### Share on other sites
ultramailman    1720
Try linking with sdl_mixer, if you haven't. So you would add an -lsdl_mixer command line option to gcc, and that way it will link to the sdl_mixer library.