[PD] dynamic loading in external

Claude Heiland-Allen claude at mathr.co.uk
Fri Jan 9 23:12:54 CET 2015


On 09/01/15 21:34, David Medine wrote:
> I am writing an extern that uses a 3rd party shared object library. I
> keep getting a
> "cannot open shared object file: No such file or directory"

Maybe set the LD_LIBRARY_PATH environment variable to the directory 
containing your 3rd party .so before starting Pd.

Or rewrite your extern to use dlopen() dlsym() etc (which would be a 
pain if your .so has a lot of symbols you need to reference).

> posted to the Pd console when I load the extern. The library is linking
> properly in my makefile (as far as I can tell) and the .so file that I
> want the extern to load is in the same folder as the extern.


Claude
-- 
http://mathr.co.uk




More information about the Pd-list mailing list