For developers‎ > ‎


This page is about X.Org on Darwin.


Update June 2012:

Guillaume Verdeau has released patches to get Xorg running on PureDarwin.

Please see the announcement.

The remainder of this page is left here for historical reasons. It needs to be rewritten to reflect the above.

History of X.Org on Darwin

"The X window server for Darwin and Mac OS X provided by the X.Org Foundation. is called XDarwin. (...) XDarwin can also be run from the Darwin console in IOKit mode. (...) From the console, the Darwin port of X11R6.8 uses the IOKit for device driver loading and discovery, rather than the X11R6.8 module loader. Because of this, the X11R6.8 configuration file is not used on Darwin or Mac OS X systems. The descriptions found elsewhere of devices supported by X11R6.8 for other operating systems also do not apply. (...) X11R6.8 for Darwin or Mac OS X will work with any video card that you have an IOKit driver for. (...) If you have a pure Darwin installation, you may need to download additional third-party drivers from Apple's Darwin site. IOKit drivers are typically installed in /System/Library/Extensions/ or /Library/Extensions/."

The that is shipped with Leopard apparently lacks the IOKit mode that would be needed for Darwin, as it apparently only supports the Quartz modes:

Quartz modes (Experimental / In Development):
-fullscreen : run full screen in parallel with Mac OS X window server.
-rootless : run rootless inside Mac OS X window server.

Is there a way to get the IOKit mode back?

X.Org in MacPorts

It seems like it needs some work, since all it currently does is print the following message: build a version that needs Quartz (which is not available in PureDarwin). The source subdirectory hw/darwin/iokit apparently has been removed and needs to be resurrected.

--->  Fetching xorg
Error: Target org.macports.fetch returned: 
        Hi, my name is xorg, I am broken for the time being, so please do not file a bug for me.
        Instead, you can use Apple's X11 that is provided on the OS X install CDs ...
            and also install the X11 SDK from Xcode Tools because they are both required.
        There is also a working XFree86 port and ongoing development to port X11R7 to OS X.

X.Org in fink

fink (which is basically apt-get for Mac OS X and Darwin) contains two binary packages
These can be unpacked to a PureDarwin volume by:
sudo su
cd /Volumes/PureDarwin/
UNP=$(find xorg*_darwin-i386.deb 2>/dev/null) && for UN in $UNP; \
do ar p $UN data.tar.gz | zcat | tar xv ; done
Then we can try to run them on PureDarwin with
export PATH=/usr/X11R6/bin:$PATH
However, it turns out that this links to ApplicationServices which is not a part of Darwin and hence makes these packages worthless for PureDarwin.
Please let us know if otherwise!