Josh Brooks wrote (in a message from Monday 24)
> (resent - original did not have a question mark and was probably dismissed
> as a HOWTO)
Hmm, I answerered, but apparently you didn't read it. So let's try
again.
> I am wondering how I can simply recompile my neomagic driver, and copy it
> into my system without recompiling all of X ?
You can't do that without having at least compiled all of X once.
There are many cross-directories dependencies that cannot be handled
in Makefiles/Imakefile. So you need to build the system from the top.
> However, there is no Makefile, only an Imakefile - so the next step is to
> run xmkmf, which succeeds and outputs:
>
> imake -DUseInstalled -I/usr/X11R6/lib/X11/config
>
> so now I have a Makefile - and I continue following the instructions and
> run `make`. But make bombs out with:
>
> neo_driver.c:40: xf86.h: No such file or directory
[...]
>
> ... and so on ... presumably bombing for every .h specified in
> neo_driver.c and every file included from it.
>
> ----------
>
> So here are the two questions:
>
> 1. Why is the make failing ? I don't think it is a problem with X or the
> patch or anything, I think it is a general "I have very little experience
> compiling things" error and I think I am just missing a path or
> something...
because you can't use xmkmf without any argument in the X source tree
itself. The README file I pointed to you earlier explains how to call
xmkmf inside the X source tree, but apparently you didn't read it. So
I'll re-explain it here:
You should pass 2 arguments to xmkmf: the relative path
from the current dir to the top of the source (i.e. the xc directory)
and the relative path from the top to the current directory.
So in your case it would be:
xmkmf ../../../../../.. programs/Xserver/hw/xfree86/drivers/neomagic
> 2. Is this scheme a sound one ? Note that I am not reinstalling or even
> recompiling X, I am just patching the neomagic driver and then running
> `make ; make install` (I checked, the Makefile does have an install rule)
> ... do I then just start X and I will be using a patched neomagic driver ?
Globally no. individual parts of the X source tree can generally not
be recompiled alone. It's alot easier to start with a full build from
the top of the tree. Once you've built youre tree once, you can do
limited recompilations in subdirectories.
To cleanly rebuild the contents of a sub-directory use
make includes
make depend
make
And then make install.
BUT this only works if you've previously build the whole tree with
make World, because there are includes files and libraries build in
other directories that may be needed in the directory you're using.
Matthieu
_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86