[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Problem with shared library loading
From:       cfjh <juergen.hochwald () privat ! kkf ! net>
Date:       1999-08-04 21:18:40
[Download RAW message or body]

hi

I am developing  a kwindrose-widget which displays a compass with the
current wind direction (used by the kweather program). I've copied it
from my kspline widget and modified the makefiles for the new library,
but the general structure is identical (except the filenames).
Compiling and installing is ok, but then I try to start the test-app,
the shared library is not found.  The kweather-app, which also uses the
windrose-widget, runs without problems. The library is in the
"/opt/kde/lib"dir, where are all other kde libs.

Any idea why the shares lib is not found ??

Jürgen


cfjh@willhelm:/opt/kde/kwindrose > l /opt/kde/lib/libkwr.so*
lrwxrwxrwx   1 cfjh     users          15 Aug  4 21:58
/opt/kde/lib/libkwr.so -> libkwr.so.0.0.1*
lrwxrwxrwx   1 cfjh     users          15 Aug  4 21:58
/opt/kde/lib/libkwr.so.0 -> libkwr.so.0.0.1*
-rwxr-xr-x   1 cfjh     users       28818 Aug  4 21:58
/opt/kde/lib/libkwr.so.0.0.1*
cfjh@willhelm:/opt/kde/kwindrose > l /opt/kde/lib/libkspl.so*
lrwxrwxrwx   1 cfjh     users          17 Aug  4 20:26
/opt/kde/lib/libkspl.so -> libkspl.so.0.0.21*
lrwxrwxrwx   1 cfjh     users          17 Aug  4 20:26
/opt/kde/lib/libkspl.so.0 -> libkspl.so.0.0.21*
-rwxr-xr-x   1 cfjh     users       49064 Aug  4 20:26
/opt/kde/lib/libkspl.so.0.0.21*
cfjh@willhelm:/opt/kde/kwindrose > /opt/kde/bin/kwrdemo
/opt/kde/bin/kwrdemo: error in loading shared libraries
libkwr.so.0: cannot open shared object file: No such file or directory
cfjh@willhelm:/opt/kde/kwindrose > /opt/kde/bin/ksplinedemo
---Spline Testausgabe
n=4
    0.0000      0.0000
    0.2000      0.6000
    0.7000      0.2000
    1.0000      1.0000
cfjh@willhelm:/opt/kde/kwindrose >



--
Jürgen Hochwald
Home : http://www.privat.kkf.net/~juergen.hochwald
Mail : mailto:juergen.hochwald@privat.kkf.net



[Attachment #3 (text/html)]

<HTML>
hi

<P>I am developing&nbsp; a kwindrose-widget which displays a compass with
the current wind direction (used by the kweather program). I've copied
it from my kspline widget and modified the makefiles for the new library,
but the general structure is identical (except the filenames).&nbsp; Compiling
and installing is ok, but then I try to start the test-app, the shared
library is not found.&nbsp; The kweather-app, which also uses the windrose-widget,
runs without problems. The library is in the "/opt/kde/lib"dir, where are
all other kde libs.

<P>Any idea why the shares lib is not found ??

<P>J&uuml;rgen
<BR>&nbsp;

<P><TT>cfjh@willhelm:/opt/kde/kwindrose > l /opt/kde/lib/libkwr.so*</TT>
<BR><TT>lrwxrwxrwx&nbsp;&nbsp; 1 cfjh&nbsp;&nbsp;&nbsp;&nbsp; \
users&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 15 Aug&nbsp; 4 21:58 \
/opt/kde/lib/libkwr.so -> libkwr.so.0.0.1*</TT> <BR><TT>lrwxrwxrwx&nbsp;&nbsp; 1 \
cfjh&nbsp;&nbsp;&nbsp;&nbsp; \
users&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 15 Aug&nbsp; 4 21:58 \
/opt/kde/lib/libkwr.so.0 -> libkwr.so.0.0.1*</TT> <BR><TT>-rwxr-xr-x&nbsp;&nbsp; 1 \
cfjh&nbsp;&nbsp;&nbsp;&nbsp; users&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 28818 \
Aug&nbsp; 4 21:58 /opt/kde/lib/libkwr.so.0.0.1*</TT> \
<BR><TT>cfjh@willhelm:/opt/kde/kwindrose > l /opt/kde/lib/libkspl.so*</TT> \
<BR><TT>lrwxrwxrwx&nbsp;&nbsp; 1 cfjh&nbsp;&nbsp;&nbsp;&nbsp; \
users&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 17 Aug&nbsp; 4 20:26 \
/opt/kde/lib/libkspl.so -> libkspl.so.0.0.21*</TT> <BR><TT>lrwxrwxrwx&nbsp;&nbsp; 1 \
cfjh&nbsp;&nbsp;&nbsp;&nbsp; \
users&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 17 Aug&nbsp; 4 20:26 \
/opt/kde/lib/libkspl.so.0 -> libkspl.so.0.0.21*</TT> <BR><TT>-rwxr-xr-x&nbsp;&nbsp; 1 \
cfjh&nbsp;&nbsp;&nbsp;&nbsp; users&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 49064 \
Aug&nbsp; 4 20:26 /opt/kde/lib/libkspl.so.0.0.21*</TT> \
<BR><TT>cfjh@willhelm:/opt/kde/kwindrose > /opt/kde/bin/kwrdemo</TT> \
<BR><TT>/opt/kde/bin/kwrdemo: error in loading shared libraries</TT> \
<BR><TT>libkwr.so.0: cannot open shared object file: No such file or directory</TT> \
<BR><TT>cfjh@willhelm:/opt/kde/kwindrose > /opt/kde/bin/ksplinedemo</TT> \
<BR><TT>---Spline Testausgabe</TT> <BR><TT>n=4</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; 0.0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0000</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; 0.2000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.6000</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; 0.7000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.2000</TT>
<BR><TT>&nbsp;&nbsp;&nbsp; 1.0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.0000</TT>
<BR><TT>cfjh@willhelm:/opt/kde/kwindrose ></TT>
<BR>&nbsp;
<BR>&nbsp;
<PRE>--&nbsp;
J&uuml;rgen Hochwald
Home : <A HREF="http://www.privat.kkf.net/~juergen.hochwald">http://www.privat.kkf.net/~juergen.hochwald</A>
 Mail : <A HREF="mailto:juergen.hochwald@privat.kkf.net">mailto:juergen.hochwald@privat.kkf.net</A></PRE>
 &nbsp;</HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic