Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: XFree86-4.8   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code part 1 is available here.
Source code part 2 is available here.
Source code part 3 is available here.
Source code part 4 is available here.
Source code part 5 is available here.
Source code part 6 is available here.
Source code part 7 is available here.

Run these commands:

cd /sources/ &&
rm -rf xc &&
for i in XFree86-4.8*; do tar -xzf $i;done &&
cd xc &&
cat > config/cf/host.def << "EOF"
/* Begin XFree86 host.def file */

/* System Related Information.  If you read and configure only one
 * section then it should be this one.  The Intel architecture defaults are 
 * set for a i686 and higher.  Axp is for the Alpha architecture and Ppc is  
 * for the Power PC.  Note that there have been reports that the Ppc 
 * optimization line causes segmentation faults during build.  If that 
 * happens, try building without the DefaultGcc2PpcOpt line.  **************/

/* #define DefaultGcc2i386Opt  -O2 -fomit-frame-pointer -march=i686 */
/* #define DefaultGcc2AxpOpt   -O2 -mcpu=ev6 */
/* #define DefaultGcc2PpcOpt   -O2 -mcpu=750 */
#define DefaultGcc2i386Opt  -O1 -fomit-frame-pointer -march=i686

/* The following definitions are normally set properly by XFree86's scripts.
 * You can uncomment them if you want to make sure. ************************/
 
/* #define HasMTRRSupport      YES  */ /* Enabled in kernel see kernel docs*/
/* #define HasMMXSupport        NO  */ /* Any i586 or above */
/* #define HasKatmaiSupport     NO  */ /* PIII SSE instuctions */
/* #define Has3DNowSupport      NO  */ /* AMD instructions */


/* This setting reduces compile time a little by omitting rarely used input 
 * devices.  You can find the complete list in config/cf/xfree86.cf ********/
 
#define XInputDrivers                 mouse void

/* VIDEO DRIVERS ***********************************************************/

/* If you are sure you only want the drivers for one or a few video cards,
 * you can delete the drivers you do not want. *****************************/ 
#define XF86CardDrivers  mga glint rendition \
                         apm \
                         GlideDriver fbdev nsc \
                         ati i810 AgpGartDrivers DevelDrivers ark \
                         siliconmotion \
                         dummy XF86OSCardDrivers XF86ExtraCardDrivers


/* FONT SERVER AND LIBRARY SETTINGS ****************************************/

/* These settings are the defaults   ***************************************/

/* #define BuildFontServer          YES  */ /* For GhostScript Print Server*/
/* #define SharedLibFont            YES  */
/* #define CompressAllFonts         YES  */
/* #define GzipFontCompression      YES  */

/* These settings ensure we use our libraries ******************************/
#define HasFreetype2             YES
#define HasExpat                 YES
#define HasLibpng                YES
#define HasZlib                  YES
#define BuildFonts             NO 
#define HasFontconfig            YES

/* The font path can be redefined in the XF86Config file *******************/

/*
#define DefaultFontPath                $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
$(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
$(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
*/


/* INTERNATIONAL FONTS.  Change to YES if you need any of them.  These  are
 * the defaults. ***********************************************************/

/* #define BuildCyrillicFonts            NO  */
/* #define BuildArabicFonts              NO  */
/* #define BuildISO8859_6Fonts           NO  */
/* #define BuildGreekFonts               NO  */
/* #define BuildISO8859_7Fonts           NO  */
/* #define BuildHebrewFonts              NO  */
/* #define BuildISO8859_8Fonts           NO  */
/* #define BuildKOI8_RFonts              NO  */
/* #define BuildJapaneseFonts            NO  */
/* #define BuildJISX0201Fonts            NO  */
/* #define BuildKoreanFonts              NO  */
/* #define BuildChineseFonts             NO  */

/* DOCUMENTATION SETTINGS **************************************************/

/* These setting are the defaults. *****************************************/
/* #define BuildLinuxDocHtml             NO  */  /* X Docs in Html format */
/* #define BuildLinuxDocPS               NO  */  /* PostScript format */
/* #define BuildAllSpecsDocs             NO  */  /* Various docs */
/* #define BuildHtmlManPages             NO  */

/* GENERAL SETTINGS: You generally want to leave these alone when
 * building X on an LFS system *********************************************/

#define GccWarningOptions         -pipe /* Speed up compiles */
#define TermcapLibrary            -lncurses
#define XprtServer                YES /* Needed by realplayer */
#define XnestServer               YES
#define XAppLoadDir               EtcX11Directory/app-defaults
#define VarLibDir                 /var/lib
#define XFree86Devel               NO
#define FSUseSyslog               YES
#define ThreadedX                 YES
#define TinyXServer     NO      
#define HasPam                     NO        
#define SystemManDirectory        /usr/share/man  /* Instead of /usr/man */
#define HasLibCrypt               YES
#define InstallXinitConfig        YES
#define InstallXdmConfig          YES
#define ForceNormalLib            YES
#define BuildSpecsDocs             NO

/* End XFree86 host.def file */
EOF


WORLDOPTS="" make World &&
make install &&
make install.man &&
ln -sf /usr/X11R6/bin /usr/bin/X11 &&
ln -sf /usr/X11R6/lib/X11 /usr/lib/X11 &&
ln -sf /usr/X11R6/include/X11 /usr/include/X11

The output should look something like this:

Building XFree86 version 4.8.0 (15 December 2008).
I hope you checked the configuration parameters in
./config/cf
to see if you need to pass BOOTSTRAPCFLAGS.
Fri May 22 21:39:07 PDT 2009
cd ./config/imake && make  -f Makefile.ini
BOOTSTRAPCFLAGS="""" CC=""cc"" clean
make[1]: Entering directory `/sources/xc/config/imake'
rm -f ccimake imake.o imake
rm -f *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a tags
TAGS make.log \#*
rm -f -r Makefile.proto Makefile Makefile.dep bootstrap
rm -f imakemdep_cpp.h
make[1]: Leaving directory `/sources/xc/config/imake'
make  Makefile.boot
make[1]: Entering directory `/sources/xc'
cd ./config/imake && make -w -f Makefile.ini
BOOTSTRAPCFLAGS="""" CC=""cc""
make[2]: Entering directory `/sources/xc/config/imake'
making imake with BOOTSTRAPCFLAGS= and
CROSSCOMPILEFLAGS=-DCROSSCOMPILEDIR="""" in config/imake
cc -o ccimake -DCROSSCOMPILEDIR=\""\""	-O -I../../include
ccimake.c
if [ -n """" ] ; then \
/cc -E `./ccimake` \
-DCROSSCOMPILE_CPP imakemdep.h > imakemdep_cpp.h; \
else touch imakemdep_cpp.h; fi
cc -c  -O -I../../include `./ccimake` imake.c
cc -o imake  -O -I../../include imake.o
make[2]: Leaving directory `/sources/xc/config/imake'
rm -f ./config/makedepend/Makefile.proto
./config/imake/imake -I./config/cf  -s
./config/makedepend/Makefile.proto -f
./config/makedepend/Imakefile -DTOPDIR=../..
-DCURDIR=./config/makedepend
cd ./config/makedepend && rm -f -r Makefile Makefile.dep
makedepend *.o bootstrap
cd ./config/makedepend && make -f Makefile.proto bootstrap
make[2]: Entering directory `/sources/xc/config/makedepend'
make[2]: Nothing to be done for `bootstrap'.
make[2]: Leaving directory `/sources/xc/config/makedepend'
./config/imake/imake -I./config/cf  -s
./config/imake/Makefile.proto -f ./config/imake/Imakefile
-DTOPDIR=../.. -DCURDIR=./config/imake -DBootStrap
cd ./config/imake && make -f Makefile.proto bootstrapdepend
make[2]: Entering directory `/sources/xc/config/imake'
make[2]: Nothing to be done for `bootstrapdepend'.
make[2]: Leaving directory `/sources/xc/config/imake'
cd ./config/imake && make -w -f Makefile.ini
BOOTSTRAPCFLAGS="""" CC=""cc"" bootstrap
make[2]: Entering directory `/sources/xc/config/imake'
+ mkdir bootstrap
mv *.o bootstrap
+ mv imake bootstrap
make[2]: Leaving directory `/sources/xc/config/imake'
cd ./config/imake && make -f Makefile.proto imakeonly
make[2]: Entering directory `/sources/xc/config/imake'
gcc -m32 -O2 -fno-strength-reduce -fno-strict-aliasing
-pipe	-I. -I../../include  -I../../exports/include   
-Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L		   
	     -D_POSIX_SOURCE -D_XOPEN_SOURCE		   
		 -D_BSD_SOURCE -D_SVID_SOURCE		   
	      -D_GNU_SOURCE			      
-DFUNCPROTO=15 -DNARROWPROTO	
-DCPP_PROGRAM=""\""cpp\"""" -DHAS_MERGE_CONSTANTS=`if gcc
-m32 -fmerge-constants -xc /dev/null -S -o /dev/null 2>
/dev/null 1> /dev/null; then echo 1; else echo 0; fi`	   
 -DCCCMD=""\""gcc -m32\""""    -c -o imake.o imake.c
rm -f imake
.
.
.
installing man pages in doc/man/DMX...
make[4]: Entering directory `/sources/xc/doc/man/DMX'
+ install -c -m 0444 DMX.3x.html
/usr/X11R6/lib/X11/doc/html/DMX.3.html
install -c -m 0444 DMX._man /usr/X11R6/man/man3/DMX.3x
+ install -c -m 0444 DMXQueryExtension.3x.html
/usr/X11R6/lib/X11/doc/html/DMXQueryExtension.3.html
install -c -m 0444 DMXQueryExtension._man
/usr/X11R6/man/man3/DMXQueryExtension.3x
+ install -c -m 0444 DMXQueryVersion.3x.html
/usr/X11R6/lib/X11/doc/html/DMXQueryVersion.3.html
install -c -m 0444 DMXQueryVersion._man
/usr/X11R6/man/man3/DMXQueryVersion.3x
+ install -c -m 0444 DMXSync.3x.html
/usr/X11R6/lib/X11/doc/html/DMXSync.3.html
install -c -m 0444 DMXSync._man
/usr/X11R6/man/man3/DMXSync.3x
+ install -c -m 0444 DMXForceWindowCreation.3x.html
/usr/X11R6/lib/X11/doc/html/DMXForceWindowCreation.3.html
install -c -m 0444 DMXForceWindowCreation._man
/usr/X11R6/man/man3/DMXForceWindowCreation.3x
+ install -c -m 0444 DMXGetScreenCount.3x.html
/usr/X11R6/lib/X11/doc/html/DMXGetScreenCount.3.html
install -c -m 0444 DMXGetScreenCount._man
/usr/X11R6/man/man3/DMXGetScreenCount.3x
+ install -c -m 0444 DMXGetScreenAttributes.3x.html
/usr/X11R6/lib/X11/doc/html/DMXGetScreenAttributes.3.html
install -c -m 0444 DMXGetScreenAttributes._man
/usr/X11R6/man/man3/DMXGetScreenAttributes.3x
+ install -c -m 0444 DMXChangeScreensAttributes.3x.html
/usr/X11R6/lib/X11/doc/html/DMXChangeScreensAttributes.3.ht
ml
install -c -m 0444 DMXChangeScreensAttributes._man
/usr/X11R6/man/man3/DMXChangeScreensAttributes.3x
+ install -c -m 0444 DMXAddScreen.3x.html
/usr/X11R6/lib/X11/doc/html/DMXAddScreen.3.html
install -c -m 0444 DMXAddScreen._man
/usr/X11R6/man/man3/DMXAddScreen.3x
+ install -c -m 0444 DMXRemoveScreen.3x.html
/usr/X11R6/lib/X11/doc/html/DMXRemoveScreen.3.html
install -c -m 0444 DMXRemoveScreen._man
/usr/X11R6/man/man3/DMXRemoveScreen.3x
+ install -c -m 0444 DMXGetWindowAttributes.3x.html
/usr/X11R6/lib/X11/doc/html/DMXGetWindowAttributes.3.html
install -c -m 0444 DMXGetWindowAttributes._man
/usr/X11R6/man/man3/DMXGetWindowAttributes.3x
+ install -c -m 0444 DMXGetDesktopAttributes.3x.html
/usr/X11R6/lib/X11/doc/html/DMXGetDesktopAttributes.3.html
install -c -m 0444 DMXGetDesktopAttributes._man
/usr/X11R6/man/man3/DMXGetDesktopAttributes.3x
+ install -c -m 0444 DMXChangeDesktopAttributes.3x.html
/usr/X11R6/lib/X11/doc/html/DMXChangeDesktopAttributes.3.ht
ml
install -c -m 0444 DMXChangeDesktopAttributes._man
/usr/X11R6/man/man3/DMXChangeDesktopAttributes.3x
+ install -c -m 0444 DMXGetInputCount.3x.html
/usr/X11R6/lib/X11/doc/html/DMXGetInputCount.3.html
install -c -m 0444 DMXGetInputCount._man
/usr/X11R6/man/man3/DMXGetInputCount.3x
+ install -c -m 0444 DMXGetInputAttributes.3x.html
/usr/X11R6/lib/X11/doc/html/DMXGetInputAttributes.3.html
install -c -m 0444 DMXGetInputAttributes._man
/usr/X11R6/man/man3/DMXGetInputAttributes.3x
+ install -c -m 0444 DMXAddInput.3x.html
/usr/X11R6/lib/X11/doc/html/DMXAddInput.3.html
install -c -m 0444 DMXAddInput._man
/usr/X11R6/man/man3/DMXAddInput.3x
+ install -c -m 0444 DMXRemoveInput.3x.html
/usr/X11R6/lib/X11/doc/html/DMXRemoveInput.3.html
install -c -m 0444 DMXRemoveInput._man
/usr/X11R6/man/man3/DMXRemoveInput.3x
+ rm -f
/usr/X11R6/lib/X11/doc/html/DMXAddBackendInput.3.html
+ cd /usr/X11R6/lib/X11/doc/html
+ ln -s DMXAddInput.3.html DMXAddBackendInput.3.html
+ rm -f
/usr/X11R6/lib/X11/doc/html/DMXAddConsoleInput.3.html
+ cd /usr/X11R6/lib/X11/doc/html
+ ln -s DMXAddInput.3.html DMXAddConsoleInput.3.html
+ install -c -m 0444 '#tmp.4552'
/usr/X11R6/man/man3/DMXAddBackendInput.3x
+ install -c -m 0444 '#tmp.4552'
/usr/X11R6/man/man3/DMXAddConsoleInput.3x
install.man in doc/man/DMX done
make[4]: Leaving directory `/sources/xc/doc/man/DMX'
make[3]: Leaving directory `/sources/xc/doc/man'
make[2]: Leaving directory `/sources/xc/doc'
env LC_ALL=C perl  ./config/util/mkhtmlindex.pl
/usr/X11R6/lib/X11/doc/html
make[1]: Leaving directory `/sources/xc'


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS