RPATH problems in kdelibs

Thiago Macieira thiago at kde.org
Sat Dec 9 20:57:33 CET 2006


Thiago Macieira wrote:
>>Are kdewidget and maybe the styles, i.e. stuff which is loaded by Qt,
>> the only problems ?
>
>No. All plugins are. Anything that can be loaded can -- potentially --
> be loaded by a non-KDE program. In which case, the libraries aren't yet
> in memory and must be found by RPATH.

I'm still facing this problem and now I have no idea how to solve it. 
kdewidgets is being linked like this:

/usr/bin/c++ -fPIC -O0 -g -W<snip_flags> -fno-exceptions -fno-check-new -fno-common -Wl,--fatal-warnings -Wl,--no-undefined -lc -shared -Wl,-soname,kdewidgets.so -o ../lib/kdewidgets.so 
<source_files> -L/usr/local/lib -L/home/thiago/obj/kde4/KDE/kdelibs/lib/. -L/home/thiago/obj/kde4/KDE/kdelibs/lib -L/home/thiago/obj/troll/qt-main/lib -L/lib -lkio -<lots_of_libs> -Wl,-rpath,/home/thiago/KDE4/lib

If I modify KDE4Macros.cmake and remove the INSTALL_RPATH "" part from 
KDE4_HANDLE_RPATH_FOR_LIBRARY, I get closer to my goal:

/usr/bin/c++ -fPIC -O0 -g -W<snip_flags> -fno-exceptions -fno-check-new -fno-common -Wl,--fatal-warnings -Wl,--no-undefined -lc -shared -Wl,-soname,kdewidgets.so -o ../lib/kdewidgets.so 
<source_files> -L/usr/local/lib -L/home/thiago/obj/kde4/KDE/kdelibs/lib/. -L/home/thiago/obj/kde4/KDE/kdelibs/lib -L/home/thiago/obj/troll/qt-main/lib -L/lib -lkio -<lots_of_libs> -Wl,-rpath,/home/thiago/KDE4/lib

Note that there's only one RPATH entry there. Why isn't Qt's libdir being 
added?

Any hints?

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20061209/6589d168/attachment.pgp 


More information about the Kde-buildsystem mailing list