Sign in to follow this  
Koshmaar

Announcing SDL 1.2.10

Recommended Posts

Recently Sam Lantinga posted this email on the SDL mailinglist:
"SDL 1.2.10 has been released!
http://www.libsdl.org/download-1.2.php

SDL 1.2.10 is a major release, featuring a revamp of the build system and many API improvements and bug fixes.

API enhancements

    * If SDL_OpenAudio() is passed zero for the desired format fields, the following environment variables will be used to fill them in:
		SDL_AUDIO_FREQUENCY
		SDL_AUDIO_FORMAT
		SDL_AUDIO_CHANNELS
		SDL_AUDIO_SAMPLES
      If an environment variable is not specified, it will be set to a reasonable default value.
    * SDL_SetVideoMode() now accepts 0 for width or height and will use the current video mode (or the desktop mode if no mode has been set.)
    * Added current_w and current_h to the SDL_VideoInfo structure, which is set to the desktop resolution during video intialization,
      and then set to the current resolution when a video mode is set.
    * SDL_GL_LoadLibrary() will load the system default OpenGL library if it is passed NULL as a parameter.
    * Added SDL_GL_SWAP_CONTROL to wait for vsync in OpenGL applications.
    * Added SDL_GL_ACCELERATED_VISUAL to guarantee hardware acceleration.
    * SDL_WM_SetCaption() now officially takes UTF-8 title and icon strings, and displays international characters on supported platforms.
    * Added SDL_GetKeyRepeat() to query the key repeat settings.
    * Added the "dummy" audio driver, which can be used to emulate audio output without a sound card.
    * Added SDL_config.h, with defaults for various build environments. 

General Notes

    * The SDL website now has an RSS feed!
    * The SDL development source code is now managed with Subversion.
    * SDL now uses the Bugzilla bug tracking system, hosted by icculus.org.
    * SDL is licensed under version 2.1 of the GNU Lesser General Public License.
    * The entire build system has been revamped to make it much more portable, including versions of C library functions
      to make it possible to run SDL on a minimal embedded environment. See README.Porting in the SDL source distribution for information
      on how to port SDL to a new platform.
    * SDL_opengl.h has been updated with the latest glext.h from http://oss.sgi.com/projects/ogl-sample/registry/
    * Alex Volkov contributed highly optimized RGB <-> RGBA blitters. 

Unix Notes

    * The X11 libraries are dynamically loaded at runtime by default. This allows the distributed version of SDL
      to run on systems without X11 libraries installed.
    * The XiG XME extension code is now included in the X11 video driver by default.
    * XRandR support for video mode switching has been added to the X11 driver, but is disabled
      because of undesired interactions with window managers. You can enable this by setting the environment variable SDL_VIDEO_X11_XRANDR to 1.
    * Xinerama multi-head displays are properly handled now, and the SDL_VIDEO_FULLSCREEN_HEAD environment variable can be used
      to select the screen used for fullscreen video modes. Note that changing the video modes only works on screen 0.
    * XVidMode video modes are now sorted so they maintain the refresh rates specified in the X11 configuration file.
    * SDL windows are no longer transparent in X11 compositing systems like XGL.
    * The mouse is properly released by the X11 video driver if the fullscreen window loses focus.
    * The X11 input driver now uses XIM to handle international input.
    * The screensaver and DPMS monitor blanking are disabled while SDL games are running under the X11 and DGA video drivers.
     This behavior will be formalized and selectable in SDL 1.3.
    * Fixed a bug preventing stereo OpenGL contexts from being selected on the X11 driver.
    * The DGA video driver now waits for pending blits involving surfaces before they are freed.
     This prevents display oddities when using SDL_DisplayFormat() to convert many images.
    * The framebuffer console video driver now has a parser for /etc/fb.modes for improved video mode handling.
    * The framebuffer console video driver now allows asynchronous VT switching, and restores the full contents of the screen when switched back.
    * The framebuffer console now uses CTRL-ALT-FN to switch virtual terminals, to avoid collisions with application key bindings.
    * The framebuffer console input driver correctly sets IMPS/2 mode for wheel mice. It also properly detects when gpm is in IMPS/2 protocol mode,
     or passing raw protocol from an IMPS/2 mouse.
    * The SVGAlib video driver now has support for banked (non-linear) video modes.
    * A video driver for OpenBSD on the Sharp Zaurus has been contributed by Staffan Ulfberg.
     See the file README.wscons in the SDL source distribution for details.
    * Many patches have been incorporated from *BSD ports. 

