Installing wiringpi ?
|
6th Sep, 2015, 12:36 AM
Post: #1
|
|||
|
|||
Installing wiringpi ?
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. |
|||
6th Sep, 2015, 06:51 PM
Post: #2
|
|||
|
|||
RE: Installing wiringpi ?
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? |
|||
6th Sep, 2015, 09:08 PM
Post: #3
|
|||
|
|||
RE: Installing wiringpi ?
Just use wiringX: https://github.com/wiringX/wiringX / http://www.wiringx.org by me and others.
pilight - modular domotica solution
|
|||
6th Sep, 2015, 10:38 PM
Post: #4
|
|||
|
|||
RE: Installing wiringpi ?
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
|
|||
7th Sep, 2015, 01:39 AM
Post: #5
|
|||
|
|||
RE: Installing wiringpi ?
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. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
7th Sep, 2015, 03:49 AM
Post: #6
|
|||
|
|||
RE: Installing wiringpi ?
Not sure if PWM is supported for the RPi indeed?
pilight - modular domotica solution
|
|||
7th Sep, 2015, 06:25 AM
Post: #7
|
|||
|
|||
RE: Installing wiringpi ?
@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). |
|||
8th Sep, 2015, 12:38 AM
Post: #8
|
|||
|
|||
RE: Installing wiringpi ?
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! |
|||
« Next Oldest | Next Newest »
|