Request change to SDL_image

I am having a problem with SDL_image described below and
request a semantics change: add flags for JPEG and TIFF formats
and do not initialise them unless requested.

At present SDL_image loads these by default. I wish it not to :slight_smile:

My problem is: on OSX I have an old Macports 32 bit libtiff. So I decided
to rebuild the bleeding edge libjpeg and libtiff from source to fix this,
and install in the “unix” location /usr/local (instead of frameworks
or /opt or whatever).

Libjpeg 9 built fine, but it is in fact badly written and bugged,
having the same problems I have argued SDL should avoid:
it defines TRUE and boolean etc.

This is all fine until trying to build libtiff which uses libjpeg header
files and won’t compile because of the above stupidity. Adding the
flag suggested in the libjpeg source to disable the macros causes
a lot of errors to spew out of the compiler.

The bottom line is that libtiff depends on libjpeg for some reason
I don’t understand but isn’t compatible with the most recent version,
at least on OSX. Since both these systems uses auto-crap for configuration
which is impenetrable to me, I have no idea if its a configuration issue
or just the plain bad coding in libjpeg.

I am not actually using TIFF or JPEG, I’m happy with PNG at the moment,
but I get annoying diagnostic telling me libtiff has the wrong architecture
(32 bits) when I’m running 64 bits (at run time).

If someone can help me build these libraries properly this would be appreciated,
but in any case I don’t understand why SDL_image should mandate their
availability.–
john skaller
@john_skaller
http://felix-lang.org

The configure script has options to disable any of the image formats. If
you’re building on OSX, most of them are either built in or handled by the
ImageIO framework.On Sat, Jul 13, 2013 at 4:50 PM, john skaller <skaller at users.sourceforge.net wrote:

I am having a problem with SDL_image described below and
request a semantics change: add flags for JPEG and TIFF formats
and do not initialise them unless requested.

At present SDL_image loads these by default. I wish it not to :slight_smile:

My problem is: on OSX I have an old Macports 32 bit libtiff. So I decided
to rebuild the bleeding edge libjpeg and libtiff from source to fix this,
and install in the “unix” location /usr/local (instead of frameworks
or /opt or whatever).

Libjpeg 9 built fine, but it is in fact badly written and bugged,
having the same problems I have argued SDL should avoid:
it defines TRUE and boolean etc.

This is all fine until trying to build libtiff which uses libjpeg header
files and won’t compile because of the above stupidity. Adding the
flag suggested in the libjpeg source to disable the macros causes
a lot of errors to spew out of the compiler.

The bottom line is that libtiff depends on libjpeg for some reason
I don’t understand but isn’t compatible with the most recent version,
at least on OSX. Since both these systems uses auto-crap for configuration
which is impenetrable to me, I have no idea if its a configuration issue
or just the plain bad coding in libjpeg.

I am not actually using TIFF or JPEG, I’m happy with PNG at the moment,
but I get annoying diagnostic telling me libtiff has the wrong architecture
(32 bits) when I’m running 64 bits (at run time).

If someone can help me build these libraries properly this would be
appreciated,
but in any case I don’t understand why SDL_image should mandate their
availability.


john skaller
skaller at users.sourceforge.net
http://felix-lang.org


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

The configure script has options to disable any of the image formats. If you’re building on OSX, most of them are either built in or handled by the ImageIO framework.

Thanks! Didn’t know that.

[There’s no ImageIO framework on OSX, seems that iOS only.]On 14/07/2013, at 12:35 PM, Sam Lantinga wrote:


john skaller
@john_skaller
http://felix-lang.org

Sure there is: http://developer.apple.com/library/mac/#documentation/graphicsimaging/conceptual/ImageIOGuide/imageio_basics/ikpg_basics.htmlOn 2013-07-14, at 12:59 AM, john skaller wrote:

On 14/07/2013, at 12:35 PM, Sam Lantinga wrote:

The configure script has options to disable any of the image formats. If you’re building on OSX, most of them are either built in or handled by the ImageIO framework.

Thanks! Didn’t know that.

[There’s no ImageIO framework on OSX, seems that iOS only.]


john skaller
skaller at users.sourceforge.net
http://felix-lang.org


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

Sure there is: http://developer.apple.com/library/mac/#documentation/graphicsimaging/conceptual/ImageIOGuide/imageio_basics/ikpg_basics.html

That’s a good link, thanks. It doesn’t really say what “Application Services” are
so I guess its just linked in automatically/ Anyhow, the PNG imaging I’m using
seems to work (hard to be sure at the moment because something else is
crashing my app :)On 14/07/2013, at 2:07 PM, Alexander Szpakowski wrote:


john skaller
@john_skaller
http://felix-lang.org