DSL Tips and Tricks :: A quick guide on compiling XOrg 7.0 on DSL



Quote
umm.. How will your extension be bigger than DSL, when in Geexbox-HD Xorg added only 14mb?
It could be due in part to stuff like xcb (whatever that is) and mini-applications (eg clock) - some of the lib files are approaching 14MB (uncompressed)...

Quote
Did you also build cyrillic, CID and other fonts? If you did, just remove 'em, only 75 & 100 dpi will be needed to that font extension..
I built everything in the x.org "everything" directory first time around. I'll go back and look at only building 75/100dpi fonts or maybe just one of them. For info, here's the list:

font-util
font encodings
font-adobe-100dpi
font-adobe-75dpi
font-adobe-utopia-100dpi
font-adobe-utopia-75dpi
font-adobe-utopia-type1
font-arabic-misc
font-bh-100dpi
font-bh-75dpi
font-bh-lucidatypewriter-100dpi
font-bh-lucidatypewriter-75dpi
font-bh-ttf
font-bh-type1
font-bitstream-100dpi
font-bitstream-75dpi
font-bitstream-speedo
font-bitstream-type1
font-cronyx-cyrillic
font-cursor-misc
font-daewoo-misc
font-dec-misc
font-ibm-type1
font-isas-misc
font-jis-misc
font-micro-misc
font-misc-cyrillic
font-misc-ethiopic
font-misc-meltho
font-misc-misc
font-mutt-misc
font-schumacher-misc
font-screen-cyrillic
font-sony-misc
font-sun-misc
font-winitzki-cyrillic
font-xfree86-type1
font-alias

Can I manage with just this?

font-util
font encodings
font-adobe-100dpi
font-adobe-75dpi
font-alias

I've got a small problem here - when I try to start xorg in /usr/local, it complains that it cannot find lib files that I've verified are in /usr/local/lib. This doesn't happen when I start xorg in /opt/xorg72 but then I have to run startx as root.

I've tried adding /usr/local/lib to $LD_LIBRARY_PATH and I've checked that /usr/local/bin is in $PATH but this doesn't help. I suppose I'm missing something obvious, but what?

I usually replace the symlink .../bin/X with a wrapper script that sets up the environment (though usually this is out of /usr since /usr/local/lib should be searched by default? - esp. if you set the script to build there).
Code Sample
export LD_LIBRARY_PATH=/usr/local/lib
Xorg
And don't forget to make it executable..

About fonts:
Quote
Can I manage with just this?

font-util
font encodings
font-adobe-100dpi
font-adobe-75dpi
font-alias
Yes, but I would use bitstream instead of adobe. It looks better ;)
Also font-cursor-misc might be needed..

Quote
export LD_LIBRARY_PATH=/usr/local/lib
Xorg

Thanks - I hadn't thought of doing it like that - 'trouble is I still get the same error:

error while loading shared libraries: libXfont.so.1: cannot open shared object file: no such file or directory

In /usr/local/lib I have the following:

libXfont.so --> libXfont.so.1.4.1
libXfont.so.1 --> libXfont.so.1.4.1
libXfont.so.1.4.1

If I use a symlink to a previous compile:

/opt/xorg72 --> /mnt/sdb4/opt/xorg72

Then I do not get this error, but I have to use "sudo startx". However, if I build a unc extension based on /opt/xorg72 then I get the same libXfont error.

This starts to get tedious... :(

Next Page...
original here.