the inverse is possible?<div><br></div><div>open a daw and use camomile, inside camomile patch there would be a custom way of using vstplugin~</div><div><br></div><div>this could be interesting, say, using arduino to control vsts inside daw without having to convert sensors data to midi or another protocol, just get bytes from comport directly to vstplugin~...</div><div><br></div><div>i'm crazy? or this make sense?<br><br><div class="gmail_quote"><div dir="ltr">Em Dom, 20 de jan de 2019 14:19, Christof Ressi <<a href="mailto:christof.ressi@gmx.at">christof.ressi@gmx.at</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">maybe the RTLD_DEEPBIND flag to dlopen() could do the trick? <br>
<br>
<a href="http://man7.org/linux/man-pages/man3/dlopen.3.html" rel="noreferrer" target="_blank">http://man7.org/linux/man-pages/man3/dlopen.3.html</a><br>
<br>
if I understand correctly, with this flag the shared object should prefer its own symbols, in this case pd_init() from the statically linked libpd, not from the Pd app. I don't have time right now to test this, though.<br>
<br>
and guess what: [vstplugin~] + Camomile actually seems to work on Windows :-D :-D :-D. See attached picture.<br>
<br>
Christof<br>
<br>
> Gesendet: Sonntag, 20. Januar 2019 um 14:55 Uhr<br>
> Von: "Christof Ressi" <<a href="mailto:christof.ressi@gmx.at" target="_blank">christof.ressi@gmx.at</a>><br>
> An: Pd-List <<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>><br>
> Betreff: Re: [PD] loading Camomile plug-ins using vstplugin~<br>
><br>
> > Maybe static linking of libpd in Camomile would fix this?<br>
> <br>
> I think Camomile already links statically against libpd.<br>
> <br>
> <br>
> > Gesendet: Sonntag, 20. Januar 2019 um 14:35 Uhr<br>
> > Von: "Claude Heiland-Allen" <<a href="mailto:claude@mathr.co.uk" target="_blank">claude@mathr.co.uk</a>><br>
> > An: <a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a><br>
> > Betreff: Re: [PD] loading Camomile plug-ins using vstplugin~<br>
> ><br>
> > Hi,<br>
> > <br>
> > On 20/01/2019 01:52, Miller Puckette wrote:<br>
> > > I don't think it works.  Unless I'm misreading things, once Camomile calls<br>
> > > pd_init(), that call doesn't go to the pd_init that's compiled into<br>
> > > Camomile (via libpd) but instead calls pd_init from the Pd that called<br>
> > > vstplugin~ that called Camomile.  This does nothing, and the next thing libpd<br>
> > > tries to access in the Pd instance fails.<br>
> > Maybe static linking of libpd in Camomile would fix this?  But that <br>
> > would just postpone the issue until the first dynamically-linked <br>
> > external is loaded by the deeper Pd, which tries to access eg <br>
> > class_new(): does it get the one in Pd host or Camomile .pd_linux?<br>
> > <br>
> > On GNU glibc systems, dlmopen() may be relevant?<br>
> > <br>
> > <br>
> > Claude<br>
> > -- <br>
> > <a href="https://mathr.co.uk" rel="noreferrer" target="_blank">https://mathr.co.uk</a><br>
> > <br>
> > <br>
> > <br>
> > <br>
> > _______________________________________________<br>
> > <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> > UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
> ><br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div></div>