|Version 2 (modified by bobert@…, 5 years ago) (diff)|
X Server Build: 1.4 Development Version on Mac OS 10.5.5
These are instructions for building and installing the X server from the latest 1.4 development sources, using a fresh installation of Mac OS 10.5.5.
Since people frequently check in changes to the freedesktop.org git repository, it's possible these instructions won't work for you. They were last verified on 11 Oct 2008. If they don't work for you, please send email to the XQuartz mailing list.
Note: This only builds the X server for your machine's native architecture. It doesn't build a universal binary.
- Install Mac OS 10.5.5, using the default install options.
- Log in with an administrative account.
- Install XCode 3.1.1, using all the default install options
- If you don't have this version of XCode, follow these instructions to download the installer.
- Run the X11 app from the Utilities folder. Make sure an xterm window appears, and check the about box. It should say: Xquartz 2.1.5 - (xorg-server 1.3.0-apple22) (2.1.5)
- Quit X11
Install and Verify Newer X11
- Use a web browser to download and install the latest development X11 version from http://static.macosforge.org/xquartz/downloads/X11-2.3.1_rc6_10.5.5.pkg
- Run X11 (in the Utilities directory), make sure an xterm window appears, and check the about box. It should now say: XQuartz 2.3.1 (xorg-server 1.4.2-apple17)
- Quit X11.
Build and Install 1.4 From freedesktop.org
Open Terminal (in the Utilities directory) and start entering commands the commands you see in this font. It's best to copy and paste these commands, and you can paste them in blocks as shown. For the lines that start with "sudo", you will often have to enter your administrative account's password.
Make X11 build directory
cd / mkdir x11build cd /x11build
Download support components
curl -LO http://xorg.freedesktop.org/archive/individual/proto/applewmproto-1.1.0.tar.bz2 curl -LO http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz curl -LO http://cairographics.org/releases/pixman-0.11.8.tar.gz curl -LO http://superb-west.dl.sourceforge.net/sourceforge/mesa3d/MesaLib-7.0.4.tar.bz2 curl -LO http://www.kernel.org/pub/software/scm/git/git-1.6.0.tar.bz2
Unpackage support components
tar -xf applewmproto-1.1.0.tar.bz2 tar -xzf pkg-config-0.23.tar.gz tar -zxf pixman-0.11.8.tar.gz tar -xjf MesaLib-7.0.4.tar.bz2 tar xf git-1.6.0.tar.bz2
Build applewmproto, and install into the normal X11 location (make not needed)
cd /x11build/applewmproto-1.1.0 ./autogen.sh --prefix=/usr/X11 sudo make install
Build and install pkg-config
cd /x11build/pkg-config-0.23 ./configure make sudo make install
Build and install git
cd /x11build/git-1.6.0 ./configure --prefix=/usr/local make all sudo make install
Prepare for building pixman, mesa, and X server
export ACLOCAL="aclocal -I /usr/X11/share/aclocal" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/X11/lib/pkgconfig export CFLAGS="-I/usr/local/include -Wall -O2 -pipe" export LDFLAGS="-Wall -O2 -pipe"
Build and install pixman
cd /x11build/pixman-0.11.8 ./configure make sudo make install
Obtain xserver sources via git
cd /x11build/ git clone git://anongit.freedesktop.org/git/xorg/xserver.git
Get the 1.4 and 1.5 apple branches
cd /x11build/xserver git branch --track xorg-server-1.4-apple origin/xorg-server-1.4-apple git branch --track xorg-server-1.5-apple origin/xorg-server-1.5-apple
Switch to the 1.4-apple branch, and build and install it and Mesa
git checkout -f xorg-server-1.4-apple ./autogen.sh --prefix=/usr/X11 --with-mesa-source=`pwd`/../Mesa-7.0.4 --disable-dependency-tracking make sudo make install
That's it! You've built and installed the X server.
Verify X server
Run X11 again, make sure an xterm window appears, and check the about box. It should now say: XQuartz 2.3.2 (xorg-server 1.4.2-apple19) or something later else that's later than what you saw before (note the 2.3.2).