<div id="edo-message"><div>Thanks for that hint! But for me the RPATH stuff is only a supplement, because in<span style="font-size: inherit;"> the context of a Paraview based project, most of my shared libs are plugins, and for these PV comes with its own mechanism to find them.</span></div><div><span style="font-size: inherit;"><br></span></div><div><span style="font-size: inherit;">But then all the more important is the question about actually copying the libs - to a specific location where the plugin finding procedure finds them!</span></div><div><span style="font-size: inherit;"><br></span></div><div><span style="font-size: inherit;">Regards, Cornelis</span></div><div><br><br><div id="edo-signature"></div></div></div><div id="edo-original"><div><blockquote type="cite"><div id="edo-meta">On 08.10.2019 at 13:10, Eric Noulard <<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>> wrote: <br><br></div><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 8 oct. 2019 à 12:52, Cornelis Bockemühl <<a href="mailto:cornelis@bockemuehl.ch">cornelis@bockemuehl.ch</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">One more finding: the "magic" that QtCreator does to start example also without any additional fiddling with the RPATH: it already contains a RUNPATH, and this points to the shared library libshlibbu.so in it's build tree location, not in the installed location - and the same with libshlibbu.so.<br><br>And the "install" process indeed handles the RPATH/RUNPATH: it simply removes it!<br><br>Meaning: it I want to end up what I initially expected, I have to do two additional things manually (or maybe there is an automatic way??):<br><br>1) copy the shared libraries to the "example" install directory tree<br>2) add some RPATH or RUNPATH setting to all the binaries that need it<br></blockquote><div><br></div><div>You should read how RPATH handling is done with CMake.</div><div>see: <a href="https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling">https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling</a></div><div><br></div><div>As you already noted there is a build RPATH and an install RPATH.</div><div>The first is used when building the second replace the first after installation takes place.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div></div>
<br></blockquote></div></div>