Re: Building Xquartz from source
Re: Building Xquartz from source
- Subject: Re: Building Xquartz from source
- From: Ben Byer <email@hidden>
- Date: Sun, 18 Nov 2007 10:49:49 -0800
On Nov 18, 2007, at 5:06 AM, Harald Hanche-Olsen wrote:
+ Harald Hanche-Olsen <email@hidden>:
Okay, thanks! It seems I have to get the source for Mesa as well.
You specify a fairly old version though. Is there any specific
reason
for that, or is just that you haven't picked up a new version of the
source lately?
Okay, it was easier to answer my own question by trial and error: The
x.org source is explicitly looking for src/mesa/array_cache, which is
not present in versions of MesaLib later than 6.5.2.
That's not a good answer! :)
The real answer to that question is: At some point, I had to pick a
specific version of every given X11-related software component for
"X11 that will ship on a zillion expensive DVDs of Leopard", and that
was the most current version on that day. So, in some sense, it's
arbitrary; this is why we got screwed by libX11-1.1.2 causing Gimp
crashes, etc.
As you noted, there are specific symbol dependencies between a
specific version of the X server and the version of MesaLib used to
build the server. However -- we've spent most of the past few weeks
on this mailing list just trying to address the immediate problems
with the specific versions of the software that was distributed as
part of the Leopard GM release. Our long-term goal is to build the X
server against the X.org git master branch -- the very latest and
greatest code. If you try that now, it almost works, but we get many
crashes in the Rootless code -- none of which changed between the 7.2
code and the X. So, we don't know why it broke, or exactly when -- so
if you wanted to start upgrading bits and figure out when it breaks,
that would be very helpful.
I tried that, but it seems my autoconf (from darwinports) is too
old or something, for it complains bitterly:
configure.ac:33: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.
configure.ac:34: error: possibly undefined macro: AM_MAINTAINER_MODE
[... and several more like it ...]
I *think* this is a problem with ACLOCAL -- try "export
ACLOCAL='aclocal -I /usr/X11/share/aclocal'".
So what version of autoconf is needed? Is there anything else I need
to know to build this beast? Are there build instructions floating
around on the X.org website somewhere? I am quite experienced in
building sofware from source, but mostly on other unixes, not so much
on the Mac - so it's good to be aware of any special OS X specific
gotchas.
Simple answer: The whole X11 package is really hard to build by hand
-- IIRC, there are > 200 tarballs to individually unpack, configure,
build, and install in order to have a complete system. It's not
really worth your time.
Instead, we've provided you all of the pieces you should need to
upgrade individual modules of X11 by hand. To make sure that your
utilities know where to find them, you'll need both the ACLOCAL
command above, and "export PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig".
Those two lines should be on the Wiki (http://www.x.org/wiki/XDarwin)
under "Participating in development".
My goal is to make it so that you can get the very latest version of
each module (with the exception of the Xserver) from the
freedesktop.org repository and just build it with "./configure --
prefix=/usr/X11; make; sudo make install". If you find places where
this is not the case, please tell me and I will fix them.
--
Ben Byer
CoreOS / BSD Technology Group, XDarwin maintainer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden