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
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
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
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
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:
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
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.
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
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.
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