OSX 10.4 still supported?

Me again. Wondering whether SDL 1.3 is still supposed to work on OSX
10.4. Compiles fine using the configure script, although there appears
to be a function used that is not present in 10.4.11:

libtool: compile: gcc -g -O2 -I./include -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE
-falign-loops=16 -force_cpusubtype_ALL -fpascal-strings -MMD -MT
build/SDL_cocoawindow.lo -c src/video/cocoa/SDL_cocoawindow.m
-fno-common -DPIC -o build/.libs/SDL_cocoawindow.o
src/video/cocoa/SDL_cocoawindow.m: In function ‘Cocoa_SetWindowFullscreen’:
src/video/cocoa/SDL_cocoawindow.m:728: warning: ‘NSWindow’ may not
respond to '-setStyleMask:'
src/video/cocoa/SDL_cocoawindow.m:728: warning: (Messages without a
matching method signature
src/video/cocoa/SDL_cocoawindow.m:728: warning: will be assumed to
return ‘id’ and accept
src/video/cocoa/SDL_cocoawindow.m:728: warning: ‘…’ as arguments.)
src/video/cocoa/SDL_cocoawindow.m:732: warning: ‘NSWindow’ may not
respond to ‘-setStyleMask:’

Probably as a consequence, running in fullscreen mode results in a
black screen and the need to ssh into the box and kill the process to
recover. Output on the command line is

2011-02-19 21:25:44.537 worldtest[1389] *** -[SDLWindow
setStyleMask:]: selector not recognized [self = 0x16d6530]
2011-02-19 21:25:44.725 worldtest[1389] Exception raised during
posting of notification. Ignored. exception: *** -[SDLWindow
setStyleMask:]: selector not recognized [self = 0x16d6530]
Killed

So I tried running in windowed mode, only to get a segfault inside
OpenGL. Here’s the stacktrace

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x07133000

Thread 0 Crashed:
0 GLEngine 0x065dc40c gleCopy + 104
1 GLEngine 0x065adea4 gleTextureImagePut_Fast + 848
2 GLEngine 0x065adaf0 gleTextureImagePut + 200
3 GLEngine 0x065b35a8 glTexSubImage2D_Exec + 1252
4 libGL.dylib 0x92f3b9a4 glTexSubImage2D + 172
5 libSDL-1.3.0.dylib 0x03841378 GL_UpdateTexture + 296
(SDL_render_gl.c:542)
6 libSDL-1.3.0.dylib 0x0383d350 SDL_UnlockTexture + 256
(SDL_render.c:762)
7 libSDL-1.3.0.dylib 0x0383d234 SDL_UnlockTextureNative +
212 (SDL_render.c:742)
8 libSDL-1.3.0.dylib 0x0383d334 SDL_UnlockTexture + 228
(SDL_render.c:757)
9 _sdl.so 0x02f9e4ac gfx::surface_sdl::unlock()
const + 76 (surface_sdl.cc:250)
10 _sdl.so 0x02f9e324
gfx::surface_sdl::set_data(void*, unsigned short, unsigned short,
unsigned char, unsigned, unsigned, unsigned, unsigned) + 324
(surface_sdl.cc:549)
11 libadonthell_gfx.0.dylib 0x0040c450
gfx::surface_ext::get_png(std::basic_ifstream<char,
std::char_traits >&) + 208 (surface_ext.cc:101)
12 libadonthell_gfx.0.dylib 0x0040c06c
gfx::surface::load_png(std::basic_string<char, std::char_traits,
std::allocator > const&) + 588 (surface.cc:254)
[…]

Might be due to a crappy video driver, so not sure if there’s a way to
fix that. Any ideas?

Kai

Yes, I just got a bug about this today:
http://bugzilla.libsdl.org/show_bug.cgi?id=1132

I’m compiling it on my 10.4 iMac today and I’ll be looking into this next
week.

Thanks!On Sat, Feb 19, 2011 at 1:01 PM, Kai Sterker <kai.sterker at gmail.com> wrote:

Me again. Wondering whether SDL 1.3 is still supposed to work on OSX
10.4. Compiles fine using the configure script, although there appears
to be a function used that is not present in 10.4.11:

libtool: compile: gcc -g -O2 -I./include -DTARGET_API_MAC_CARBON
-DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE
-falign-loops=16 -force_cpusubtype_ALL -fpascal-strings -MMD -MT
build/SDL_cocoawindow.lo -c src/video/cocoa/SDL_cocoawindow.m
-fno-common -DPIC -o build/.libs/SDL_cocoawindow.o
src/video/cocoa/SDL_cocoawindow.m: In function ‘Cocoa_SetWindowFullscreen’:
src/video/cocoa/SDL_cocoawindow.m:728: warning: ‘NSWindow’ may not
respond to '-setStyleMask:'
src/video/cocoa/SDL_cocoawindow.m:728: warning: (Messages without a
matching method signature
src/video/cocoa/SDL_cocoawindow.m:728: warning: will be assumed to
return ‘id’ and accept
src/video/cocoa/SDL_cocoawindow.m:728: warning: ‘…’ as arguments.)
src/video/cocoa/SDL_cocoawindow.m:732: warning: ‘NSWindow’ may not
respond to ‘-setStyleMask:’

