Vincent Torri wrote:
<blockquote cite="midPine.LNX.4.51.0602062050400.3489@cartan.iecn.u-nancy.fr" type="cite">
  <pre><br>On Mon, 6 Feb 2006, Alexander Botero wrote:<br></pre>
  <blockquote type="cite"><pre>Final report.<br>Everything works OK now.  I do not have any better explanation.<br><br>$ cd  ~/code/X11/xcb-demo/tests<br>$ LD_LIBRARY_PATH=/usr/local/lib ./flames<br><br>or<br><br>$ export LD_LIBRARY_PATH=/usr/local/lib
<br>$ ./flames<br></pre></blockquote>
  <pre><br>it's strange that you have to put that directory in LD_LIBRARY_PATH. It<br>should already be in /etc/ld.so.conf, I think<br></pre>
</blockquote>
<br>
Yes, /etc/ld.so.conf contains a list of dynamic libraries (directory
list).&nbsp; I just had some weird problems with it because this Ubuntu is
very new installment.&nbsp; Now it's OK and&nbsp; LD_LIBRARY_PATH is no longer
needed.<br>
<br>
<br>
$ ls -l /etc/ld.so*<br>
-rw-r--r--&nbsp; 1 root root 53156 2006-02-06 22:40 /etc/ld.so.cache&nbsp; &lt;-- Binary dump of the actual cache <br>
-rw-r--r--&nbsp; 1 root root&nbsp;&nbsp;&nbsp; 42 2006-02-06 22:39 /etc/ld.so.conf<br>
-rw-r--r--&nbsp; 1 root root&nbsp;&nbsp;&nbsp; 49 2006-02-05 11:09 /etc/ld.so.hwcappkgs<br>
-------------------------------------- -----------------------------<br>
<br>
Update library cache<br>
$ sudo ldconfig<br>
<br>
Verify cache <br>
$ sudo ldconfig -vv | grep XCB<br>
<br>
ldconfig: Path `/usr/lib' given more than once<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCB.so.0 -&gt; libXCB.so.0.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCBProperty.so.0 -&gt; libXCBProperty.so.0.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCBKeysyms.so.0 -&gt; libXCBKeysyms.so.0.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCBAux.so.0 -&gt; libXCBAux.so.0.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCBICCCM.so.0 -&gt; libXCBICCCM.so.0.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCBReply.so.0 -&gt; libXCBReply.so.0.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCBEvent.so.0 -&gt; libXCBEvent.so.0.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCBImage.so.0 -&gt; libXCBImage.so.0.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCBWM.so.0 -&gt; libXCBWM.so.0.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCBAtom.so.0 -&gt; libXCBAtom.so.0.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libXCB.so.0 -&gt; libXCB.so.0.0.0<br>
-------------------------------------- -----------------------------<br>
<br>$&nbsp; cat /etc/ld.so.conf <br>
<br>
/usr/X11R6/lib/<br>
/usr/local/lib/<br>
/usr/lib/<br>
-------------------------------------- -----------------------------<br><br>This is also handy way to check libraries<br>$ updatedb <br>
$ locate&nbsp; libXCB<br>-------------------------------------- -----------------------------<br>
<br>
Thanks <br>
&nbsp; Alexander<br>
&nbsp; ;-)<br>