I&#39;ve compiled and installed libX11 from git,<br>and set below envs.<br><br>PREFIX=&quot;/opt/xorg&quot;<br>export
 PKG_CONFIG_PATH=&quot;$PREFIX&quot;/lib/<div id=":6u" class="ii gt">pkgconfig:&quot;$PREFIX&quot;/share/pkgconfig:${PKG_CONFIG_PATH}<br>
<br>it&#39;s weird that I can compiled and installed mesa 7.7.1 
successfully,<br>but failed on 7.8 and later.<br><br>Maybe I need to 
patch some Makefiles to let it find libX11?</div><br><br><div class="gmail_quote">2010/4/18 Joakim Sindholt <span dir="ltr">&lt;<a href="mailto:bacn@zhasha.com">bacn@zhasha.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Install the X11/Xlib development headers with your distributions package<br>
manager.<br>
<div><div></div><div class="h5"><br>
On Sun, 2010-04-18 at 11:39 +0800, CSJ wrote:<br>
&gt; Hello, I am new to mesa,<br>
&gt; and I am not sure if compiling issue could post here or not?<br>
&gt;<br>
&gt; I want to build xorg and follow this guide:<br>
&gt; <a href="http://www.x.org/wiki/Development/BuildingX" target="_blank">http://www.x.org/wiki/Development/BuildingX</a><br>
&gt;<br>
&gt; but when I build mesa,<br>
&gt; It error at:<br>
&gt; ../../../include/EGL/eglplatform.h:84:22: error: X11/Xlib.h: No such<br>
&gt; file or directory<br>
&gt; ../../../include/EGL/eglplatform.h:85:23: error: X11/Xutil.h: No such<br>
&gt; file or directory<br>
&gt;<br>
&gt;<br>
&gt; and I also tried 7.8 and 7.8.1 are both stop at the same error,<br>
&gt; but I can compile 7.7.1 successfully.<br>
&gt;<br>
&gt; I google the message and find some hint here:<br>
&gt; <a href="http://www.mail-archive.com/blfs-dev@linuxfromscratch.org/msg09459.html" target="_blank">http://www.mail-archive.com/blfs-dev@linuxfromscratch.org/msg09459.html</a><br>
&gt;<br>
&gt; By adding include dir to src/egl/main/Makefile, I can go on,<br>
&gt; But error on another file complain  X11/Xlib.h: No such file or<br>
&gt; directory<br>
&gt;<br>
&gt; How could I fix this error?<br>
&gt; X11/Xlib.h: No such file or directory<br>
&gt; X11/Xutil.h: No such file or directory<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; mesa-dev mailing list<br>
&gt; <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br>
<br>
</blockquote></div><br>