Luca Dionisi wrote:
I'm trying to install xorg 7 from scratch. I removed all files from a
previous installation of xorg 6.8.2
Now if I try to build Mesa on its own, first, it complains about the
absence of X11/Xlib.h
And if I try to build xorg --with-mesa... pointing to the dir where
I unpacked only the MesaLib, then it complains about the absence
of Mesa. It says:
<snip>
I'm using this command to build xorg
./build-from-tarballs.sh -n -m /usr/src/mesa/Mesa-6.4.1 /usr
To make Mesalib I tried
make linux-dri-x86
and
make linux
but none works.
Hi Luca,
I am on my own learning path with X11R7.0 and I have found that to build
mesa you need to do something like this:
Your CFLAGS should probably be set to something like:
"-O2 -s -march=[your proc type]" if you want any optimisations.
make linux-dri-x86 OPT_FLAGS="$CFLAGS \
-DDEFAULT_DRIVER_DIR=\\\"/usr/lib/xorg/modules/dri\\\"" MKDEP="gcc -M" \
MKDEP_OPTIONS="-MF depend"
This command is all on one line.
Then install mesa with:
bin/installmesa /usr
mkdir -p /usr/lib/xorg/modules/dri
install -v lib/*dri* /usr/lib/xorg/modules/dri
However, I think you need to make sure that you have built and installed
most of the X sources for the proto and libraries sections first. Or
else mesa will not be able to link to them - obviously...
I have used a modified Makefile which was highlighted to me by Alexander
Patrakov on this list. Take a look at the file here:
http://svn.linuxfromscratch.org/viewcvs.cgi/trunk/packages/Xorg-modular/?root=livecd
to see how he has done it.
It has (almost) worked for me. But my problems are more to do with
configuration and fonts etc... You might be able to modify your shell
script to build in the correct order...
Hope this helps.
Al
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page