Windows Notes

    * The "windib" video driver is the default now, to prevent problems with certain laptops, 64-bit Windows, and Windows Vista.
      The DirectX driver is still available, and can be selected by setting the environment variable SDL_VIDEODRIVER to "directx".
    * SDL has been ported to 64-bit Windows.
    * Dmitry Yakimov contributed a GAPI video driver for Windows CE.
    * The default fullscreen refresh rate has been increased to match the desktop refresh rate, when using equivalent resolutions.
      A full API for querying and selecting refresh rates is planned for SDL 1.3.
    * Dialog boxes are now shown when SDL is in windowed OpenGL mode.
    * The SDL window is recreated when necessary to maintain OpenGL context attributes, when switching between windowed and fullscreen modes.
    * An SDL_VIDEORESIZE event is properly sent when the SDL window is maximized and restored.
    * Window positions are retained when switching between fullscreen and windowed modes.
    * ToUnicode() is used, when available, for improved handling of international keyboard input.
    * The PrtScrn is now treated normally with both key down and key up events.
    * Pressing ALT-F4 now delivers an SDL_QUIT event to SDL applications.
    * Joystick names are now correct for joysticks which have been unplugged and then plugged back in since booting.
    * An MCI error when playing the last track on a CD-ROM has been fixed.
    * OpenWatcom projects for building SDL have been provided by Marc Peter. 

Mac OS X Notes

    * SDL now supports building Universal binaries, both through Xcode projects and when using configure/make.
      See README.MacOSX in the SDL source archive for details.
    * The X11 video driver with GLX support can be built on Mac OS X, if the X11 development SDK is installed.
    * Transitions between fullscreen resolutions and windowed mode now use a much faster asynchronous fade to hide desktop flicker.
    * Icons set with SDL_WM_SetIcon() now have the proper colors on Intel Macs. 

OS/2 Notes

    * Projects for building SDL on OS/2 with OpenWatcom have been contributed by Doodle.
      See the file README.OS2 in the SDL source distribution for details. 

Enjoy!
	-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment"
EDIT: sorry for the code tag, but without it, spaces are trimmed and it looks ugly (big blob of text). Or should I remove it? EDIT2: broke some long lines, so now it looks a lot better.

Share this post


Link to post
Share on other sites
I wouldn't expect SDL 1.3 to come out within next 6 months or so, developers will have hard time implementing all those expected features, like multiple windows etc. (of course, assuming that 1.3 will come next - who's to confirm that next version won't be 1.2.11?)

Anyway, Sam posted on the mailinglist 4 another emails about new versions of official SDL libs:




SDL_image 1.2.5 is now available!
http://www.libsdl.org/projects/SDL_image/

Changes since 1.2.4:
* Fixed loading BMP palettes at unusual offsets
* Added support for dynamically loading libjpeg, libpng, and libtiff.
* Added gcc-fat.sh for generating Universal binaries on Mac OS X
* Updated libtool support to version 1.5.22
* Added support for XV thumbnail images
* Added support for 32-bit BMP files with alpha




SDL_mixer 1.2.7 is now available!
http://www.libsdl.org/projects/SDL_mixer/

Changes since 1.2.6:
* Added support for dynamically loading Ogg Vorbis and SMPEG libraries
* Removed automake dependency, to allow Universal binaries on Mac OS X
* Added gcc-fat.sh for generating Universal binaries on Mac OS X
* Updated libtool support to version 1.5.22
* Use SDL_RWops also for native midi
* Tweaked Mix_Chunk's definition to make predeclaration easier.
* Search timidity.cfg also in /etc
* Fix memory leaks in timidity player
* Use also SDL_RWops to read midifiles for timidity
* Disabled support for the system version of libmikmod by default
* Fixed building mikmod support on UNIX
* Always build SDL_RWops music support
* Added SDL_RWops support for reading MP3 files




