<p dir="ltr">You don't have the build environment set up properly which probably means your just downloaded that folder from pd-l2ork git. This is why disis_gpio is not building as it requires access to g_canvas.h include from pd's source. I am not sure why that is since I cannot imagine disis_gpio requiring access to gui operations. That said, the spi has built ok according to your log so I am not entirely sure. The wiringPi error can be ignored. At this point you have several options to try out:</p>

<p dir="ltr">1) depending how the permissions for the SPI device are configured on your setup you may have to run pd with sudo privileges (sudo pd). This is absolutely necessary for the GPIO external but I thought it wasn't for the SPI. Nonetheless, it's worth a try.</p>

<p dir="ltr">2) try installing pd-l2ork as it comes with these externals prebuilt and I've tested them extensively on rev. B boards. Likewise, test it with and without sudo.</p>
<p dir="ltr">HTH<br>
</p>
<div class="gmail_quote">On Sep 2, 2014 4:14 PM, "Jack" <<a href="mailto:jack@rybn.org">jack@rybn.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hello,<br>
<br>
> On 09/02/2014 01:39 PM, Jack wrote: Hello,<br>
><br>
> I am trying to use [disis_spi] on my raspberry pi (Linux<br>
> raspberrypi 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013<br>
> armv6l GNU/Linux ) with Pd 0.45.2. When I open the help patch<br>
> 'disis_spi-help.pd' and click on [open /dev/spidev0.0(, in Pd<br>
> console i get : could not open SPI device.<br>
><br>
> I used to use a C++ program until now with which I used to open<br>
> "/dev/spidev0.0" and all was OK.<br>
><br>
> What can I do to solve this problem ?<br>
><br>
>> Hi,<br>
><br>
>> I haven't tried the external with pd-vanilla, although there is<br>
>> no reason I can think of that it would not work with vanilla. Did<br>
>> you make sure to load the necessary drivers (I assume you did<br>
>> since you mentioned you used to access it before via a different<br>
>> application, but if you loaded them manually and have rebooted<br>
>> RPi since, they would not be necessarily loaded this time<br>
>> around). Just to be sure try:<br>
><br>
>> lsmod | grep spi<br>
><br>
>> ...and see if it lists spi-bcm2708, if not, do:<br>
><br>
<br>
I get :<br>
spidev 5248 0<br>
spi_bcm2708 4841 0<br>
<br>
><br>
><br>
>> sudo modprobe spi-bcm2708 sudo modprobe i2c-bcm2708<br>
><br>
>> If that works, you may want to add those at the bottom of your<br>
>> /etc/modules config file (one module per line, like so):<br>
><br>
>> spi-bcm2708 i2c-bcm2708<br>
<br>
So I guess I needn't to add these lines ?<br>
<br>
><br>
>> This will ensure they get loaded every time you start the RPi.<br>
><br>
>> BTW, which gen RPi do you have?<br>
<br>
Model B.<br>
<br>
What I do to have disis_spi.pd_linux is :<br>
$ cd pd-l2ork_rpi<br>
$ ./makeall.sh<br>
<br>
But I get several errors :<br>
<br>
fatal: destination path 'wiringPi' already exists and is not an empty<br>
directory.<br>
Already up-to-date.<br>
make: Nothing to be done for `static'.<br>
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing<br>
- -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses<br>
- -Wno-switch  -I../pd/src -I../../pd/src -I../../../pd/src<br>
- -I../../../../pd/src -I../../../../../pd/src -o disis_gpio.o -c<br>
disis_gpio.c<br>
disis_gpio.c:18:22: fatal error: g_canvas.h: No such file or directory<br>
compilation terminated.<br>
make: *** [disis_gpio.l_arm] Error 1<br>
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing<br>
- -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses<br>
- -Wno-switch  -I../pd/src -I../../pd/src -I../../../pd/src<br>
- -I../../../../pd/src -I../../../../../pd/src -o disis_spi.o -c disis_spi.c<br>
ld  -shared -o disis_spi.l_arm disis_spi.o -lc -lm<br>
strip --strip-unneeded disis_spi.l_arm<br>
rm disis_spi.o<br>
mv disis_spi.l_arm disis_spi.pd_linux<br>
<br>
And after :<br>
$ pd disis_spi/disis_spi-help.pd<br>
If i click on [open /dev/spidev0.0( I get :<br>
could not open SPI device<br>
<br>
Something else i can do ?<br>
Thanx for you help.<br>
++<br>
<br>
Jack<br>
<br>
<br>
<br>
><br>
>> HTH<br>
><br>
>> Ico<br>
><br>
> ++<br>
><br>
> Jack<br>
><br>
>><br>
>> _______________________________________________<br>
>> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list UNSUBSCRIBE and<br>
>> account-management -><br>
>> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
><br>
><br>
> -- Ivica Ico Bukvic, D.M.A. Associate Professor Computer Music ICAT<br>
> Senior Fellow DISIS, L2Ork Virginia Tech School of Performing Arts<br>
> - 0141 Blacksburg, VA 24061 <a href="tel:%28540%29%20231-6139" value="+15402316139">(540) 231-6139</a> <a href="mailto:ico@vt.edu">ico@vt.edu</a><br>
> <a href="http://www.performingarts.vt.edu" target="_blank">www.performingarts.vt.edu</a> <a href="http://disis.music.vt.edu" target="_blank">disis.music.vt.edu</a> <a href="http://l2ork.music.vt.edu" target="_blank">l2ork.music.vt.edu</a><br>

><br>
><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1<br>
<br>
iQEcBAEBAgAGBQJUBiUOAAoJEOuluecjw8GULHAH/19FT7b2dWEh15M8ODWgRmQ6<br>
JlN4gfTRkpi3E6rW8ft5+ffbBK8bQy+jieiMowd/pR6qQQaWPMoq6oSGrHH9ziDI<br>
RRW3wYyaz6V8TCJenUrlH3c6p2Pn4SzRhJtBr2JbEN9fpLstC75rxy422N5Ybxyt<br>
zJ0hfLADbdNYRlCFQapNwPtbtT+Dyw4Ma+IplhTXhp13NW2xrXStSpzGTjlxWmmK<br>
1MePBYu9YaRxC++ULkqf6OWr7inyN7X+n+p2aFLky0bkRIN01mJXfr7bNHtD8//m<br>
Ycf2Kq6sa0pN7AV4Z59CzDaZsWYgSbcK7d64YHaitvIISRGHm6vJ84dXOqAE1eM=<br>
=FlzS<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div>