Jump to content
  • Advertisement
Sign in to follow this  
EvanClark

[SDL] SDL_mixer not working (ubuntu)

This topic is 2149 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 this post


Link to post
Share on other sites
Advertisement

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?

Further information could be helpful.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!