SDL_net 1.2.6 is now available!
http://www.libsdl.org/projects/SDL_net/

Changes since 1.2.5:
* Added gcc-fat.sh for generating Universal binaries on Mac OS X
* Updated libtool support to version 1.5.22
* Fixed compiling on BeOS, which may not have SO_BROADCAST
* Fixed application shutdown caused by SIGPIPE




SDL_ttf 2.0.8 is now available!
http://www.libsdl.org/projects/SDL_ttf/

Changes since 2.0.7:
* Fixed line spacing by using font ascender and descender
* Added gcc-fat.sh for generating Universal binaries on Mac OS X
* Updated libtool support to version 1.5.22

Share this post


Link to post
Share on other sites
Hmm after updating and recompiling a working (with the previous version) application, I get some warnings like:

C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(590) : warning C4312: 'type cast' : conversion from 'uintptr_t' to 'void *' of greater size
C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(566) : while compiling class template member function 'std::istreambuf_iterator&lt;_Elem,_Traits&gt; std::num_get&lt;_Elem,_InIt&gt;::do_get(_InIt,_InIt,std::ios_base &,std::ios_base::iostate &,void *&) const'
with
[
_Elem=char,
_Traits=std::char_traits&lt;char&gt;,
_InIt=std::istreambuf_iterator&lt;char,std::char_traits&lt;char&gt;&gt;
]
C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(1365) : see reference to class template instantiation 'std::num_get&lt;_Elem,_InIt&gt;' being compiled
with
[
_Elem=char,
_InIt=std::istreambuf_iterator&lt;char,std::char_traits&lt;char&gt;&gt;
]
C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(590) : warning C4312: 'type cast' : conversion from 'uintptr_t' to 'void *' of greater size
C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(566) : while compiling class template member function 'std::istreambuf_iterator&lt;_Elem,_Traits&gt; std::num_get&lt;_Elem,_InIt&gt;::do_get(_InIt,_InIt,std::ios_base &,std::ios_base::iostate &,void *&) const'
with
[
_Elem=wchar_t,
_Traits=std::char_traits&lt;wchar_t&gt;,
_InIt=std::istreambuf_iterator&lt;wchar_t,std::char_traits&lt;wchar_t&gt;&gt;
]
C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(1371) : see reference to class template instantiation 'std::num_get&lt;_Elem,_InIt&gt;' being compiled
with
[
_Elem=wchar_t,
_InIt=std::istreambuf_iterator&lt;wchar_t,std::char_traits&lt;wchar_t&gt;&gt;
]


I am gonna check that ALT+F4 thingy out right now because then I don't have to grab my mouse :)

Share this post


Link to post
Share on other sites
Hey Vegettex,

I also started getting a bunch of C4312 warnings after upgrading to 1.2.10.

You can silence these warning (although I am not sure this is the best idea) by turning off 64 bit portability checking:
Project->Properties->C/C++->General->Detect 64-bit Portability Issues

Hope this helps.

Share this post


Link to post
Share on other sites
Quote:
Original post by tychon
I'm getting an "entry point SDL_strlcat could not be located in SDL.dll" bit on the MinGW32 version. Hmm.


Download the runtime .DLL and replace the one that comes with the dev version with that, the one in the dev version is a few days older than the .lib files, at least in the win32 VS version.

It says theres an x64 version, is that available yet, or do we have to compile it ourselves?

Share this post


Link to post
Share on other sites
If I use fstream header file and the file operations, those warnings turn to errors, even with 64-bit portability checking turned off.


