Sorry I am not familiar with Makefiles<br>But I modified src/egl/drivers/glx/Makefile and <br>src/egl/main/Makefile as attached patch file.<br><br>and it can compiled passed when configured<br>--with-dri-drivers=i915 --disable-gallium --without-demos <br>
<br>if gallium enabled or with demos, it still compiled failed that<br>can not find xlib.h<br><br>I'll temporarily use this patch to go on compile xserver,<br>thanks all :)<br><br><div class="gmail_quote">2010/4/18 CSJ <span dir="ltr"><<a href="mailto:changsijay@gmail.com">changsijay@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">oops, fixed typo PREFIX,<br>but still failed on can not find X11/Xlib.h and X11/Xutil.h<br><br>
Thanks your correction :)<br>and I also change configure options as<br><br>./autogen.sh --prefix="$PREFIX" --enable-xcb --with-dri-drivers=i915 --disable-gallium<br>
<br><div class="gmail_quote"><div class="im">2010/4/18 Joakim Sindholt <span dir="ltr"><<a href="mailto:bacn@zhasha.com" target="_blank">bacn@zhasha.com</a>></span><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
In your script, something came to mind in:<div><div></div><div class="h5"><br>
./autogen.sh --prefix="$PREFX" --enable-xcb --enable-gallium-intel<br>
--with-dri-drivers=i915<br>
That line actually compiles both classic AND gallium'ized drivers. The<br>
--with-dri-drivers flag is what you specify to compile classic mesa<br>
drivers.<br>
(also you wrote $PREFX, not $PREFIX, it looks like a bug)<br>
<div><div></div><div><br>
On Sun, 2010-04-18 at 22:42 +0800, CSJ wrote:<br>
> My build script is as attached named auto.sh,<br>
> and run it as:<br>
> auto.sh init<br>
> auto.sh get_xorg_proto<br>
> auto.sh build_xorg_proto<br>
> auto.sh get_xorg_lib<br>
> auto.sh build_xorg_lib<br>
><br>
> and failed on build mesa lib.<br>
><br>
> I'll try to patch Makefile to let it compile pass.<br>
> Thanks :)<br>
><br>
> 2010/4/18 Luca Barbieri <<a href="mailto:luca.barbieri@gmail.com" target="_blank">luca.barbieri@gmail.com</a>><br>
> Normally the X11 headers are available without needing any<br>
> special -I<br>
> options, since they are at /usr/include/X11/Xlib.h<br>
><br>
> It's quite possible that the Mesa build system may be broken<br>
> if you<br>
> have them somewhere else, since possibly no one tested that.<br>
><br>
> Just figure out how to fix it and send a patch :)<br>
><br>
<br>
<br>
</div></div></div></div></blockquote></div><br>
</blockquote></div><br>