Probably as a consequence, running in fullscreen mode results in a
black screen and the need to ssh into the box and kill the process to
recover. Output on the command line is

2011-02-19 21:25:44.537 worldtest[1389] *** -[SDLWindow
setStyleMask:]: selector not recognized [self = 0x16d6530]
2011-02-19 21:25:44.725 worldtest[1389] Exception raised during
posting of notification. Ignored. exception: *** -[SDLWindow
setStyleMask:]: selector not recognized [self = 0x16d6530]
Killed

So I tried running in windowed mode, only to get a segfault inside
OpenGL. Here’s the stacktrace

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x07133000

Thread 0 Crashed:
0 GLEngine 0x065dc40c gleCopy + 104
1 GLEngine 0x065adea4 gleTextureImagePut_Fast + 848
2 GLEngine 0x065adaf0 gleTextureImagePut + 200
3 GLEngine 0x065b35a8 glTexSubImage2D_Exec + 1252
4 libGL.dylib 0x92f3b9a4 glTexSubImage2D + 172
5 libSDL-1.3.0.dylib 0x03841378 GL_UpdateTexture + 296
(SDL_render_gl.c:542)
6 libSDL-1.3.0.dylib 0x0383d350 SDL_UnlockTexture + 256
(SDL_render.c:762)
7 libSDL-1.3.0.dylib 0x0383d234 SDL_UnlockTextureNative +
212 (SDL_render.c:742)
8 libSDL-1.3.0.dylib 0x0383d334 SDL_UnlockTexture + 228
(SDL_render.c:757)
9 _sdl.so 0x02f9e4ac gfx::surface_sdl::unlock()
const + 76 (surface_sdl.cc:250)
10 _sdl.so 0x02f9e324
gfx::surface_sdl::set_data(void*, unsigned short, unsigned short,
unsigned char, unsigned, unsigned, unsigned, unsigned) + 324
(surface_sdl.cc:549)
11 libadonthell_gfx.0.dylib 0x0040c450
gfx::surface_ext::get_png(std::basic_ifstream<char,
std::char_traits >&) + 208 (surface_ext.cc:101)
12 libadonthell_gfx.0.dylib 0x0040c06c
gfx::surface::load_png(std::basic_string<char, std::char_traits,
std::allocator > const&) + 588 (surface.cc:254)
[…]

Might be due to a crappy video driver, so not sure if there’s a way to
fix that. Any ideas?

Kai


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


-Sam Lantinga, Founder and CEO, Galaxy Gameworks

Yes, I just got a bug about this today:
http://bugzilla.libsdl.org/show_bug.cgi?id=1132

Guess I should have checked first :-).

As for the segfault in window mode, that’s with an ATI Radeon Mobility
7500 and the stock drivers that come with OSX 10.4.11. I’ve found a
driver update on the AMD website

http://support.amd.com/us/gpudownload/Pages/macosx10-4x-3x-radeon.aspx

but I’m a bit reluctant to install these.

Any additional info I can provide to help resolving this issue?

KaiOn Sat, Feb 19, 2011 at 10:59 PM, Sam Lantinga wrote:

The setStyleMask issue is resolved in the latest snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

I wasn’t able to reproduce the crash with testsprite, testsprite2 or
testoverlay2.

See ya!On Sun, Feb 20, 2011 at 3:26 AM, Kai Sterker <kai.sterker at gmail.com> wrote:

On Sat, Feb 19, 2011 at 10:59 PM, Sam Lantinga <@slouken> wrote:

Yes, I just got a bug about this today:
http://bugzilla.libsdl.org/show_bug.cgi?id=1132

Guess I should have checked first :-).

As for the segfault in window mode, that’s with an ATI Radeon Mobility
7500 and the stock drivers that come with OSX 10.4.11. I’ve found a
driver update on the AMD website

?http://support.amd.com/us/gpudownload/Pages/macosx10-4x-3x-radeon.aspx

but I’m a bit reluctant to install these.

Any additional info I can provide to help resolving this issue?

Kai


? ? -Sam Lantinga, Founder and CEO, Galaxy Gameworks

Hi Sam,

FYI
In the meantime you have been using CGFloat in src/video/cocoa/SDL_cocoamouse.m,
which isn’t supported on 10.4. So, building for OSX 10.4 broke again.

– KeesOn 20 Feb, 2011, at 22:52 , Sam Lantinga wrote:

The setStyleMask issue is resolved in the latest snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

I wasn’t able to reproduce the crash with testsprite, testsprite2 or
testoverlay2.

See ya!

On Sun, Feb 20, 2011 at 3:26 AM, Kai Sterker <kai.sterker at gmail.com> wrote:

On Sat, Feb 19, 2011 at 10:59 PM, Sam Lantinga wrote:

Yes, I just got a bug about this today:
http://bugzilla.libsdl.org/show_bug.cgi?id=1132

Guess I should have checked first :-).

As for the segfault in window mode, that’s with an ATI Radeon Mobility
7500 and the stock drivers that come with OSX 10.4.11. I’ve found a
driver update on the AMD website

http://support.amd.com/us/gpudownload/Pages/macosx10-4x-3x-radeon.aspx

but I’m a bit reluctant to install these.

Any additional info I can provide to help resolving this issue?

Kai


-Sam Lantinga, Founder and CEO, Galaxy Gameworks


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

CGFloat is available in 10.4 (and pretty much since the beginning of
OS X I think).
You might need to add a #include for <CoreGraphics/CoreGraphics.h>
Though depending on what you are doing, NSRect might be more
appropriate (though in Mac 64-bit and iOS, one is a typedef of the
other).On 2/23/11, Kees Bakker <kees.bakker at xs4all.nl> wrote:

Hi Sam,

FYI
In the meantime you have been using CGFloat in
src/video/cocoa/SDL_cocoamouse.m,
which isn’t supported on 10.4. So, building for OSX 10.4 broke again.

– Kees

On 20 Feb, 2011, at 22:52 , Sam Lantinga wrote:

The setStyleMask issue is resolved in the latest snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

I wasn’t able to reproduce the crash with testsprite, testsprite2 or
testoverlay2.

See ya!

On Sun, Feb 20, 2011 at 3:26 AM, Kai Sterker <kai.sterker at gmail.com> wrote:

On Sat, Feb 19, 2011 at 10:59 PM, Sam Lantinga wrote:

Yes, I just got a bug about this today:
http://bugzilla.libsdl.org/show_bug.cgi?id=1132

Guess I should have checked first :-).

As for the segfault in window mode, that’s with an ATI Radeon Mobility
7500 and the stock drivers that come with OSX 10.4.11. I’ve found a
driver update on the AMD website

http://support.amd.com/us/gpudownload/Pages/macosx10-4x-3x-radeon.aspx

but I’m a bit reluctant to install these.

Any additional info I can provide to help resolving this issue?

Kai


-Sam Lantinga, Founder and CEO, Galaxy Gameworks


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


Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/

Hi, what would be the right patch for source files like
SDL_image/IMG_ImageIO.m ?

Doing something this?

#ifndef CGFloat
#if defined(APPLE) || defined(MacOSX) || defined(darwin)
#include <CoreGraphics/CoreGraphics.h>
#endif /* Apple /
#endif /
undefined CGFloat */

We (the guys wo make bindings from Perl) got several build fails:
http://www.cpantesters.org/cpan/report/75b834c4-c477-11e1-9b43-82d4c937f7be
http://www.cpantesters.org/cpan/report/53b856a8-c38f-11e1-9b43-82d4c937f7be
http://www.cpantesters.org/cpan/report/5dcdbb34-c0be-11e1-9b43-82d4c937f7be

But since I cant test, because I’ve got a 10.6.8 Snow Leopard, I wanna
make sure I dont commit a crappy patch…

Cheers–
Tobias

Am 23.02.2011 22:45, schrieb Eric Wing:

CGFloat is available in 10.4 (and pretty much since the beginning of
OS X I think).
You might need to add a #include for <CoreGraphics/CoreGraphics.h>
Though depending on what you are doing, NSRect might be more
appropriate (though in Mac 64-bit and iOS, one is a typedef of the
other).

On 2/23/11, Kees Bakker <kees.bakker at xs4all.nl> wrote:

Hi Sam,

FYI
In the meantime you have been using CGFloat in
src/video/cocoa/SDL_cocoamouse.m,
which isn’t supported on 10.4. So, building for OSX 10.4 broke again.

– Kees

On 20 Feb, 2011, at 22:52 , Sam Lantinga wrote:

The setStyleMask issue is resolved in the latest snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

I wasn’t able to reproduce the crash with testsprite, testsprite2 or
testoverlay2.

See ya!

On Sun, Feb 20, 2011 at 3:26 AM, Kai Sterker <kai.sterker at gmail.com> wrote:

On Sat, Feb 19, 2011 at 10:59 PM, Sam Lantinga wrote:

Yes, I just got a bug about this today:
http://bugzilla.libsdl.org/show_bug.cgi?id=1132
Guess I should have checked first :-).

As for the segfault in window mode, that’s with an ATI Radeon Mobility
7500 and the stock drivers that come with OSX 10.4.11. I’ve found a
driver update on the AMD website

http://support.amd.com/us/gpudownload/Pages/macosx10-4x-3x-radeon.aspx

but I’m a bit reluctant to install these.

Any additional info I can provide to help resolving this issue?

Kai


-Sam Lantinga, Founder and CEO, Galaxy Gameworks


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