Disable Broken MP3 In SDL2_Mixer Source? HOW?

Hi,

I’ve been fighting all day to compile the following(Win32):

  • SDL2 (Ready!)
  • SDL2_Image (Ready!)
  • SDL2_Mixer (Does Not Compile!)
  • SDL2_TTF (Not Yet Tried)
  • SDL2_Net (Not Yet Tried)

When compiling SDL2_Mixer in MSVS12 I receive the following errors:
(The errors are with MP3)

How do I disable unsupported MP3 in SDL2_Mixer so it will compile?
Thanks!

And I am building SDL2 on Microsoft® Windows® 7 Ultimate 64Bit SP1

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

You can just remove MP3_MUSIC from the C preprocessor defines.

Cheers!On Sat, Apr 27, 2013 at 4:22 PM, JeZ-l-Lee < JessePalserMailingLists at gmail.com> wrote:

**
Hi,

I’ve been fighting all day to compile the following(Win32):

  • SDL2 (Ready!)
  • SDL2_Image (Ready!)
  • SDL2_Mixer (Does Not Compile!)
  • SDL2_TTF (Not Yet Tried)
  • SDL2_Net (Not Yet Tried)

When compiling SDL2_Mixer in MSVS12 I receive the following errors:
(The errors are with MP3)

How do I disable unsupported MP3 in SDL2_Mixer so it will compile?
Thanks!

And I am building SDL2 on Microsoft® Windows® 7 Ultimate 64Bit SP1


JeZ+Lee
JessePalser Gmail com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Sam Lantinga wrote:

You can just remove?MP3_MUSIC from the C preprocessor defines.

Cheers!
Hi,

That works, but still more errors?

This is a nightmare, I could have terraformed the planet Mars in the time I have wasted!

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

I’ve been having some updates to SDL_mixer for VS2010 on the harddrive
for a while (attached) and with those changes applied SDL_mixer compiles
for me (not all executables - yet).

It would actually be great if interested folks on the list could do a
quick validation of this patch on other platforms to make sure it
doesn’t break anything and is sane…

Cheers,
AndreasOn 4/27/2013 5:25 PM, JeZ-l-Lee wrote:

Sam Lantinga wrote:
You can just remove MP3_MUSIC from the C preprocessor defines.

Cheers!

Hi,

That works, but still more errors?

This is a nightmare, I could have terraformed the planet Mars in the
time I have wasted!


JeZ+Lee
JessePalser Gmail com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com http://www.16BitSoft.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL_mixer-VS2010.patch.gz
Type: application/x-gzip
Size: 12457 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130427/2f5efc68/attachment.bin

Message-ID: <1367108726.m2f.36841 at forums.libsdl.org>
Content-Type: text/plain; charset=“iso-8859-1”

Sam Lantinga wrote:

You can just remove?MP3_MUSIC from the C preprocessor defines.

Cheers!
Hi,

That works, but still more errors?

This is a nightmare, I could have terraformed the planet Mars in the time I
have wasted!

[Image:
http://16bitsoft.com/V2/Images/Stuff/SDL2mixer_Win32_Build_Errors_04.png ]

It looks like you only got three errors that time, all of them
relating to a failure to find libraries. Specifically, SDL.lib and
SDL2.lib. The rest of that is nothing but warnings about possible
bugs. We need to see the output pane, and maybe know something about
how you’ve configured things to run. It’s quite possible that you just
don’t have SDL_mixer looking at the right place.> Date: Sat, 27 Apr 2013 17:25:27 -0700

From: “JeZ-l-Lee”
To: sdl at lists.libsdl.org
Subject: Re: [SDL] Disable Broken MP3 In SDL2_Mixer Source? HOW?

Jared Maddox wrote:

It looks like you only got three errors that time, all of them
relating to a failure to find libraries. Specifically, SDL.lib and
SDL2.lib. The rest of that is nothing but warnings about possible
bugs. We need to see the output pane, and maybe know something about
how you’ve configured things to run. It’s quite possible that you just
don’t have SDL_mixer looking at the right place.
Hi,

Are the LIBs something that is compiled?
I compiled SDL2 and can’t find any LIBs in the directory?
Not sure how to proceed, please advise.
Thanks…------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

Message-ID: <1367193803.m2f.36853 at forums.libsdl.org>
Content-Type: text/plain; charset=“iso-8859-1”

Jared Maddox wrote:

It looks like you only got three errors that time, all of them
relating to a failure to find libraries. Specifically, SDL.lib and
SDL2.lib. The rest of that is nothing but warnings about possible
bugs. We need to see the output pane, and maybe know something about
how you’ve configured things to run. It’s quite possible that you just
don’t have SDL_mixer looking at the right place.
Hi,

Are the LIBs something that is compiled?
I compiled SDL2 and can’t find any LIBs in the directory?
Not sure how to proceed, please advise.
Thanks…

First, a word of warning: the last time I tried Visual Studio, I
uninstalled it after maybe two days. Before that was probably 8 or
more years ago. Thus, I’m not a Visual Studio aficionado.

Now, for your problem. LIB files are library files, which makes them
the Microsoft version of GCC’s archive (.a) files. In both cases,
they’re created from object (.o) files, using what can be called a
"libtool", I believe that the one for Microsoft is called LINK.

What is the output of the compilation of SDL2 itself? Are you certain
that there were NO problems in compiling it? Is it possible that the
object files were created, but a later library-archiving step failed?> Date: Sun, 28 Apr 2013 17:03:24 -0700

From: “JeZ-l-Lee”
To: sdl at lists.libsdl.org
Subject: Re: [SDL] Disable Broken MP3 In SDL2_Mixer Source? HOW?