Announcing SDL image/mixer/net/ttf releases!

I’ve released a new set of SDL helper libraries for the SDL 1.2.12 release!

SDL_image 1.2.6
http://www.libsdl.org/projects/SDL_image/

  • Improved detection of libjpeg, libpng, and libtiff at configure time
  • PNG and TIFF images are correctly identified even if dynamic libraries to load them aren’t available.
  • Fixed loading of TIFF images using libtiff 3.6
  • Fixed static linking with libjpeg
  • Fixed crash in IMG_ReadXPMFromArray()
  • Fixed loading certain types of packed bitmap LBM files

SDL_mixer 1.2.8
http://www.libsdl.org/projects/SDL_image/

  • Improved detection of Ogg Vorbis and Tremor libraries
  • Fixed memory leaks in Effects API.
  • Added support for MP3 playback with libmad (for GPL projects only!)
  • Fixed the final loop of audio samples of a certain size
  • Fixed opening Ogg Vorbis files using different C runtimes on Windows
  • Added support for Ogg Vorbis playback with Tremor (an integer decoder)
  • Fixed memory corruption in timidity resampling code
  • Fixed compiling both timidity and native midi in the same build
  • Added volume control to playmus
  • Fixed linking with system libmikmod
  • Corrected no-op conditions in SetDistance(), SetPanning() and SetPosition()
  • Fixed copy/paste errors in channel amplitudes

SDL_net 1.2.7:
http://www.libsdl.org/projects/SDL_net/

  • Set server TCP sockets to blocking mode on Mac OS X, Solaris, etc.

SDL_ttf 2.0.9:
http://www.libsdl.org/projects/SDL_ttf/

  • Fixed rendering of fonts with 2 bit and 4 bit embedded graymaps
  • Fixed bug in solid bold glyph rendering
  • Updated to build with the latest version of FreeType
  • Fixed crash when passing NULL to TTF_CloseFont()

Enjoy!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

SDL_mixer 1.2.8
http://www.libsdl.org/projects/SDL_image/

http://www.libsdl.org/projects/SDL_mixer/

Michael :slight_smile:

Sam Lantinga wrote:

I’ve released a new set of SDL helper libraries for the SDL 1.2.12 release!
[snip]
SDL_net 1.2.7:
http://www.libsdl.org/projects/SDL_net/

The entry for SDL_net-devel-1.2.7-VC6.zip on the above page needs to be updated.–
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

Sam Lantinga wrote:

I’ve released a new set of SDL helper libraries for the SDL 1.2.12 release!
[snip]
SDL_net 1.2.7:
http://www.libsdl.org/projects/SDL_net/

The entry for SDL_net-devel-1.2.7-VC6.zip on the above page needs to be updated.

Done. Thanks!

-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

SDL_mixer 1.2.8
http://www.libsdl.org/projects/SDL_image/

http://www.libsdl.org/projects/SDL_mixer/

Yes, that’s what I meant. Don’t download the image library if you want
to make music. :slight_smile:

Thanks!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

SDL_mixer 1.2.8
http://www.libsdl.org/projects/SDL_image/

FYI, the link for SDL_mixer in this post and on the News page is pointing to
SDL_image…

Ken Rogoway
Homebrew Software
http://www.homebrewsoftware.com/

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.12/910 - Release Date: 7/21/2007
3:52 PM

Building SDL_image with Visual C++ 2005 Express yields the following error:

------ Rebuild All started: Project: SDL_image, Configuration: Debug Win32------
Deleting intermediate and output files for project ‘SDL_image’,
configuration 'Debug|Win32’
Compiling…
IMG.c

Generating Code…
Compiling resources…
.\Version.rc(10) : fatal error RC1015: cannot open include file ‘afxres.h’.

It appears that the afxres.h file was not included with the source.

BTW, I have also tried to compile this using Visual C++ 2002 (7.0) and it
has a number of errors with the AdditionalOptions in the vcproj file
(DYNAMIC defines to use DLL’s). VC 2005 doesn’t bitch about these, but it
won’t compile because of the above issue.

  • Ken Rogoway

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.12/910 - Release Date: 7/21/2007
3:52 PM

It appears that the afxres.h file was not included with the source.

It’s not supposed to be. You need to add the VC++ MFC include directory
to get that.

BTW, I have also tried to compile this using Visual C++ 2002 (7.0) and it
has a number of errors with the AdditionalOptions in the vcproj file
(DYNAMIC defines to use DLL’s). VC 2005 doesn’t bitch about these, but it
won’t compile because of the above issue.

Right, if you want to compile with an earlier version, you should let VC++
upgrade the .dsw project file, instead of try to use the .sln.

See ya,
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

Sam Lantinga wrote:

It appears that the afxres.h file was not included with the source.

It’s not supposed to be. You need to add the VC++ MFC include directory
to get that.

…which is an optional install in Visual Studio, and IIRC not included
at all in the Visual C++ Express Edition/Platform SDK combo. This
completely unnecessary dependency can be removed by globally
substituting winresrc.h for afxres.h. Every time a new SDL version
comes out, I perform this substitution to get it to compile.–
Rainer Deyke - rainerd at eldwood.com

Behalf Of Sam Lantinga

It appears that the afxres.h file was not included with the source.

It’s not supposed to be. You need to add the VC++ MFC include directory to
get that.

BTW, I have also tried to compile this using Visual C++ 2002 (7.0) and
it has a number of errors with the AdditionalOptions in the vcproj
file (DYNAMIC defines to use DLL’s). VC 2005 doesn’t bitch about
these, but it won’t compile because of the above issue.

