The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Mac OS X : Dependency on X11?
Dominique Louis
Guest

Hi all,
When I run my game on Mac OS X 1.4 the game crashes with the
following log...
"Library not loaded: /usr/X11R6/lib/libX11.6.dylib
Referenced from: /Users/Sumo/Desktop/YoYo/YoYo.app/Contents/MacOS/YoYo
Reason: image not found"


Is this dependency on X11 mandatory? For some reason I thought the only
dependency on Mac OS X was Carbon or Cocoa.


Can anyone enlighten?



Dominique.
Mac OS X : Dependency on X11?
Ryan C. Gordon
Guest

Quote:
Is this dependency on X11 mandatory? For some reason I thought the only
dependency on Mac OS X was Carbon or Cocoa.

Can anyone enlighten?

It's probably got X11 support enabled, but not dynamically loading it.
Quickest fix is to turn it off at configure time on Mac OS X if you
don't want it.

It's not required on Mac OS X (or any platform, really).

--ryan.
Mac OS X : Dependency on X11?
Dominique Louis
Guest

Ryan wrote:
Quote:
It's probably got X11 support enabled, but not dynamically loading it.
Quickest fix is to turn it off at configure time on Mac OS X if you
don't want it.

It's not required on Mac OS X (or any platform, really).

Hi Ryan,
Where can I disable X11 support under Mac OS X? Hold on would this
need to be done on the gamer's machine as well or only my development
machine before compilation?

Basically I would like to deploy the game.app, probably as a zip file,
and the gamer can just unzip and play without having to install anything
else.

Dominique.
Mac OS X : Dependency on X11?
E. Wing
Guest

Are you using the official SDL.framework? We compiled in the X11
support by default because we were told that it would not adversely
affect anybody. Perhaps this is not the case? Maybe we need to change
this policy?

As for compiling the SDL.framework without X11 support, the Xcode
project already has target called "Framework Without X11 Stuff". Just
select that target instead of the default one.

-Eric



On 11/25/07, Dominique Louis <dominique at savagesoftware.com.au> wrote:
Quote:
Ryan wrote:
Quote:
It's probably got X11 support enabled, but not dynamically loading it.
Quickest fix is to turn it off at configure time on Mac OS X if you
don't want it.

It's not required on Mac OS X (or any platform, really).

Hi Ryan,
Where can I disable X11 support under Mac OS X? Hold on would this
need to be done on the gamer's machine as well or only my development
machine before compilation?

Basically I would like to deploy the game.app, probably as a zip file,
and the gamer can just unzip and play without having to install anything
else.

Dominique.


_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Mac OS X : Dependency on X11?
Ilya Olevsky
Guest

E. Wing wrote:
Quote:
Are you using the official SDL.framework? We compiled in the X11
support by default because we were told that it would not adversely
affect anybody. Perhaps this is not the case? Maybe we need to change
this policy?

As long as X11 is not required to run a program that uses SDL it should be fine.
But you can't rely on X11 being available because it's not installed with OS X
by default. I think it's part of the "Unix development tools" package in Leopard
and just an optional install in Tiger and Panther.
Mac OS X : Dependency on X11?
Ryan C. Gordon
Guest

E. Wing wrote:
Quote:
Are you using the official SDL.framework? We compiled in the X11
support by default because we were told that it would not adversely
affect anybody. Perhaps this is not the case? Maybe we need to change
this policy?

It shouldn't affect anyone if SDL is dynamically loading X11...if it
wants to link directly to the X11 libs, though, it'll fail on 10.4
systems that didn't explicitly install X11 support when installing the
OS itself.

10.5 has X11 support installed by default.

We have a path in our x11 target that will fail gracefully if the
support isn't installed, and we probably aren't using that in the
framework at the moment. This is the SDL_VIDEO_DRIVER_X11_DYNAMIC stuff.

--ryan.