C:\Program Files\Microsoft Visual Studio 8\VC\include\fstream(802) :
error C2248: 'std::basic_ios&lt;_Elem,_Traits&gt;::basic_ios' :
cannot access private member declared in class 'std::basic_ios&lt;_Elem,_Traits&gt;'
with
[
_Elem=char,
_Traits=std::char_traits&lt;char&gt;
]
C:\Program Files\Microsoft Visual Studio 8\VC\include\ios(151) : see declaration of 'std::basic_ios&lt;_Elem,_Traits&gt;::basic_ios'
with
[
_Elem=char,
_Traits=std::char_traits&lt;char&gt;
]
This diagnostic occurred in the compiler generated function 'std::basic_ofstream&lt;_Elem,_Traits&gt;::basic_ofstream(const std::basic_ofstream&lt;_Elem,_Traits&gt; &)'
with
[
_Elem=char,
_Traits=std::char_traits&lt;char&gt;
]

Share this post


Link to post
Share on other sites
Quote:
Original post by tychon
I'm getting an "entry point SDL_strlcat could not be located in SDL.dll" bit on the MinGW32 version. Hmm.


Hmmm...

After upgrade to 1.2.10 from 1.2.9, I have similar problem linking my previously working projects. Compilation goes ok, however, during linking phase, I get several undefined references to SDL_strlcpy and SDL_strlcat. I believe I have properly set up enviroment, and struggling with it whole yesterday makes me wonder what is happening here... could not find any info on the web, so thought "why not post here"?


I am using Win XP, DevCpp 4.9.9.2 / MinGW 3.7 / GCC 3.4.2, I link with:

-lmingw32 -lSDLmain -lSDL

Any thoughts what may be wrong?


Thanks in advance!

Full compilation log goes here:

Quote:

E:\Dev-Cpp\bin\g++.exe -c main.cpp -o main.o -I"E:/JnR/engine" -I"E:/JnR/libs/FMOD" -I"E:/JnR/libs/TinyXML" -I"E:/SDL_Config/src" -I"E:/NewLibraries/SDL_Mixer/include" -I"E:/SC/Framework/src" -I"E:/boost/boost" -I"E:/boost/" -I"E:/NewLibraries/SDL_gfx" -I"E:/NewLibraries/SFont" -I"E:/NewLibraries/SFont/c++wrapper" -I"E:/Dev-Cpp/include/SDL_New/Image" -I"E:/Dev-Cpp/include/SDL_New/TTF" -I"E:/Dev-Cpp/include/SDL" -mwindows

E:\Dev-Cpp\bin\g++.exe main.o -o "Fading.exe" -L"E:/JnR/bin" -L"E:/JnR/libs/FMOD" -L"E:/TinyXML/bin" -L"E:/SDL_Config/bin" -L"E:/NewLibraries/SDL_Mixer/lib" -lmingw32 -lSDLmain -lSDL ../../../NewLibraries/SDL_Image/lib/SDL_image.lib -mwindows

E:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libSDLmain.a(SDL_win32_main.o)(.text+0x2cc): In function `console_main':
/home/hercules/release/SDL-1.2.10/src/main/win32/SDL_win32_main.c:198: undefined reference to `SDL_strlcpy'
E:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libSDLmain.a(SDL_win32_main.o)(.text+0x412): In function `WinMain':
/home/hercules/release/SDL-1.2.10/src/main/win32/SDL_win32_main.c:274: undefined reference to `SDL_strlcpy'

E:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libSDLmain.a(SDL_win32_main.o)(.text+0x429):/home/hercules/release/SDL-1.2.10/src/main/win32/SDL_win32_main.c:275: undefined reference to `SDL_strlcat'
E:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libSDLmain.a(SDL_win32_main.o)(.text+0x460):/home/hercules/release/SDL-1.2.10/src/main/win32/SDL_win32_main.c:298: undefined reference to `SDL_strlcpy'
E:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libSDLmain.a(SDL_win32_main.o)(.text+0x477):/home/hercules/release/SDL-1.2.10/src/main/win32/SDL_win32_main.c:299: undefined reference to `SDL_strlcat'
E:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libSDLmain.a(SDL_win32_main.o)(.text+0x4f1):/home/hercules/release/SDL-1.2.10/src/main/win32/SDL_win32_main.c:341: undefined reference to `SDL_strlcpy'
collect2: ld returned 1 exit status

mingw32-make.exe: *** [Fading.exe] Error 1

Execution terminated

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this