> On Sep 13, 2021, at 5:45 AM, Lothar Paltins via gnucash-devel 
> <gnucash-devel@gnucash.org> wrote:
> 
> John,
> 
> thanks for your answer.
> 
>> Did you forget to add /opt/gwenhywfar/lib64 and /opt/aqbanking/lib64 to 
>> LD_LIBRARY_PATH so that the dynamic linker can find the libraries at runtime?
> 
> No, I didn't 'forget' it. Specifying the paths in LD_LIBRARY_PATH makes it 
> work, as well as adding them to the run-time linker cache with ldconfig. But 
> I was looking for a way to add these directories to the runtime library 
> search path of the executable. I think, it's more convenient, if an 
> executable finds its libraries without any special runtime configuration as 
> long as these libraries are in the same directory as at compile time.

OK. To learn about that you need to read up on rpath. CMake's wiki article 
https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling 
<https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling> 
is a good place to start.

Regards,
John Ralls

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to