<p dir="ltr">IIRC last time I spoke with the wiringPi author I pointed out to him how the library was designed to make the app using it exit should the conditions not match library's requirements (e.g. sudo access). While this is perfectly fine when running the library through a standalone command line application focusing solely on gpio connectivity, like the one provided with the library, in the context of Pd it results in a crash because such an acton results in a null pointer. His response to my report was that it was designed that way intentionally and that he had no intentions of changing that.</p>
<p dir="ltr">For this reason a while ago I released the disis_gpio external that partially depends on the wiringPi library and redesigns the rest to allow for the external to gracefully fail without crashing Pd. The disis_gpio external is prepackaged with Pd-l2ork and its source (found on pd-l2ork's github), together with the disis_spi external for mcp3008 A/D converter should be fully source compatible with other flavors of Pd. HTH</p>
<p dir="ltr">Best,</p>
<p dir="ltr">Ico</p>
<div class="gmail_quote">On Jul 7, 2015 9:33 AM, "IOhannes m zmoelnig" <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2015-07-07 06:51, Jaime E Oliver wrote:<br>
>>> El 06/07/2015, a las 8:52 p.m., Jaime E Oliver <<a href="mailto:jaime.oliver2@gmail.com">jaime.oliver2@gmail.com</a>> escribió:<br>
>>><br>
>>> the externals will crash pd if it isn't opened with sudo.<br>
>>> J<br>
>> What do you mean with external crash? do you refer the wiringPi externals?<br>
> yes. you need sudo level to access the gpio with those externals and will crash if you don't start pd as sudo.<br>
<br>
whoever is in charge of that external should probably fix the crash.<br>
<br>
fgmasdr<br>
IOhannes<br>
<br>
<br>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div>