Right, if you want to compile with an earlier version, you should let VC++
upgrade the .dsw project file, instead of try to use the .sln.

This is exactly what I did since the .sln file is invalid for earlier
versions. I will do it again, but first delete the vcproj file.

Thanks for the heads up.

Ken Rogoway

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.12/910 - Release Date: 7/21/2007
3:52 PM

----- Original Message -----
From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Sent: Monday, July 23, 2007 12:07 AM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] Error compiling SDL_image-1.2.6 for Win32

Behalf Of Rainer Deyke

Sam Lantinga wrote:

It appears that the afxres.h file was not included with the source.

It’s not supposed to be. You need to add the VC++ MFC include
directory to get that.

…which is an optional install in Visual Studio, and IIRC not included at
all in the Visual C++ Express Edition/Platform SDK combo. This completely
unnecessary dependency can be removed by globally substituting winresrc.h
for afxres.h. Every time a new SDL version comes out, I perform this
substitution to get it to compile.

Seems odd to have it depend on MFC for just the one item, but at least I
know what is going on. I like the above work around better and will replace
that include with the recommended one.

Ken Rogoway

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.12/910 - Release Date: 7/21/2007
3:52 PM

----- Original Message -----
From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Sent: Monday, July 23, 2007 5:03 AM
To: sdl at libsdl.org
Subject: Re: [SDL] Error compiling SDL_image-1.2.6 for Win32

"mailto:sdl-bounces at lists.libsdl.org"mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga

BTW, I have also tried to compile this using Visual C++ 2002 (7.0) and
it has a number of errors with the AdditionalOptions in the vcproj
file (DYNAMIC defines to use DLL’s). VC 2005 doesn’t bitch about
these, but it won’t compile because of the above issue.

Right, if you want to compile with an earlier version, you should let
VC++ upgrade the .dsw project file, instead of try to use the .sln.

I tried this again. I deleted everything except the .DSP and .DSW files and
then opened the DSW file. I still get:

Compiling…
cl : Command line warning D4024 : unrecognized source file type
’LOAD_PNG_DYNAMIC=“libpng12-0.dll”’, object file assumed
cl : Command line warning D4027 : source file
’LOAD_PNG_DYNAMIC=“libpng12-0.dll”’ ignored
cl : Command line warning D4024 : unrecognized source file type
’LOAD_TIF_DYNAMIC=“libtiff-3.dll”’, object file assumed
cl : Command line warning D4027 : source file
’LOAD_TIF_DYNAMIC=“libtiff-3.dll”’ ignored

This is because these options are in the .DSP file. I will manually strip
them out of the .DSP file.

Ken Rogoway

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.12/910 - Release Date: 7/21/2007
3:52 PM

----- Original Message -----
From: sdl-bounces@lists.libsdl.org [HYPERLINK
Sent: Monday, July 23, 2007 12:07 AM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] Error compiling SDL_image-1.2.6 for Win32

"mailto:sdl-bounces at lists.libsdl.org"mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Sam Lantinga

Compiling…
cl : Command line warning D4024 : unrecognized source file type
’LOAD_PNG_DYNAMIC=“libpng12-0.dll”’, object file assumed
cl : Command line warning D4027 : source file
’LOAD_PNG_DYNAMIC=“libpng12-0.dll”’ ignored
cl : Command line warning D4024 : unrecognized source file type
’LOAD_TIF_DYNAMIC=“libtiff-3.dll”’, object file assumed
cl : Command line warning D4027 : source file
’LOAD_TIF_DYNAMIC=“libtiff-3.dll”’ ignored

This is because these options are in the .DSP file. I will manually
strip them out of the .DSP file.

Actually it appears to be a project conversion error. You end up with this:

AdditionalOptions="LOAD_PNG_DYNAMIC=\"libpng12-0.dll\"

LOAD_TIF_DYNAMIC="libtiff-3.dll" /D /D
LOAD_PNG_DYNAMIC="libpng12-0.dll"
LOAD_TIF_DYNAMIC="libtiff-3.dll" /D /D
LOAD_PNG_DYNAMIC="libpng12-0.dll"
LOAD_TIF_DYNAMIC="libtiff-3.dll" /D /D
LOAD_PNG_DYNAMIC="libpng12-0.dll"
LOAD_TIF_DYNAMIC="libtiff-3.dll" /D /D "

But it should be this:

  AdditionalOptions="/D LOAD_PNG_DYNAMIC=\"libpng12-0.dll\" /D

LOAD_TIF_DYNAMIC="libtiff-3.dll""/>

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.12/910 - Release Date: 7/21/2007
3:52 PM

From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of Ken Rogoway
Sent: Monday, July 23, 2007 8:16 AM
To: 'A list for developers using the SDL library. (includes SDL-announce)'
Subject: Re: [SDL] Error compiling SDL_image-1.2.6 for Win32

----- Original Message -----
From: sdl-bounces@lists.libsdl.org [HYPERLINK
Sent: Monday, July 23, 2007 12:07 AM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] Error compiling SDL_image-1.2.6 for Win32

It’s not supposed to be. You need to add the VC++ MFC include directory
to get that.

…which is an optional install in Visual Studio, and IIRC not included
at all in the Visual C++ Express Edition/Platform SDK combo.

It is actually. That’s what I’m using.

This completely unnecessary dependency can be removed by globally
substituting winresrc.h for afxres.h. Every time a new SDL version
comes out, I perform this substitution to get it to compile.

Good tip! I’ll try that out.

Thanks!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment