Difference between revisions of "Xorg7/Intro"

From CBLFS
Jump to navigationJump to search
(Added utility macros as first step IAW Xorg website.)
(Added discussion regarding modular nature of Xorg7 and link to Alan Coopersmith's post.)
Line 25: Line 25:
  
 
If you are using a prefix ther then /usr and did not create the '''15-xorg.sh''' script in [[Bash Startup Files]] then be sure to add '''$XORG_PREFIX/bin''' to your PATH and adjust your PKG_CONFIG_PATHs accordingly. You should also add '''$XORG_PREFIX/lib''' to /etc/ld.so.conf.
 
If you are using a prefix ther then /usr and did not create the '''15-xorg.sh''' script in [[Bash Startup Files]] then be sure to add '''$XORG_PREFIX/bin''' to your PATH and adjust your PKG_CONFIG_PATHs accordingly. You should also add '''$XORG_PREFIX/lib''' to /etc/ld.so.conf.
 +
 +
Xorg 7 is modular so you won't need to include everything in your installation.  You can look here [http://lists.x.org/archives/xorg-modular/2005-November/000801.html] to help decide what modules will be required to meet your needs.  The drivers you need, or course, depend on your hardware.  [[Xorg7/Fonts|Fonts]], also, are a personal choice.  You don't need all, but you'll need a few.
  
 
* [[Xorg7/utility_macros|Utility Macros]]
 
* [[Xorg7/utility_macros|Utility Macros]]

Revision as of 10:08, 17 September 2006

Setting up the Xorg Build Enviornment

First, you'll need to create a working directory:

mkdir xc &&
cd xc

As with previous releases of the X Window System, it may be desirable to install Xorg into an alternate prefix. This is no longer common practice among Linux distributions. The common installation prefix for Xorg on Linux is /usr. There is no standard alternate prefix, nor is there any exception in the current revision of the Filesystem Hierarchy Standard for Release 7 of the X Window System. Alan Coopersmith of Sun Microsystems, has recently stated "At Sun, we were using /usr/X11 and plan to stick with it." Only the /opt/* prefix or the /usr prefix adhere to the current FHS guidelines.

If you did not set XORG_PREFIX in Bash Startup Files then you will need to choose a installation prefix now.

export XORG_PREFIX="[PREFIX]"

Throughout these instructions, you will use the same three configure switches for all of the packages. Create the XORG_CONFIG variable to use for substitution:

Non-Multilib

export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc --localstatedir=/var"

Multilib

export XORG_CONFIG32="--prefix=$XORG_PREFIX --sysconfdir=/etc --localstatedir=/var"
export XORG_CONFIGN32="--prefix=$XORG_PREFIX --libdir=$XORG_PREFIX/lib32 --sysconfdir=/etc --localstatedir=/var"
export XORG_CONFIG64="--prefix=$XORG_PREFIX --libdir=$XORG_PREFIX/lib64 --sysconfdir=/etc --localstatedir=/var"

If you are using a prefix ther then /usr and did not create the 15-xorg.sh script in Bash Startup Files then be sure to add $XORG_PREFIX/bin to your PATH and adjust your PKG_CONFIG_PATHs accordingly. You should also add $XORG_PREFIX/lib to /etc/ld.so.conf.

Xorg 7 is modular so you won't need to include everything in your installation. You can look here [1] to help decide what modules will be required to meet your needs. The drivers you need, or course, depend on your hardware. Fonts, also, are a personal choice. You don't need all, but you'll need a few.