SDL_image 2.0.0 Release Candidate 1

http://www.libsdl.org/tmp/SDL_image/

Please try it out and report issues (and fixes!) on bugzilla:
http://bugzilla.libsdl.org/

It includes support for iOS and Android.

Cheers!

Release Candidate 2 is up:

  • Added PNG save support based on miniz.c by Rich Geldreich: IMG_SavePNG(),
    IMG_SavePNG_RW()
  • Fixed compiling with older versions of libpng
  • Fixed swapped red/blue channels when loading TGA files
  • Weak link the webp framework on Mac OS X so it can be safely removed if
    you don’t need it

Thanks everyone who tested and reported bugs!On Mon, May 27, 2013 at 8:05 PM, Sam Lantinga <@slouken> wrote:

http://www.libsdl.org/tmp/SDL_image/

Please try it out and report issues (and fixes!) on bugzilla:
http://bugzilla.libsdl.org/

It includes support for iOS and Android.

Cheers!

Wait, why did you add a different PNG saving routine than I had submitted?? Not having a dependency on libpng isn’t really a reason; now you have a dependency on miniz instead, and the dependency on libpng is already in SDL_Image for PNG loading anyway.? So now you have two external dependencies instead of one.

I haven’t looked at it yet, but I was using a modified PNG saving routine internally, that adds custom metadata to the generated PNG under certain circumstances, using libpng’s mechanism for doing so.? Depending on how miniz handles this, I might have to throw that all out and recreate it from the ground up!

Mason________________________________
From: Sam Lantinga
To: A list for developers using the SDL library. (includes SDL-announce)
Sent: Sunday, June 2, 2013 11:33 PM
Subject: Re: [SDL] SDL_image 2.0.0 Release Candidate 1

Release Candidate 2 is up:
*?Added PNG save support based on miniz.c by Rich Geldreich: IMG_SavePNG(), IMG_SavePNG_RW()

  • Fixed compiling with older versions of libpng
  • Fixed swapped red/blue channels when loading TGA files
  • Weak link the webp framework on Mac OS X so it can be safely removed if you don’t need it

Thanks everyone who tested and reported bugs!

On Mon, May 27, 2013 at 8:05 PM, Sam Lantinga wrote:

http://www.libsdl.org/tmp/SDL_image/

Please try it out and report issues (and fixes!) on bugzilla:
http://bugzilla.libsdl.org/

It includes support for iOS and Android.

Cheers!


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

Because Mac OS X and iOS don’t have libpng by default, and miniz.c is
included so it’s always available even if libpng can’t be loaded for some
reason. :slight_smile:

If you’re using custom metadata then you should definitely continue using
your code.On Mon, Jun 3, 2013 at 6:10 AM, Mason Wheeler wrote:

Wait, why did you add a different PNG saving routine than I had
submitted? Not having a dependency on libpng isn’t really a reason; now
you have a dependency on miniz instead, and the dependency on libpng is
already in SDL_Image for PNG loading anyway. So now you have two external
dependencies instead of one.

I haven’t looked at it yet, but I was using a modified PNG saving routine
internally, that adds custom metadata to the generated PNG under certain
circumstances, using libpng’s mechanism for doing so. Depending on how
miniz handles this, I might have to throw that all out and recreate it from
the ground up!

Mason


From: Sam Lantinga <@slouken>
To: A list for developers using the SDL library. (includes
SDL-announce)
Sent: Sunday, June 2, 2013 11:33 PM
Subject: Re: [SDL] SDL_image 2.0.0 Release Candidate 1

Release Candidate 2 is up:

  • Added PNG save support based on miniz.c by Rich Geldreich:
    IMG_SavePNG(), IMG_SavePNG_RW()
  • Fixed compiling with older versions of libpng
  • Fixed swapped red/blue channels when loading TGA files
  • Weak link the webp framework on Mac OS X so it can be safely removed if
    you don’t need it

Thanks everyone who tested and reported bugs!

On Mon, May 27, 2013 at 8:05 PM, Sam Lantinga <@slouken> wrote:

http://www.libsdl.org/tmp/SDL_image/

Please try it out and report issues (and fixes!) on bugzilla:
http://bugzilla.libsdl.org/

It includes support for iOS and Android.

Cheers!


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


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

Not sure if this is really critical, but the webp.framework doesn’t have
ppc architecture, so when you build SDL_image from the Xcode project file
you will get a few link errors because of this. Regarding webp.framework,
it’d be nice to have its xcode project file in the external sources (so
that you can cross import the latter in the former).
VittorioOn Mon, Jun 3, 2013 at 8:33 AM, Sam Lantinga wrote:

Release Candidate 2 is up:

  • Added PNG save support based on miniz.c by Rich Geldreich:
    IMG_SavePNG(), IMG_SavePNG_RW()
  • Fixed compiling with older versions of libpng
  • Fixed swapped red/blue channels when loading TGA files
  • Weak link the webp framework on Mac OS X so it can be safely removed if
    you don’t need it

Thanks everyone who tested and reported bugs!

On Mon, May 27, 2013 at 8:05 PM, Sam Lantinga wrote:

http://www.libsdl.org/tmp/SDL_image/

Please try it out and report issues (and fixes!) on bugzilla:
http://bugzilla.libsdl.org/

It includes support for iOS and Android.

Cheers!


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

Also (sorry for double posting), compiling on 10.6 with Xcode 3.2 give this
error

strip: for architecture i386 object:
SDL_image/Xcode/Frameworks/webp.framework/Versions/A/webp malformed object
(unknown load command 8)

unless you remove that section in the gui.
VittorioOn Wed, Jun 5, 2013 at 1:42 AM, Vittorio Giovara <@Vittorio_Giovara wrote:

Not sure if this is really critical, but the webp.framework doesn’t have
ppc architecture, so when you build SDL_image from the Xcode project file
you will get a few link errors because of this. Regarding webp.framework,
it’d be nice to have its xcode project file in the external sources (so
that you can cross import the latter in the former).
Vittorio

On Mon, Jun 3, 2013 at 8:33 AM, Sam Lantinga wrote:

Release Candidate 2 is up:

  • Added PNG save support based on miniz.c by Rich Geldreich:
    IMG_SavePNG(), IMG_SavePNG_RW()
  • Fixed compiling with older versions of libpng
  • Fixed swapped red/blue channels when loading TGA files
  • Weak link the webp framework on Mac OS X so it can be safely removed if
    you don’t need it

Thanks everyone who tested and reported bugs!

On Mon, May 27, 2013 at 8:05 PM, Sam Lantinga wrote:

http://www.libsdl.org/tmp/SDL_image/

Please try it out and report issues (and fixes!) on bugzilla:
http://bugzilla.libsdl.org/

It includes support for iOS and Android.

Cheers!


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

Because Mac OS X and iOS don’t have libpng by default, and miniz.c is
included so it’s always available even if libpng can’t be loaded for
some reason. :slight_smile:

By that logic, png loading should be switched to miniz too. Because,
you know, Apple OSes don’t have libpng by default, therefore lacking
any ability to work with pngs :slight_smile:

On the other hand, although I too am a bit disappointed libpng-based
version didn’t make it, I’m also quite happy that the long-awaited
ability to save pngs is finally a part of SDL.

Cheers!On Mon, 3 Jun 2013 06:20:09 -0700 Sam Lantinga wrote:


driedfruit

By that logic, png loading should be switched to miniz too. Because,
you know, Apple OSes don’t have libpng by default, therefore lacking
any ability to work with pngs :slight_smile:

Actually (fyi) OSX comes with a libpng version embedded in ImageIO but it’s
not usable by standard programs.

On the other hand, although I too am a bit disappointed libpng-based
version didn’t make it, I’m also quite happy that the long-awaited
ability to save pngs is finally a part of SDL.

And I’m glad that an avoidable dependency has been avoided. :slight_smile:

Cheers,
VittorioOn Thu, Jun 6, 2013 at 12:13 PM, Driedfruit wrote:

As you noticed, ppc is not supported out of the box anymore, since nobody
maintaining the OSX code has tools or testing environments for it. You’re
welcome to tweak the project locally and add documentation on how to do so
for other people though!On Tue, Jun 4, 2013 at 4:42 PM, Vittorio Giovara <vittorio.giovara at gmail.com wrote:

Not sure if this is really critical, but the webp.framework doesn’t have
ppc architecture, so when you build SDL_image from the Xcode project file
you will get a few link errors because of this. Regarding webp.framework,
it’d be nice to have its xcode project file in the external sources (so
that you can cross import the latter in the former).
Vittorio

On Mon, Jun 3, 2013 at 8:33 AM, Sam Lantinga <@slouken> wrote:

Release Candidate 2 is up:

  • Added PNG save support based on miniz.c by Rich Geldreich:
    IMG_SavePNG(), IMG_SavePNG_RW()
  • Fixed compiling with older versions of libpng
  • Fixed swapped red/blue channels when loading TGA files
  • Weak link the webp framework on Mac OS X so it can be safely removed if
    you don’t need it

Thanks everyone who tested and reported bugs!

On Mon, May 27, 2013 at 8:05 PM, Sam Lantinga <@slouken> wrote:

http://www.libsdl.org/tmp/SDL_image/

Please try it out and report issues (and fixes!) on bugzilla:
http://bugzilla.libsdl.org/

It includes support for iOS and Android.

Cheers!


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


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

Hi,

We still support PPC with our game (Bitfighter). SDL2 still actually
compiles out of the box for PPC. I have a 10.6 system with Xcode 3.2 and
the 10.4 SDKs installed. You only have to alter Xcode to use PPC.

