Installing wiringpi ? - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Software (/forum-6.html) +--- Forum: Additional Packages (/forum-22.html) +--- Thread: Installing wiringpi ? (/thread-3112.html) |
Installing wiringpi ? - Skywatch - 6th Sep, 2015 12:36 AM I am trying to install wiring pi, but which ever way I try I get.... Terminal root@cinema /home/wiringpi # ls wiringPi-5edd177 wiringPi-5edd177.tar.gz root@cinema /home/wiringpi # cd /home/wiringpi/wiringPi-5edd177 root@cinema /home/wiringpi/wiringPi-5edd177 # ./build wiringPi Build script ===================== WiringPi Library sudo: make: command not found ./build: 130: ./build: make: not found Make Failed... Please check the messages and fix any problems. If you're still stuck, then please email all the output and as many details as you can to projects@drogon.net Thanks. RE: Installing wiringpi ? - Skywatch - 6th Sep, 2015 06:51 PM OK, so I installed gcc and reinstalled make: to see if it would work. Now I get a different issue..... Terminal xbian@cinema /home/wiringpi/wiringPi-5edd177 $ sudo ./build [sudo] password for xbian: wiringPi Build script ===================== WiringPi Library [UnInstall] [Compile] wiringPi.c [Compile] wiringSerial.c [Compile] wiringShift.c [Compile] piHiPri.c [Compile] piThread.c piThread.c:26:21: fatal error: pthread.h: No such file or directory compilation terminated. wiringSerial.c:23:19: fatal error: stdio.h: No such file or directory compilation terminated. piHiPri.c:27:19: fatal error: sched.h: No such file or directory compilation terminated. In file included from wiringShift.c:25:0: /usr/lib/gcc/arm-linux-gnueabihf/4.6/include/stdint.h:3:26: fatal error: stdint.h: No such file or directory compilation terminated. wiringPi.c:55:19: fatal error: stdio.h: No such file or directory compilation terminated. make: *** [piHiPri.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [wiringSerial.o] Error 1 make: *** [wiringShift.o] Error 1 make: *** [piThread.o] Error 1 make: *** [wiringPi.o] Error 1 Make Failed... This is new to me, it installed smoothly on Raspbian, but not on Xbian. Anyone have any advice on what to do next? RE: Installing wiringpi ? - CurlyMo - 6th Sep, 2015 09:08 PM Just use wiringX: https://github.com/wiringX/wiringX / http://www.wiringx.org by me and others. RE: Installing wiringpi ? - Skywatch - 6th Sep, 2015 10:38 PM OK, but I have a script that uses wiringpi PWM output. Could you help me convert it to use wiringX? - If so it's worth a try RE: Installing wiringpi ? - belese - 7th Sep, 2015 01:39 AM install this sudo apt-get install build-essential when i compile on XBIan, i installed xbian-package-development. it should install all package that you need for copil. RE: Installing wiringpi ? - CurlyMo - 7th Sep, 2015 03:49 AM Not sure if PWM is supported for the RPi indeed? RE: Installing wiringpi ? - Skywatch - 7th Sep, 2015 06:25 AM @belese Thanks for that. I tried it and it seemed to work. But on reboot I2S sound was not working. Maybe wiringpi overrides something on the gpio pins that Xbian uses for I2S sound? I might have time to try again tomorrow...re-flashing the SD now. @CurlyMo Pi has one HW PWM pin. Wiring pi allows 'bit banging' SW PWM on all pins (or so I recall). I have a script to allow PWM speed control on a cooling fan on the HW pin. Works well on Raspbian. The hotter the pi, the faster the fan (and off below a certain temp). RE: Installing wiringpi ? - Skywatch - 8th Sep, 2015 12:38 AM Just a quick update. A fresh try and now wiringpi is installed. With fancontrol loaded it still silences the I2S sound output though. That is because the PWM fancontrol script was outputting PWM to pin 12 (physical) for the fan. Only problem is that it is the very same pin used for I2S dac clock! IF I disable the call to the fancontrol script in /etc/rc.local then it all goes back to working again, so that is clearly the issue. A little research and I discovered that there are two HW PWM pins on Pi2 so I decided to try and get the fan output on the second PWM pin (physical 13). I changed it in wiringpi, but no luck. For some reason it still outputs on pin 12. I have emailed the issue to Gordon at wiringpi and will see what he makes of it! |