Jump to content

  • Log In with Google      Sign In   
  • Create Account


Having problem using SDL_mixer


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 uzipaz   Members   -  Reputation: 200

Like
0Likes
Like

Posted 21 July 2012 - 01:45 PM

Hi everyone, I have been programming with C++ for awhile but I am new at using third party libraries and tools.
I am trying to learn SDL. I download the latest SDL 1.2 (I'm using runtime and development libraries). The download came with all the necessary header files and library files and I am successfully using them in my programming projects.

Today, I decided to use SDL_mixer to add sound effects in my project. I am following this tutorial http://www.sdltutorials.com/sdl-soundbank
The tutorial states that I need to download SDL_mixer separately. I downloaded the latest binary windows release of the SDL_mixer from the official website of SDL (http://www.libsdl.org/projects/SDL_mixer/) and when I extracted the files, I only find runtime libraries in the folder, there are no include header files there, no development libraries.

However, in the tutorial the author is using "SDL_mixer.h" header and has instructed to link SDL_mixer.lib with the project. However, as I downloaded the library of SDL_mixer, there are no headers or .lib files, only .dll files there.

I tried downloading the source code of SDL_mixer and "SDL_mixer.h" was located there so I pasted in my main SDL include folder but I still can't find the SDL_mixer.lib to link it with the project.

I don't know If I am lost or doing something wrong here.... Please guide me....

Thank you...

Sponsor:

#2 nobodynews   Crossbones+   -  Reputation: 1778

Like
1Likes
Like

Posted 21 July 2012 - 02:03 PM

You want the 'developer' binaries for SDL Mixer: SDL_mixer-devel-1.2.12-VC.zip for windows. Haven't tried using it myself.

C++: A Dialog | C++0x Features: Part1 (lambdas, auto, static_assert) , Part 2 (rvalue references) , Part 3 (decltype) | Write Games | Fix Your Timestep!


#3 uzipaz   Members   -  Reputation: 200

Like
0Likes
Like

Posted 21 July 2012 - 02:24 PM

I am using code::blocks IDE, isn't that download supposed to be for Visual C++ IDE only??

#4 riverreal   Members   -  Reputation: 616

Like
0Likes
Like

Posted 21 July 2012 - 02:56 PM

Yes but it can be used with code blocks too.

This tutorial will help you:
http://lazyfoo.net/SDL_tutorials/lesson03/windows/codeblocks/index.php




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS