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). I just had some weird problems with it because this Ubuntu is
very new installment. Now it's OK and LD_LIBRARY_PATH is no longer
needed.<br>
<br>
<br>
$ ls -l /etc/ld.so*<br>
-rw-r--r-- 1 root root 53156 2006-02-06 22:40 /etc/ld.so.cache <-- Binary dump of the actual cache <br>
-rw-r--r-- 1 root root 42 2006-02-06 22:39 /etc/ld.so.conf<br>
-rw-r--r-- 1 root root 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>
libXCB.so.0 -> libXCB.so.0.0.0<br>
libXCBProperty.so.0 -> libXCBProperty.so.0.0.0<br>
libXCBKeysyms.so.0 -> libXCBKeysyms.so.0.0.0<br>
libXCBAux.so.0 -> libXCBAux.so.0.0.0<br>
libXCBICCCM.so.0 -> libXCBICCCM.so.0.0.0<br>
libXCBReply.so.0 -> libXCBReply.so.0.0.0<br>
libXCBEvent.so.0 -> libXCBEvent.so.0.0.0<br>
libXCBImage.so.0 -> libXCBImage.so.0.0.0<br>
libXCBWM.so.0 -> libXCBWM.so.0.0.0<br>
libXCBAtom.so.0 -> libXCBAtom.so.0.0.0<br>
libXCB.so.0 -> libXCB.so.0.0.0<br>
-------------------------------------- -----------------------------<br>
<br>$ 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 libXCB<br>-------------------------------------- -----------------------------<br>
<br>
Thanks <br>
Alexander<br>
;-)<br>