Difference between revisions of "How to compile an experimental X server"
(cat: howtos) |
|||
(23 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Some functions of the X.org server, such as 3D acceleration for newer cards, are under constant developments. To test the latest features, you need to build the X server and related software directly from the developers' CVS and GIT repositories. Since several projects and dozens of sub-projects are involved, this is a complicated task. | Some functions of the X.org server, such as 3D acceleration for newer cards, are under constant developments. To test the latest features, you need to build the X server and related software directly from the developers' CVS and GIT repositories. Since several projects and dozens of sub-projects are involved, this is a complicated task. | ||
− | The following script automates compilation and installation of the following: | + | The following script automates fetching, compilation and installation of the following: |
− | * X.org server from | + | * Modular X.org server+libraries from GIT (see http://wiki.x.org/wiki/ModularDevelopersGuide and http://wiki.x.org/wiki/GitPage) |
− | * | + | * libDRM and DRM kernel modules from GIT (see http://dri.freedesktop.org/wiki/Building) |
− | * Mesa libraries and DRI drivers (see http://www.mesa3d.org/install.html and http://www.mesa3d.org/cvs_access.html) | + | * Mesa libraries and DRI drivers from CVS (see http://www.mesa3d.org/install.html and http://www.mesa3d.org/cvs_access.html) |
+ | * X keyboard configuration database from CVS (see http://www.freedesktop.org/wiki/Software_2fXKeyboardConfig) | ||
+ | * Synaptics touchpad driver from GIT (see http://web.telia.com/~u89404340/touchpad) | ||
By default all compilation happens in {{path|~/3d-pit}} and everything is installed into {{path|~/3d-pit/install}}. The built DRM kernel module is installed to {{path|/lib/modules/...}}. No other paths are touched (but run as a non-root user, just in case). | By default all compilation happens in {{path|~/3d-pit}} and everything is installed into {{path|~/3d-pit/install}}. The built DRM kernel module is installed to {{path|/lib/modules/...}}. No other paths are touched (but run as a non-root user, just in case). | ||
Line 10: | Line 12: | ||
To save time not all X libraries are built, so you'll need the usual X development environment packages installed (see above links). | To save time not all X libraries are built, so you'll need the usual X development environment packages installed (see above links). | ||
− | Currently only the ATI X.org drivers and | + | Currently only the ATI [[radeon]] X.org drivers and DRI driver (e.g., [[r300]]) are fetched and compiled. If you need different drivers, search for "<tt>radeon</tt>" "<tt>ati</tt>" and "<tt>r300</tt>" and modify as needed. |
==The script== | ==The script== | ||
− | + | {{CodeRef|build-experimental-X}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Running== | ==Running== | ||
Line 151: | Line 23: | ||
Prepare a config file called (say) {{path|/etc/X11/xorg.dri-test.conf}} with DRI enabled. | Prepare a config file called (say) {{path|/etc/X11/xorg.dri-test.conf}} with DRI enabled. | ||
− | Then, exit your current X server (e.g., via {{cmdroot|init 3}}) and run something like: | + | Then, exit your current X server (e.g., via {{cmdroot|init 3}}) and run this for a full session with the new X server: |
+ | {{cmduser|1=. ~/3d-pit/install/bin/xsetenv; startx -- ~/3d-pit/install/bin/X -config xorg.dri-test.conf :0 >& xout.log}} | ||
+ | |||
+ | For a minimal test session, try something like this instead: | ||
{{cmduser|1=. ~/3d-pit/install/bin/xsetenv; X -config xorg.dri-test.conf :0 >& xout.log & ( export DISPLAY=:0; sleep 3; kwin& xterm& )}} | {{cmduser|1=. ~/3d-pit/install/bin/xsetenv; X -config xorg.dri-test.conf :0 >& xout.log & ( export DISPLAY=:0; sleep 3; kwin& xterm& )}} | ||
− | + | Some things to do now: | |
* {{cmduser|xdriinfo}} | * {{cmduser|xdriinfo}} | ||
− | * {{cmduser|1=LIBGL_DEBUG=verbose glxinfo 2>&1 | less}} | + | * {{cmduser|1=LIBGL_DEBUG=verbose glxinfo 2>&1 <nowiki>|</nowiki> less}} |
* {{cmduser|glxgears}} | * {{cmduser|glxgears}} | ||
* {{cmduser|sudo less ~3d-pit/install/var/log/Xorg.0.log}} | * {{cmduser|sudo less ~3d-pit/install/var/log/Xorg.0.log}} | ||
− | * {{cmduser|ppracer}} | + | * {{cmduser|ppracer}} |
* {{cmduser|googleearth}} (Linux version [http://earth.google.com/download-earth.html here]) | * {{cmduser|googleearth}} (Linux version [http://earth.google.com/download-earth.html here]) | ||
To keep up with the latest CVS and GIT versions, just run the script again. You don't need to (and shouldn't) delete {{path|~/3d-pit}} beforehand. | To keep up with the latest CVS and GIT versions, just run the script again. You don't need to (and shouldn't) delete {{path|~/3d-pit}} beforehand. | ||
+ | |||
+ | ''If you encounter problems, please file bugs on the [https://bugs.freedesktop.org Freedesktop Bugzilla].'' | ||
+ | |||
+ | [[Category:Scripts]] | ||
+ | [[Category:HOWTOs]] |
Latest revision as of 16:40, 2 July 2007
Some functions of the X.org server, such as 3D acceleration for newer cards, are under constant developments. To test the latest features, you need to build the X server and related software directly from the developers' CVS and GIT repositories. Since several projects and dozens of sub-projects are involved, this is a complicated task.
The following script automates fetching, compilation and installation of the following:
- Modular X.org server+libraries from GIT (see http://wiki.x.org/wiki/ModularDevelopersGuide and http://wiki.x.org/wiki/GitPage)
- libDRM and DRM kernel modules from GIT (see http://dri.freedesktop.org/wiki/Building)
- Mesa libraries and DRI drivers from CVS (see http://www.mesa3d.org/install.html and http://www.mesa3d.org/cvs_access.html)
- X keyboard configuration database from CVS (see http://www.freedesktop.org/wiki/Software_2fXKeyboardConfig)
- Synaptics touchpad driver from GIT (see http://web.telia.com/~u89404340/touchpad)
By default all compilation happens in ~/3d-pit and everything is installed into ~/3d-pit/install. The built DRM kernel module is installed to /lib/modules/.... No other paths are touched (but run as a non-root user, just in case).
To save time not all X libraries are built, so you'll need the usual X development environment packages installed (see above links).
Currently only the ATI radeon X.org drivers and DRI driver (e.g., r300) are fetched and compiled. If you need different drivers, search for "radeon" "ati" and "r300" and modify as needed.
The script
build-experimental-X (download)
Running
Just run the above. If prompted for a CVS password, press Enter. There are two sudo invocations for which you may need to provide a password.
Prepare a config file called (say) /etc/X11/xorg.dri-test.conf with DRI enabled.
Then, exit your current X server (e.g., via # init 3
) and run this for a full session with the new X server:
$ . ~/3d-pit/install/bin/xsetenv; startx -- ~/3d-pit/install/bin/X -config xorg.dri-test.conf :0 >& xout.log
For a minimal test session, try something like this instead:
$ . ~/3d-pit/install/bin/xsetenv; X -config xorg.dri-test.conf :0 >& xout.log & ( export DISPLAY=:0; sleep 3; kwin& xterm& )
Some things to do now:
$ xdriinfo
$ LIBGL_DEBUG=verbose glxinfo 2>&1 | less
$ glxgears
$ sudo less ~3d-pit/install/var/log/Xorg.0.log
$ ppracer
$ googleearth
(Linux version here)
To keep up with the latest CVS and GIT versions, just run the script again. You don't need to (and shouldn't) delete ~/3d-pit beforehand.
If you encounter problems, please file bugs on the Freedesktop Bugzilla.