Building Win32 SDL2_Mixer In MSVS12 - Errors?

Hi,

I am trying to build Win32 SDL2_Mixer in MSVS12, but receive these errors.
Any help would be appreciated, thanks!

[Image: http://16bitsoft.com/V2/Images/Stuff/SDL2mixer_Win32_Build_Errors_01.png ]------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

It cannot find the headers because the include path is not correct apparently. You should add the include path of SDL headers in your solution.

Be careful, SDL_mixer will not build with SDL2, because it uses SDL_Overlay function, which is not available in SDL2.
I don’t know how to change SDL_mixer code so that it doesn’t use SDL_Overlay.
But it’s only needed for mp3 support if I understand correctly, so if you don’t need it, you can remove MP3_* preprocessor directives, then it will build.

li wrote:

It cannot find the headers because the include path is not correct apparently. You should add the include path of SDL headers in your solution.

Be careful, SDL_mixer will not build with SDL2, because it uses SDL_Overlay function, which is not available in SDL2.
I don’t know how to change SDL_mixer code so that it doesn’t use SDL_Overlay.
But it’s only needed for mp3 support if I understand correctly, so if you don’t need it, you can remove MP3_* preprocessor directives, then it will build.
Hi,

I added SDL2 header path to SDL2_Mixer MSVS project, but it’s not working?

[Image: http://16bitsoft.com/V2/Images/Stuff/SDL2mixer_Win32_Build_Errors_02.png ]------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

You have to do it in every project, not only SDL_mixer project.

li wrote:

You have to do it in every project, not only SDL_mixer project.
Hi,

I don’t understand.
How do I do that in MSVS12 ?

Thanks!------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

Need your help!
Can’t build Win32 SDL2_Mixer in MSVS12…

Here are the errors in the original forum post:
http://forums.libsdl.org/viewtopic.php?t=9032------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

Figured it out, thanks!------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com