Saluton! > Egun on, :-) > > [...] > Not really, I think CMake initially sets the RUNPATH to the build tree, > as shown above, that’s OK. I think it changes it upon “make install”. > > > If I need to change that, what do I have to do? > > One way to fix it would be to arrange to pass ‘-Wl,-rpath,'$ORIGIN'’ on > the link command line of the plugins. > > Another solution would be to add a post-install phase to move > libmeshlab-common.so* to $output/lib, which seems more conventional, > though perhaps upstream had good reasons not to do that. Went for the second option because I didn't know how to make the first and looks like it's working. Also I think I fixed everything you pointed in the first comment. I attach the updated patch. Thanks for your help Ludo, Ekaitz