%general-entities; ]> $LastChangedBy$ $Date$ Xorg Libraries Xorg Libraries Introduction to Xorg Libraries The Xorg libraries provide library routines that are used within all X Window applications. &lfs101_checked; Package Information Download (HTTP): Download (FTP): Download size: &x7libs-size; Estimated disk space required: &x7libs-buildsize; Estimated build time: &x7libs-time; Xorg Libraries Dependencies Required and Recommended Optional with one or more of the following: , , , and W3m (to generate additional PDF or text documentation for the libXfont package). User Notes: Downloading Xorg Libraries First, create a list of files to be downloaded. This file will also be used to verify the integrity of the downloads when complete: cat > lib-&xorg-version;.md5 << "EOF" &xtrans-md5sum; xtrans-&xtrans-version;.tar.bz2 &libX11-md5sum; libX11-&libX11-version;.tar.bz2 &libXext-md5sum; libXext-&libXext-version;.tar.bz2 &libFS-md5sum; libFS-&libFS-version;.tar.bz2 &libICE-md5sum; libICE-&libICE-version;.tar.bz2 &libSM-md5sum; libSM-&libSM-version;.tar.bz2 &libXScrnSaver-md5sum; libXScrnSaver-&libXScrnSaver-version;.tar.bz2 &libXt-md5sum; libXt-&libXt-version;.tar.bz2 &libXmu-md5sum; libXmu-&libXmu-version;.tar.bz2 &libXpm-md5sum; libXpm-&libXpm-version;.tar.bz2 &libXaw-md5sum; libXaw-&libXaw-version;.tar.bz2 &libXfixes-md5sum; libXfixes-&libXfixes-version;.tar.bz2 &libXcomposite-md5sum; libXcomposite-&libXcomposite-version;.tar.bz2 &libXrender-md5sum; libXrender-&libXrender-version;.tar.bz2 &libXcursor-md5sum; libXcursor-&libXcursor-version;.tar.bz2 &libXdamage-md5sum; libXdamage-&libXdamage-version;.tar.bz2 &libfontenc-md5sum; libfontenc-&libfontenc-version;.tar.bz2 &libXfont2-md5sum; libXfont2-&libXfont2-version;.tar.bz2 &libXft-md5sum; libXft-&libXft-version;.tar.bz2 &libXi-md5sum; libXi-&libXi-version;.tar.bz2 &libXinerama-md5sum; libXinerama-&libXinerama-version;.tar.bz2 &libXrandr-md5sum; libXrandr-&libXrandr-version;.tar.bz2 &libXres-md5sum; libXres-&libXres-version;.tar.bz2 &libXtst-md5sum; libXtst-&libXtst-version;.tar.bz2 &libXv-md5sum; libXv-&libXv-version;.tar.bz2 &libXvMC-md5sum; libXvMC-&libXvMC-version;.tar.bz2 &libXxf86dga-md5sum; libXxf86dga-&libXxf86dga-version;.tar.bz2 &libXxf86vm-md5sum; libXxf86vm-&libXxf86vm-version;.tar.bz2 &libdmx-md5sum; libdmx-&libdmx-version;.tar.bz2 &libpciaccess-md5sum; libpciaccess-&libpciaccess-version;.tar.bz2 &libxkbfile-md5sum; libxkbfile-&libxkbfile-version;.tar.bz2 &libxshmfence-md5sum; libxshmfence-&libxshmfence-version;.tar.bz2 EOF To download the needed files using wget, use the following commands: mkdir lib && cd lib && grep -v '^#' ../lib-&xorg-version;.md5 | awk '{print $2}' | wget -i- -c \ -B &xorg-download-http;/lib/ && md5sum -c ../lib-&xorg-version;.md5 Installation of Xorg Libraries &as_root; Some libraries come with a test suite. If you wish to execute them, either comment out the rm -rf ... below, so that, after all libraries are installed, you can come back to the corresponding directory and run make check, or do individual builds, running the tests for each of those distributed with working test suites. Alternatively, you can uncomment the line #make check ..., and at the end, check the test results with: grep -A9 summary *make_check.log BLFS developers have confirmed that libX11, libXt and libxshmfence are distributed with working test suites. First, start a subshell that will exit on error: bash -e Install all of the packages by running the following commands: for package in $(grep -v '^#' ../lib-&xorg-version;.md5 | awk '{print $2}') do packagedir=${package%.tar.bz2} tar -xf $package pushd $packagedir docdir="--docdir=$XORG_PREFIX/share/doc/$packagedir" case $packagedir in libICE* ) ./configure $XORG_CONFIG $docdir ICE_LIBS=-lpthread ;; libXfont2-[0-9]* ) ./configure $XORG_CONFIG $docdir --disable-devel-docs ;; libXt-[0-9]* ) ./configure $XORG_CONFIG $docdir \ --with-appdefaultdir=/etc/X11/app-defaults ;; * ) ./configure $XORG_CONFIG $docdir ;; esac make #make check 2>&1 | tee ../$packagedir-make_check.log as_root make install popd rm -rf $packagedir as_root /sbin/ldconfig done Finally, exit the shell that was started earlier: exit Command Explanations ./configure $XORG_CONFIG ICE_LIBS=-lpthread: This fixes a change in glibc which breaks pulseaudio at runtime. --disable-devel-docs: Disable generation of text documentation in the libXfont2 package if is installed without a text browser. Omit this parameter (or the entire case statement) if a text browser is installed. : Use to generate PDF documentation (only for the libXfont package). Configuration of Xorg Libraries If you've chosen to install Xorg into /usr, then no further configuration is necessary and you can skip the rest of this section. If you've opted for an alternate prefix, you should create two symlinks to satisfy the expected environment of several packages. Execute the following commands as the root user: ln -sv $XORG_PREFIX/lib/X11 /usr/lib/X11 && ln -sv $XORG_PREFIX/include/X11 /usr/include/X11 Contents Installed Programs Installed Libraries Installed Directories cxpm and sxpm libdmx.so, libfontenc.so, libFS.so, libICE.so, libpciaccess.so, libSM.so, libX11.so, libXaw6.so, libXaw7.so, libXaw.so, libXcomposite.so, libXcursor.so, libXdamage.so, libXext.so, libXfixes.so, libXfont2.so, libXft.so, libXinerama.so, libXi.so, libxkbfile.so, libXmu.so, libXmuu.so, libXpm.so, libXrandr.so, libXrender.so, libXRes.so, libxshmfence.so, libXss.so, libXt.so, libXtst.so, libXvMC.so, libXvMCW.so, libXv.so, libXxf86dga.so and libXxf86vm.so $XORG_PREFIX/include/X11/fonts, $XORG_PREFIX/include/X11/Xtrans, $XORG_PREFIX/share/doc/libFS, $XORG_PREFIX/share/doc/libICE, $XORG_PREFIX/share/doc/libSM, $XORG_PREFIX/share/doc/libX11, $XORG_PREFIX/share/doc/libXaw, $XORG_PREFIX/share/doc/libXext, $XORG_PREFIX/share/doc/libXi, $XORG_PREFIX/share/doc/libXmu, $XORG_PREFIX/share/doc/libXrender, $XORG_PREFIX/share/doc/libXt, $XORG_PREFIX/share/doc/libXtst, $XORG_PREFIX/share/doc/libXvMC, $XORG_PREFIX/share/doc/xtrans and $XORG_PREFIX/share/X11/locale Short Descriptions cxpm checks the format of an XPM file cxpm sxpm shows an XPM file and/or converts XPM 1 or 2 files to XPM 3 sxpm libdmx.so is the X Window System DMX (Distributed Multihead X) extension library libdmx.so libfontenc.so is the X11 font encoding library libfontenc.so libFS.so is the library interface to the X Font Server libFS.so libICE.so is the X Inter Client Exchange Library libICE.so libpciaccess.so is the generic PCI Access library for X libpciaccess.so libSM.so is the X Session Management Library libSM.so libX11.so is the Xlib Library libX11.so libXaw6.so is the X Athena Widgets Library, version 6 libXaw6.so libXaw7.so is the X Athena Widgets Library, version 7 libXaw7.so libXaw.so are symbolic links to the current X Athena Widgets Library, version 7 libXaw.so libXcomposite.so is the X Composite Library libXcomposite.so libXcursor.so is the X Cursor management library libXcursor.so libXdamage.so is the X Damage Library libXdamage.so libXext.so is the Misc X Extension Library libXext.so libXfixes.so provides augmented versions of core protocol requests libXfixes.so libXfont2.so is the X font library libXfont2.so libXft.so is the X FreeType interface library libXft.so libXinerama.so is the Xinerama Library libXinerama.so libXi.so is the X Input Extension Library libXi.so libxkbfile.so is the xkbfile Library libxkbfile.so libXmu.so is the X interface library for miscellaneous utilities not part of the Xlib standard libXmu.so libXmuu.so is the Mini Xmu Library libXmuu.so libXpm.so is the X Pixmap Library libXpm.so libXrandr.so is the X Resize, Rotate and Reflection extension library libXrandr.so libXrender.so is the X Render Library libXrender.so libXRes.so is the X-Resource extension client library libXRes.so libxshmfence.so exposes an event API on top of Linux futexes libxshmfence.so libXss.so is the X11 Screen Saver extension client library libXss.so libXt.so is the X Toolkit Library libXt.so libXtst.so is the Xtst Library libXtst.so libXvMC.so is the X-Video Motion Compensation Library libXvMC.so libXvMCW.so is the XvMC Wrapper including the Nonstandard VLD extension libXvMCW.so libXv.so is the X Window System video extension library libXv.so libXxf86dga.so is the client library for the XFree86-DGA extension libXxf86dga.so libXxf86vm.so is the client library for the XFree86-VidMode X extension libXxf86vm.so