SDL/X11 on Mac

Hi

I need to build x11-only(no Cocoa/Quartz, whatever) version of SDL on mac.
I need this as I’m porting pcsx2 to mac and the graphics plugins
uses SDL while the app itself is x11.

What do I need to pass to configure so that I get x11 version of SDL?

Thanks for all the help

Hi

I need to build x11-only(no Cocoa/Quartz, whatever) version of SDL
on mac.
I need this as I’m porting pcsx2 to mac and the graphics plugins
uses SDL while the app itself is x11.

What do I need to pass to configure so that I get x11 version of SDL?

Thanks for all the help

unpack the source

./configure --help

./configure --prefix=/usr/local --enable-video-cocoa=no --enable-
video-carbon=no

also, if you build with the defaults, or use the osx binary package,
you should be able to use the x11 driver, you have to set an evn
variable, SDL_VIDEODRIVER.

http://www.libsdl.org/cgi/docwiki.cgi/Environment_variables

http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars

open a terminal and run your appliation

$ SDL_VIDEODRIVER=x11 myapplication

mattOn Oct 6, 2008, at 4:33 PM, Zedr0n wrote:

matt hull <mattmatteh mac.com> writes:

unpack the source

./configure --help

./configure --prefix=/usr/local --enable-video-cocoa=no --enable-
video-carbon=no

also, if you build with the defaults, or use the osx binary package,
you should be able to use the x11 driver, you have to set an evn
variable, SDL_VIDEODRIVER.

http://www.libsdl.org/cgi/docwiki.cgi/Environment_variables

http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars

open a terminal and run your appliation

$ SDL_VIDEODRIVER=x11 myapplication

Hi, thanks for the reply. I’ve actually tried

./configure --disable-video-cocoa --with-x --enable-video-x11
–disable-audio --disable-joystick --disable-cdrom

I now see that it uses X11 video driver but I still need to link in the
Cocoa framework for SDLmain. Is it possible to do without it?

I now see that it uses X11 video driver but I still need to link in
the
Cocoa framework for SDLmain. Is it possible to do without it?

i dont understand what you are trying to do ? why not just have

int main (int argc, char* argv[])

matt