Lib path and compile
I have kde installed at /opt/kde
I am installing a package kionjb-0.2.2-st and it wants kde libs. When I create symbolic links from the /opt/kde/lib/library to /lib/library, the package will find the lib it wants. How can I get the package to look in the /opt/kde/lib directory for these libs? [root@tlinux: kionjb-0.2.2-st]$echo $LD_LIBRARY_PATH /opt/kde/lib I have all the libs it needs, it just cannot find them in that dir. R /usr/lib -R /usr/X11R6/lib cache.lo mp3.lo njb.lo playlist.lo track.lo -lid -lkio -lnjb -lusb -lkio -lkdeui -lkdecore -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread -lXext -lX11 -lid3 -lnjb -lusb These are the kde libs it wants. I want a way to compile without creating symbolic links to them. -lkio -lkdeui -lkdecore Code:
# Begin /etc/ld.so.conf |
Edit /etc/ld.so.conf (if it doesn't exist, create it with a plain text editor like kedit or gedit) and add the line
/opt/kde/lib Then run (as root) ldconfig |
I forgot to put in their that /opt/kde/lib is /opt/kde-3.2.2/lib.
/opt/kde is symbolic link to /opt/kde-3.2.2 I have ran ldconfig as well, so the cache is up to date. This is the error i get for the libkio error: /usr/bin/ld: cannot find -lkio Here is the ldconfig cache for that file: [root@tlinux: lib]$ldconfig -p | grep libkio.so libkio.so.4 (libc6) => /opt/kde-3.2.2/lib/libkio.so.4 libkio.so (libc6) => /opt/kde-3.2.2/lib/libkio.so [root@tlinux: lib]$ A symbolic link from /opt/kde-3.2.2/lib/libkio.so to /lib/libkio.so solves it. |
bump
|
I believe my path and libs are detected but it is the makefile that is the issue. Here is the makefile that is generated and you can see that the all kde dirs are found. However it does not use them for some reason. Well, if anyone has any ideas.
Code:
[root@tlinux: kionjb-0.2.2-st]$grep kde Makefile |
All times are GMT -5. The time now is 03:21 PM. |