SDL on macs

Hi All,

I tried to get SDL running on a colleague’s mac computer, but when I ran my
program with SDL, it crashed. Upon inspecting the crash error reports. The
error report looks like something like this:

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000073756f6d
Crashed Thread: 3

Thread 0:
0 dyld 0x8fe12690 SegmentMachO::getSize() +
0
1 dyld 0x8fe0e539
ImageLoader::containsAddress(
void const*) const + 73
2 dyld 0x8fe06f22
dyld::bindLazySymbol(mach_header const*, unsigned long*) + 226
3 dyld 0x8fe18c2f
stub_binding_helper_interface2 + 21
4 raex 0x000a400e
RuneHost::RuneHost(Skyrail*) + 590-------

Also, when launching the app, I get the following messages:

objc[21403]: Class SDLTranslatorResponder is implemented in both
/Library/Frameworks/SDL.
framework/Versions/A/SDL and /usr/local/lib/libSDL-1.2.0.dylib. Using
implementation from /usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzView is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindowDelegate is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindow is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.


I just want to know… what is possibly causing this? Any mac SDL users that
can help me?

Cheers

I am also seeing the same thing SDL_perl with SDL 1.2.14. Here is the
bug report

http://sdlperl.ath.cx/projects/SDLPerl/ticket/87

What does this mean?

Kartik ThakoreOn 2010-02-24, at 7:30 PM, Yose Widjaja wrote:

Hi All,

I tried to get SDL running on a colleague’s mac computer, but when I
ran my program with SDL, it crashed. Upon inspecting the crash error
reports. The error report looks like something like this:

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000073756f6d
Crashed Thread: 3

Thread 0:
0 dyld 0x8fe12690
SegmentMachO::getSize() + 0
1 dyld 0x8fe0e539
ImageLoader::containsAddress(
void const*) const + 73
2 dyld 0x8fe06f22
dyld::bindLazySymbol(mach_header const*, unsigned long*) + 226
3 dyld 0x8fe18c2f
stub_binding_helper_interface2 + 21
4 raex 0x000a400e RuneHost::RuneHost
(Skyrail*) + 590


Also, when launching the app, I get the following messages:

objc[21403]: Class SDLTranslatorResponder is implemented in both /
Library/Frameworks/SDL.
framework/Versions/A/SDL and /usr/local/lib/libSDL-1.2.0.dylib.
Using implementation from /usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzView is implemented in both /Library/
Frameworks/SDL.framework/Versions/A/SDL and /usr/local/lib/
libSDL-1.2.0.dylib. Using implementation from /usr/local/lib/
libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindowDelegate is implemented in both /
Library/Frameworks/SDL.framework/Versions/A/SDL and /usr/local/lib/
libSDL-1.2.0.dylib. Using implementation from /usr/local/lib/
libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindow is implemented in both /Library/
Frameworks/SDL.framework/Versions/A/SDL and /usr/local/lib/
libSDL-1.2.0.dylib. Using implementation from /usr/local/lib/
libSDL-1.2.0.dylib.


I just want to know… what is possibly causing this? Any mac SDL
users that can help me?

Cheers


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

It looks like you have two versions of SDL installed and, for some
reason, Apple’s dynamic linker is trying to use both at the same time!

Since “Frameworks” are the Apple way, I would recommend not installing
to /usr/local, and instead only install to /Library/Frameworks.On Wed, Feb 24, 2010 at 7:30 PM, Yose Widjaja wrote:

Hi All,

I tried to get SDL running on a colleague’s mac computer, but when I ran my
program with SDL, it crashed. Upon inspecting the crash error reports. The
error report looks like something like this:

Exception Type: ?EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000073756f6d
Crashed Thread: ?3

Thread 0:
0 ? dyld ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x8fe12690 SegmentMachO::getSize() +
0
1 ? dyld ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x8fe0e539
ImageLoader::containsAddress(
void const*) const + 73
2 ? dyld ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x8fe06f22
dyld::bindLazySymbol(mach_header const*, unsigned long*) + 226
3 ? dyld ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x8fe18c2f
stub_binding_helper_interface2 + 21
4 ? raex ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x000a400e
RuneHost::RuneHost(Skyrail*) + 590


Also, when launching the app, I get the following messages:

objc[21403]: Class SDLTranslatorResponder is implemented in both
/Library/Frameworks/SDL.
framework/Versions/A/SDL and /usr/local/lib/libSDL-1.2.0.dylib. Using
implementation from /usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzView is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindowDelegate is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindow is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.


I just want to know… what is possibly causing this? Any mac SDL users that
can help me?

Cheers


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


http://codebad.com/

Well, I tried to, but I’m building stuff using scons. Doesn’t seem to work
with the .frameworks thing, and it can only link if one can .compile if
things are linked with a /usr/local/ library.

I’ll try removing the SDL.framework from Library/FrameworksOn Thu, Feb 25, 2010 at 12:11 PM, Donny Viszneki <donny.viszneki at gmail.com>wrote:

It looks like you have two versions of SDL installed and, for some
reason, Apple’s dynamic linker is trying to use both at the same time!

Since “Frameworks” are the Apple way, I would recommend not installing
to /usr/local, and instead only install to /Library/Frameworks.

On Wed, Feb 24, 2010 at 7:30 PM, Yose Widjaja <@Yose_Widjaja> wrote:

Hi All,

I tried to get SDL running on a colleague’s mac computer, but when I ran
my
program with SDL, it crashed. Upon inspecting the crash error reports.
The
error report looks like something like this:

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000073756f6d
Crashed Thread: 3

Thread 0:
0 dyld 0x8fe12690
SegmentMachO::getSize() +
0
1 dyld 0x8fe0e539
ImageLoader::containsAddress(
void const*) const + 73
2 dyld 0x8fe06f22
dyld::bindLazySymbol(mach_header const*, unsigned long*) + 226
3 dyld 0x8fe18c2f
stub_binding_helper_interface2 + 21
4 raex 0x000a400e
RuneHost::RuneHost(Skyrail*) + 590


Also, when launching the app, I get the following messages:

objc[21403]: Class SDLTranslatorResponder is implemented in both
/Library/Frameworks/SDL.
framework/Versions/A/SDL and /usr/local/lib/libSDL-1.2.0.dylib. Using
implementation from /usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzView is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindowDelegate is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindow is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.


I just want to know… what is possibly causing this? Any mac SDL users
that
can help me?

Cheers


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


http://codebad.com/


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


Yose Widjaja
Supreme Emperor @ Jormy Games
www.jormy.com
@Yose_Widjaja


It might be easier just to remove your SDL.framework temporarily, then.

I don’t think SCONS is incapable of using frameworks.On Wed, Feb 24, 2010 at 8:55 PM, Yose Widjaja wrote:

Well, I tried to, but I’m building stuff using scons. Doesn’t seem to work
with the .frameworks thing, and it can only link if one can .compile if
things are linked with a /usr/local/ library.

I’ll try removing the SDL.framework from Library/Frameworks

On Thu, Feb 25, 2010 at 12:11 PM, Donny Viszneki <@Donny_Viszneki> wrote:

It looks like you have two versions of SDL installed and, for some
reason, Apple’s dynamic linker is trying to use both at the same time!

Since “Frameworks” are the Apple way, I would recommend not installing
to /usr/local, and instead only install to /Library/Frameworks.

On Wed, Feb 24, 2010 at 7:30 PM, Yose Widjaja wrote:

Hi All,

I tried to get SDL running on a colleague’s mac computer, but when I ran
my
program with SDL, it crashed. Upon inspecting the crash error reports.
The
error report looks like something like this:

Exception Type: ?EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000073756f6d
Crashed Thread: ?3

Thread 0:
0 ? dyld ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x8fe12690
SegmentMachO::getSize() +
0
1 ? dyld ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x8fe0e539
ImageLoader::containsAddress(
void const*) const + 73
2 ? dyld ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x8fe06f22
dyld::bindLazySymbol(mach_header const*, unsigned long*) + 226
3 ? dyld ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x8fe18c2f
stub_binding_helper_interface2 + 21
4 ? raex ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x000a400e
RuneHost::RuneHost(Skyrail*) + 590


Also, when launching the app, I get the following messages:

objc[21403]: Class SDLTranslatorResponder is implemented in both
/Library/Frameworks/SDL.
framework/Versions/A/SDL and /usr/local/lib/libSDL-1.2.0.dylib. Using
implementation from /usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzView is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindowDelegate is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindow is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.


I just want to know… what is possibly causing this? Any mac SDL users
that
can help me?

Cheers


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


http://codebad.com/


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


Yose Widjaja
Supreme Emperor @ Jormy Games
www.jormy.com
yose at jormy.com



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


http://codebad.com/

SCONS definitely supports frameworks.

Read this:
http://www.scons.org/wiki/MacOSX

In particular this example line from that article:
env[‘FRAMEWORKS’] = [’-framework Carbon’, ‘-framework System’]On 02/24/2010 06:59 PM, Donny Viszneki wrote:

It might be easier just to remove your SDL.framework temporarily, then.

I don’t think SCONS is incapable of using frameworks.

On Wed, Feb 24, 2010 at 8:55 PM, Yose Widjaja wrote:

Well, I tried to, but I’m building stuff using scons. Doesn’t seem to work
with the .frameworks thing, and it can only link if one can .compile if
things are linked with a /usr/local/ library.

I’ll try removing the SDL.framework from Library/Frameworks

On Thu, Feb 25, 2010 at 12:11 PM, Donny Viszneki <donny.viszneki at gmail.com> wrote:

It looks like you have two versions of SDL installed and, for some
reason, Apple’s dynamic linker is trying to use both at the same time!

Since “Frameworks” are the Apple way, I would recommend not installing
to /usr/local, and instead only install to /Library/Frameworks.

On Wed, Feb 24, 2010 at 7:30 PM, Yose Widjaja wrote:

Hi All,

I tried to get SDL running on a colleague’s mac computer, but when I ran
my
program with SDL, it crashed. Upon inspecting the crash error reports.
The
error report looks like something like this:

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000073756f6d
Crashed Thread: 3

Thread 0:
0 dyld 0x8fe12690
SegmentMachO::getSize() +
0
1 dyld 0x8fe0e539
ImageLoader::containsAddress(
void const*) const + 73
2 dyld 0x8fe06f22
dyld::bindLazySymbol(mach_header const*, unsigned long*) + 226
3 dyld 0x8fe18c2f
stub_binding_helper_interface2 + 21
4 raex 0x000a400e
RuneHost::RuneHost(Skyrail*) + 590


Also, when launching the app, I get the following messages:

objc[21403]: Class SDLTranslatorResponder is implemented in both
/Library/Frameworks/SDL.
framework/Versions/A/SDL and /usr/local/lib/libSDL-1.2.0.dylib. Using
implementation from /usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzView is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindowDelegate is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.
objc[21403]: Class SDL_QuartzWindow is implemented in both
/Library/Frameworks/SDL.framework/Versions/A/SDL and
/usr/local/lib/libSDL-1.2.0.dylib. Using implementation from
/usr/local/lib/libSDL-1.2.0.dylib.


I just want to know… what is possibly causing this? Any mac SDL users
that
can help me?

Cheers


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


http://codebad.com/


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


Yose Widjaja
Supreme Emperor @ Jormy Games
www.jormy.com
yose at jormy.com



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


LordHavoc
Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass
"A game is a series of interesting choices." - Sid Meier