The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Building Win32 SDL2_Mixer In MSVS12 - Errors?
JeZ-l-Lee


Joined: 20 Sep 2009
Posts: 572
Location: Long Island, New York, United States, Earth
Hi,

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

li


Joined: 29 Mar 2013
Posts: 16
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.
JeZ-l-Lee


Joined: 20 Sep 2009
Posts: 572
Location: Long Island, New York, United States, Earth
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?

li


Joined: 29 Mar 2013
Posts: 16
You have to do it in every project, not only SDL_mixer project.
JeZ-l-Lee


Joined: 20 Sep 2009
Posts: 572
Location: Long Island, New York, United States, Earth
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-l-Lee


Joined: 20 Sep 2009
Posts: 572
Location: Long Island, New York, United States, Earth
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-l-Lee


Joined: 20 Sep 2009
Posts: 572
Location: Long Island, New York, United States, Earth
Figured it out, thanks!