[Xquartz-dev] Building Xquartz git snapshot(how to?)

Michał Majchrowicz mmajchrowicz at gmail.com
Thu Mar 20 10:16:30 PDT 2008


I compile xserver using following commands:
rm -Rf ./xserver*
git-clone git://anongit.freedesktop.org/git/xorg/xserver.git # If you don't
cd xserver
git-branch --track xorg-server-1.2-apple origin/xorg-server-1.2-apple
git-checkout -f xorg-server-1.2-apple
export PKG_CONFIG_PATH="/usr/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
export ACLOCAL="aclocal -I /usr/X11/share/aclocal"

export CFLAGS="-Wall -O2 -arch i386 -arch ppc -pipe"
export LDFLAGS="-Wall -O2 -arch i386 -arch ppc -pipe"

./autogen.sh --prefix=/usr/X11  --disable-dependency-tracking
 and finally make
Let me know if I am doing something wrong :)
Regards.

2008/3/20 Michał Majchrowicz <mmajchrowicz at gmail.com>:
> Okay now I have different problem:
>  mkdir .libs
>  libtool: link: cannot find the library `../../../GL/glx/libglx.la' or
>  unhandled argument `../../../GL/glx/libglx.la'
>  make[3]: *** [Xquartz] Error 1
>  make[2]: *** [all-recursive] Error 1
>  make[1]: *** [all-recursive] Error 1
>  make: *** [all-recursive] Error 1
>  Regards :)
>
>  2008/3/20 Jeremy Huddleston <jeremyhu at berkeley.edu>:
>
>
> > You need to update damageproto as well... I forgot to include that in
>  >  the list.
>  >
>  >  usr/X11 $ grep -R xDamageAddReq /usr/X11/include/
>  >  /usr/X11/include/X11/extensions/damageproto.h:} xDamageAddReq;
>  >  /usr/X11/include/X11/extensions/damageproto.h:#define
>  >  sz_xDamageAddReq                12
>  >
>  >
>  >
>  >
>  >  On Mar 19, 2008, at 15:19, Michał Majchrowicz wrote:
>  >  > I have installed all metioned by you protos (the same versions) and
>  >  > randrproto to /usr/X11.
>  >  > I know get this error:
>  >  > amageext.c  -fno-common -DPIC -o .libs/damageext.o
>  >  > damageext.c: In function 'ProcDamageAdd':damageext.c: In function
>  >  > 'ProcDamageAdd':
>  >  > damageext.c:288: error: nested functions are disabled, use
>  >  > -fnested-functions to re-enable
>  >  > damageext.c:288: error: syntax error before '*' token
>  >  > damageext.c:292: error: 'xDamageAddReq' undeclared (first use in
>  >  > this function)
>  >  > damageext.c:292: error: (Each undeclared identifier is reported only
>  >  > once
>  >  > damageext.c:292: error: for each function it appears in.)
>  >  >
>  >  > Regards.
>  >  >
>  >  > 2008/3/19 Jeremy Huddleston <jeremyhu at apple.com>:
>  >  >> Install these:
>  >  >>
>  >  >> compositeproto 0.4
>  >  >> glproto 1.4.9
>  >  >> inputproto 1.4.3
>  >  >> renderproto-0.9.3
>  >  >> printproto 1.0.4
>  >  >> xproto 7.0.12
>  >  >>
>  >  >> Also, you shouldn't be using macports for your X11 headers.  You'll
>  >  >> have conflicting versions in /opt/local and /usr/X11 which is bad.
>  >  >> Install them into /usr/X11 (./configure --prefix=/usr/X11 && sudo
>  >  >> make
>  >  >> install) and stip macports out of your environment when you compile
>  >  >> (see that script I sent).
>  >  >>
>  >  >> --Jeremy
>  >  >>
>  >  >>
>  >  >>
>  >  >> On Mar 19, 2008, at 05:28, Michał Majchrowicz wrote:
>  >  >>> I have used macports to install:
>  >  >>> x11/xorg-randrproto 1.2.1
>  >  >>> But I think that xserver was unable to find it since i get the same
>  >  >>> error :(
>  >  >>> Regards.
>  >  >>>
>  >  >>> 2008/3/18 Jeremy Huddleston <jeremyhu at apple.com>:
>  >  >>>> You need to install a newer randrproto.  Unfortunately, I didn't
>  >  >>>> include the proto updated in 2.1.4, so if you want to compile it on
>  >  >>>> your own, you need to install the newer protos (I think just randr,
>  >  >>>> render, input need to be updated).  2.2.0 will include everythig...
>  >  >>>> not just updates.
>  >  >>>>
>  >  >>>> --Jeremy
>  >  >>>>
>  >  >>>>
>  >  >>>>
>  >  >>>> On Mar 18, 2008, at 04:48, Michał Majchrowicz wrote:
>  >  >>>>
>  >  >>>>> Now everything seems to work but I get following error when trying
>  >  >>>>> to compile:
>  >  >>>>> In file included from mirandr.c:34:
>  >  >>>>> randrstr.h:64: error: 'RRNumberRequests' undeclared here (not in a
>  >  >>>>> function)
>  >  >>>>> randrstr.h:80: error: syntax error before 'xRRModeInfo'
>  >  >>>>> randrstr.h:80: warning: no semicolon at end of struct or union
>  >  >>>>> randrstr.h:83: error: syntax error before '}' token
>  >  >>>>> In file included from mirandr.c:34:
>  >  >>>>> ....
>  >  >>>>> I assume this is because git head is now broken and doesn't
>  >  >>>>> compile
>  >  >>>>> but please let me know if I did something wrong :)
>  >  >>>>> Regards.
>  >  >>>>>
>  >  >>>>> 2008/3/18 Jeremy Huddleston <jeremyhu at berkeley.edu>:
>  >  >>>>>> Check out that script I emailed you about.
>  >  >>>>>>
>  >  >>>>>> You are missing the:
>  >  >>>>>>
>  >  >>>>>> export ACLOCAL="aclocal -I /usr/X11/share/aclocal"
>  >  >>>>>>
>  >  >>>>>>
>  >  >>>>>>
>  >  >>>>>>
>  >  >>>>>> On Mar 17, 2008, at 14:52, Michał Majchrowicz wrote:
>  >  >>>>>>
>  >  >>>>>>> Okay this is what I did:
>  >  >>>>>>> git-clone git://anongit.freedesktop.org/git/xorg/xserver.git
>  >  >>>>>>> cd ./xserver/
>  >  >>>>>>> git-branch --track xorg-server-1.2-apple origin/xorg-server-1.2-
>  >  >>>>>>> apple
>  >  >>>>>>> ./autogen.sh --prefix=/usr/X11 --disable-dependency-tracking
>  >  >>>>>>> and I got this error:
>  >  >>>>>>> configure.ac:567: error: possibly undefined macro:
>  >  >>>>>>> XTRANS_CONNECTION_FLAGS
>  >  >>>>>>>   If this token and others are legitimate, please use
>  >  >>>>>>> m4_pattern_allow.
>  >  >>>>>>>   See the Autoconf documentation.
>  >  >>>>>>> autoreconf: /usr/bin/autoconf failed with exit status: 1
>  >  >>>>>>>
>  >  >>>>>>> Did I do something wrong, or maybe the code is now broken and
>  >  >>>>>>> doesn't compile?
>  >  >>>>>>> Regards Michal.
>  >  >>>>>>>
>  >  >>>>>>> On Mon, Mar 17, 2008 at 7:36 PM, Jeremy Huddleston
>  >  >>>>>>> <jeremyhu at apple.com> wrote:
>  >  >>>>>>>>
>  >  >>>>>>>>
>  >  >>>>>>>> On Mar 17, 2008, at 06:12, Martin Costabel wrote:
>  >  >>>>>>>>
>  >  >>>>>>>>> Michał Majchrowicz wrote:
>  >  >>>>>>>>>> I wasn't even able to uninstall xquartz-2.1.4 update :) If I
>  >  >>>>>>>>>> have
>  >  >>>>>>>>>> some
>  >  >>>>>>>>>> problem I just install 10.5.2 combo update once again and it
>  >  >>>>>>>>>> fixes
>  >  >>>>>>>>>> everything :)
>  >  >>>>>>>>>
>  >  >>>>>>>>> There is also the file /System/Library/LaunchAgents/
>  >  >>>>>>>>> org.x.X11.plist
>  >  >>>>>>>>> to take care of. It is essential for the launching of X11, and
>  >  >>>>>>>>> it
>  >  >>>>>>>>> comes in several very different and incompatible variants. The
>  >  >>>>>>>>> ones
>  >  >>>>>>>>> from raw Leopard, from the 10.5.2 OSX update, and from the
>  >  >>>>>>>>> 2.1.4
>  >  >>>>>>>>> xquartz update are each incompatible with the other versions
>  >  >>>>>>>>> of
>  >  >>>>>>>>> X11.
>  >  >>>>>>>>> This file is contained in the X11.*.pkg from the xquartz
>  >  >>>>>>>>> updates; on
>  >  >>>>>>>>> the 10.5 system disk, it is *not* contained in X11User.pkg nor
>  >  >>>>>>>>> in
>  >  >>>>>>>>> X11SDK.pkg.
>  >  >>>>>>>>>
>  >  >>>>>>>>> There are 2 more plist files in /System/Library/
>  >  >>>>>>>>> Launch{Agents,Daemons}, but their incompatibility seems to be
>  >  >>>>>>>>> less
>  >  >>>>>>>>> fatal for the working of X11.
>  >  >>>>>>>>
>  >  >>>>>>>> There should just be one more... /System/Library/LaunchDaemone/
>  >  >>>>>>>> org.x.X11.font_cache.plist
>  >  >>>>>>>>
>  >  >>>>>>>> Also, these will likely be changing yet again in the coming
>  >  >>>>>>>> months
>  >  >>>>>>>> (hopefully to their final configuration) as I finish
>  >  >>>>>>>> reengineering
>  >  >>>>>>>> the
>  >  >>>>>>>> X server startup process.
>  >  >>>>>>>>
>  >  >>>>>>>> --Jeremy
>  >  >>>>>>>> _______________________________________________
>  >  >>>>>>>> Xquartz-dev mailing list
>  >  >>>>>>>> Xquartz-dev at lists.macosforge.org
>  >  >>>>>>>> http://lists.macosforge.org/mailman/listinfo/xquartz-dev
>  >  >>>>>>>>
>  >  >>>>>>>>
>  >  >>>>>>> _______________________________________________
>  >  >>>>>>> Xquartz-dev mailing list
>  >  >>>>>>> Xquartz-dev at lists.macosforge.org
>  >  >>>>>>> http://lists.macosforge.org/mailman/listinfo/xquartz-dev
>  >  >>>>>>
>  >  >>>>>>
>  >  >>>>>> _______________________________________________
>  >  >>>>>> Xquartz-dev mailing list
>  >  >>>>>> Xquartz-dev at lists.macosforge.org
>  >  >>>>>> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>  >  >>>>>>
>  >  >>>>>>
>  >  >>>>> _______________________________________________
>  >  >>>>> Xquartz-dev mailing list
>  >  >>>>> Xquartz-dev at lists.macosforge.org
>  >  >>>>> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>  >  >>>>
>  >  >>>>
>  >  >>>> _______________________________________________
>  >  >>>> Xquartz-dev mailing list
>  >  >>>> Xquartz-dev at lists.macosforge.org
>  >  >>>> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>  >  >>>>
>  >  >>>>
>  >  >>> _______________________________________________
>  >  >>> Xquartz-dev mailing list
>  >  >>> Xquartz-dev at lists.macosforge.org
>  >  >>> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>  >  >>
>  >  >>
>  >  >> _______________________________________________
>  >  >> Xquartz-dev mailing list
>  >  >> Xquartz-dev at lists.macosforge.org
>  >  >> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>  >  >>
>  >  >>
>  >  > _______________________________________________
>  >  > Xquartz-dev mailing list
>  >  > Xquartz-dev at lists.macosforge.org
>  >  > http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>  >
>  >
>  > _______________________________________________
>  >  Xquartz-dev mailing list
>  >  Xquartz-dev at lists.macosforge.org
>  >  http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>  >
>  >
>


More information about the Xquartz-dev mailing list