SDL on Mac OS X 10.4 - 10.5

We’ve run into a bit of trouble running our SDL-based framework on OSX 10.4,
when compiled on a 10.5 machine :

dyld: Symbol not found: _NSDefaultRunLoopMode

Using nm -mg, we’ve determined it’s SDL the one that links to this symbol.

Is there an easy way to fix this (ie without having to install a 10.4
environment?) Which version is the one downloadable from the website
compiled for?

Thanks,
–Gabriel

Hi Gabriel-

In 10.5 and later, that symbol is defined in CoreFoundation.framework;
in 10.4 and before it’s in Foundation.framework. Linking against
Foundation.framework should solve the problem.On 12 Mar 2009, at 15:09, Gabriel Gambetta wrote:

We’ve run into a bit of trouble running our SDL-based framework on
OSX 10.4, when compiled on a 10.5 machine :

dyld: Symbol not found: _NSDefaultRunLoopMode

Using nm -mg, we’ve determined it’s SDL the one that links to this
symbol.

Is there an easy way to fix this (ie without having to install a
10.4 environment?) Which version is the one downloadable from the
website compiled for?

Thanks,
–Gabriel


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

-------------- next part --------------
A non-text attachment was scrubbed…
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3912 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090312/fa41e5ef/attachment.bin

Thanks for the tip, Alastair - we still can’t fix the problem.

otool shows that our libSDL.dylib is linked to both Foundation and
CoreFoundation; our binary is linked to both, too. We’re not linking to
either of these explicitly, though.

Our binary is linked with -framework Cocoa -framework OpenGL -lSDL; I’m
not sure about the relationship between the frameworks and the libraries. Do
you think this may be a problem?

Thanks,
–GabrielOn Thu, Mar 12, 2009 at 12:47 PM, Alastair Lynn wrote:

Hi Gabriel-

In 10.5 and later, that symbol is defined in CoreFoundation.framework; in
10.4 and before it’s in Foundation.framework. Linking against
Foundation.framework should solve the problem.

On 12 Mar 2009, at 15:09, Gabriel Gambetta wrote:

We’ve run into a bit of trouble running our SDL-based framework on OSX

10.4, when compiled on a 10.5 machine :

dyld: Symbol not found: _NSDefaultRunLoopMode

Using nm -mg, we’ve determined it’s SDL the one that links to this symbol.

Is there an easy way to fix this (ie without having to install a 10.4
environment?) Which version is the one downloadable from the website
compiled for?

Thanks,
–Gabriel


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

Is there an easy way to fix this (ie without having to install a 10.4
environment?) Which version is the one downloadable from the website
compiled for?

The official SDL.framework from the website is intended to scale for 10.2
through 10.5. (It may even work as far back as 10.0 though I don’t think
anybody has tried in a long time.)

-Eric

Is there an easy way to fix this (ie without having to install a 10.4
environment?) Which version is the one downloadable from the website
compiled for?

The official SDL.framework from the website is intended to scale for 10.2
through 10.5. (It may even work as far back as 10.0 though I don’t think
anybody has tried in a long time.)

Can you look and see why this doesn’t work?

See ya,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

We tried used the framework but the game hangs up on start. We’re now trying
compiling the dylib using -isysroot and the other cross-compiling gcc
switches.

–GabrielOn Fri, Mar 13, 2009 at 11:27 AM, Sam Lantinga wrote:

Is there an easy way to fix this (ie without having to install a 10.4
environment?) Which version is the one downloadable from the website
compiled for?

The official SDL.framework from the website is intended to scale for
10.2
through 10.5. (It may even work as far back as 10.0 though I don’t think
anybody has tried in a long time.)

Can you look and see why this doesn’t work?

See ya,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


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

Can you look and see why this doesn’t work?

See ya,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


I just did some testing but could not reproduce
any problems.

I downloaded the DMGs, installed the framework and Xcode templates. I used
the SDL Application and SDL OpenGL Application templates to create two
projects.

I built and compiled both projects using the 10.5 SDK on my Leopard Xcode
3.1 machine. No problems building or running.

Testing on my G4 Powerbook building Unversal. Did not try running on Intel.
But I’m not expecting trouble there.

-Eric

We’re still having trouble with this…

Does anyone have libsdl.dylib compiled in 10.4 and can share it?

We’ve tried compiling using -isysroot and -mmacosx-version-min but that
hasn’t solved our issues.

Unfortunately, this happens on a test machine we don’t have here, and the
build does work in some other 10.4 machines…

If someone could send me a libsdl.dylib compiled in 10.4, I’d be most
grateful.

Thanks,
–Gabriel

2009/3/18 E. Wing >

Can you look and see why this doesn’t work?

See ya,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


I just did some testing but could not reproduce
any problems.

I downloaded the DMGs, installed the framework and Xcode templates. I used
the SDL Application and SDL OpenGL Application templates to create two
projects.

I built and compiled both projects using the 10.5 SDK on my Leopard Xcode
3.1 machine. No problems building or running.

Testing on my G4 Powerbook building Unversal. Did not try running on Intel.
But I’m not expecting trouble there.

-Eric


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

Apparently, our build works with 10.4.8, but it doesn’t work in 10.4.11.On Wed, Mar 18, 2009 at 5:14 PM, Gabriel Gambetta wrote:

We’re still having trouble with this…

Does anyone have libsdl.dylib compiled in 10.4 and can share it?

We’ve tried compiling using -isysroot and -mmacosx-version-min but that
hasn’t solved our issues.

Unfortunately, this happens on a test machine we don’t have here, and the
build does work in some other 10.4 machines…

If someone could send me a libsdl.dylib compiled in 10.4, I’d be most
grateful.

Thanks,
–Gabriel

2009/3/18 E. Wing

Can you look and see why this doesn’t work?

See ya,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


I just did some testing but could not reproduce
any problems.

I downloaded the DMGs, installed the framework and Xcode templates. I used
the SDL Application and SDL OpenGL Application templates to create two
projects.

I built and compiled both projects using the 10.5 SDK on my Leopard Xcode
3.1 machine. No problems building or running.

Testing on my G4 Powerbook building Unversal. Did not try running on
Intel. But I’m not expecting trouble there.

-Eric


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