I use the attached patch against the upstream Xcode project to build a
universal binary for 3 architectures (i386, ppc, x86_64) in Release mode.
That’s all that’s needed.

DOn Thu, Jun 6, 2013 at 11:33 PM, Sam Lantinga wrote:

As you noticed, ppc is not supported out of the box anymore, since nobody
maintaining the OSX code has tools or testing environments for it. You’re
welcome to tweak the project locally and add documentation on how to do so
for other people though!

On Tue, Jun 4, 2013 at 4:42 PM, Vittorio Giovara < vittorio.giovara at gmail.com> wrote:

Not sure if this is really critical, but the webp.framework doesn’t have
ppc architecture, so when you build SDL_image from the Xcode project file
you will get a few link errors because of this. Regarding webp.framework,
it’d be nice to have its xcode project file in the external sources (so
that you can cross import the latter in the former).
Vittorio

On Mon, Jun 3, 2013 at 8:33 AM, Sam Lantinga wrote:

Release Candidate 2 is up:

  • Added PNG save support based on miniz.c by Rich Geldreich:
    IMG_SavePNG(), IMG_SavePNG_RW()
  • Fixed compiling with older versions of libpng
  • Fixed swapped red/blue channels when loading TGA files
  • Weak link the webp framework on Mac OS X so it can be safely removed
    if you don’t need it

Thanks everyone who tested and reported bugs!

On Mon, May 27, 2013 at 8:05 PM, Sam Lantinga wrote:

http://www.libsdl.org/tmp/SDL_image/

Please try it out and report issues (and fixes!) on bugzilla:
http://bugzilla.libsdl.org/

It includes support for iOS and Android.

Cheers!


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


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


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: SDL2-Xcode_three_arch_universal_binary.diff
Type: application/octet-stream
Size: 987 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130607/95064d8c/attachment.obj

Very nice!

We’re not intentionally breaking PPC, we just can’t test and release
binaries for it.

Cheers!On Thu, Jun 6, 2013 at 11:11 PM, D B wrote:

Hi,

We still support PPC with our game (Bitfighter). SDL2 still actually
compiles out of the box for PPC. I have a 10.6 system with Xcode 3.2 and
the 10.4 SDKs installed. You only have to alter Xcode to use PPC.

I use the attached patch against the upstream Xcode project to build a
universal binary for 3 architectures (i386, ppc, x86_64) in Release mode.
That’s all that’s needed.

D

On Thu, Jun 6, 2013 at 11:33 PM, Sam Lantinga <@slouken> wrote:

As you noticed, ppc is not supported out of the box anymore, since nobody
maintaining the OSX code has tools or testing environments for it. You’re
welcome to tweak the project locally and add documentation on how to do so
for other people though!

On Tue, Jun 4, 2013 at 4:42 PM, Vittorio Giovara < vittorio.giovara at gmail.com> wrote:

Not sure if this is really critical, but the webp.framework doesn’t have
ppc architecture, so when you build SDL_image from the Xcode project file
you will get a few link errors because of this. Regarding webp.framework,
it’d be nice to have its xcode project file in the external sources (so
that you can cross import the latter in the former).
Vittorio

On Mon, Jun 3, 2013 at 8:33 AM, Sam Lantinga <@slouken> wrote:

Release Candidate 2 is up:

  • Added PNG save support based on miniz.c by Rich Geldreich:
    IMG_SavePNG(), IMG_SavePNG_RW()
  • Fixed compiling with older versions of libpng
  • Fixed swapped red/blue channels when loading TGA files
  • Weak link the webp framework on Mac OS X so it can be safely removed
    if you don’t need it

Thanks everyone who tested and reported bugs!

On Mon, May 27, 2013 at 8:05 PM, Sam Lantinga <@slouken>wrote:

http://www.libsdl.org/tmp/SDL_image/

Please try it out and report issues (and fixes!) on bugzilla:
http://bugzilla.libsdl.org/

It includes support for iOS and Android.

Cheers!


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


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


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


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

This has been updated with source to the external libraries and minor
project tweaks.

Cheers!On Mon, May 27, 2013 at 8:05 PM, Sam Lantinga <@slouken> wrote:

http://www.libsdl.org/tmp/SDL_image/

Please try it out and report issues (and fixes!) on bugzilla:
http://bugzilla.libsdl.org/

It includes support for iOS and Android.

Cheers!

win32 testing. If I use the binary, it crashes. If I compile it
myself, it works, so I am not to concerned with that, but it’s probably
something that should be figured out.

Other than that, the initial event re-centering is fixed, so I have no
further complaints for win32.

For me, at this point, it’s useable and “bug free” for OS X, win32, and iOS.

[>] Brian

It seems, that RC1 doesn’t compile with libpng14:

http://bugzilla.libsdl.org/show_bug.cgi?id=1912

Am I getting this right? And if so, can someone with libpng12 confirm
this patch still works for them?–
driedfruit