Re: KDevelop: where does it get its "LD_LIBRARY_PATH"?



On Jan 24, 9:12 am, Rainer Weikusat <rweiku...@xxxxxxxxxxx> wrote:
Jeff <j...@xxxxxxxxx> writes:
Im running into a problem which appears to be related to how KDevelop
finds its
LD_LIBRARY_PATH (or similiar) when I run 'configure' from the BUILD
menu.
It keeps telling me it cannot find a library that I know is in /usr/
local/lib.

Ive run ldconfig -X /usr/local/lib and ldconfig -n /usr/local/lib but
it still complains.
If I run configure from the shell it works fine (Since my
LD_LIBRARY_PATH is setup
correctly Im assuming).

Im running an older version of KDev, 3.2 (which I could upgrade but
cant!).

Any ideas how to fix this?  In the "project options-> configure
options"
everything seems fine there also (-L/usr/local/lib is on the configure
line and
the missing lib file exists there fine...and the link to it).

There are two options:

        a) add /usr/local/lib to /etc/ld.so.conf and run ldconfig
        afterwards to add the directory to the per-system dynamic
        linker search path

        b) use -Wl,-rpath /usr/local/lib to compile the additional
        search path into the binary.- Hide quoted text -

- Show quoted text -

I used option B and it worked!
Thank you so much!
.



Relevant Pages

  • KDevelop: where does it get its "LD_LIBRARY_PATH"?
    ... Im running into a problem which appears to be related to how KDevelop ... LD_LIBRARY_PATH (or similiar) when I run 'configure' from the BUILD ... Any ideas how to fix this? ... the missing lib file exists there fine...and the link to it). ...
    (comp.os.linux.development.apps)
  • Re: Souring in a file
    ... > Is there any quick way to do something similiar in ksh. ... functions are unset when the shell executes a shell ... Shell Scripting Recipes: ...
    (comp.unix.shell)