problem loading shared libraries

nakedmind at softhome.net nakedmind at softhome.net
Wed Feb 6 00:34:02 UTC 2002


Hello kdevolper's

I have used kdevelop from sometime ago for Qt and kde apps. Now I want to
use it for a "wider" project in which I need to link to a non Qt-KDE lib.
I have set my LD_LIBRARY_PATH in /etc/profile so I can easily compile my
app from the command line with a std. Makefile. But I want to compile it
withing kdevelop (ver. 2.0 redhat7.2 KDE 2.2.11) as long as I want the
project to be "wider" and forget about the issue. Facts:
It seems kdevelop do not "see" my LD_LIBRARY_PATH. 

I have tried do the following:
i) Set the environmental variables option (make options). The error I get:
/usr/bin/ld: cannot find -lmaverik
ii) Add --library-path=/usr/local/maverik-6.1/lib (exactly as it is in my
LD_LIBRARY_PATH) to the additional flags (linker options) the error I get: 
configure: error: installation or configuration problem: C compiler cannot
create executables
iii) I was not able to run ldconfig since the libraries are represented by
symbolic links.

The only way I was able to compile the app was by copying the libraries to
/usr/lib where kdevelop seems to see them, but I want to know it there is a
cleaner way to go through this.

Regards,


Jean Pierre Charalambos




More information about the KDevelop-devel mailing list