Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Installing wiringpi ?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Installing wiringpi ?
6th Sep, 2015, 12:36 AM
Post: #1
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
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
Can anyone tell me how to proceed to complete this installation please?

Thanks.
Find all posts by this user
Quote this message in a reply
6th Sep, 2015, 06:51 PM
Post: #2
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
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?
Find all posts by this user
Quote this message in a reply
6th Sep, 2015, 09:08 PM
Post: #3
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Installing wiringpi ?
Just use wiringX: https://github.com/wiringX/wiringX / http://www.wiringx.org by me and others.

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
6th Sep, 2015, 10:38 PM
Post: #4
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
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 Smile
Find all posts by this user
Quote this message in a reply
7th Sep, 2015, 01:39 AM
Post: #5
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
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
Find all posts by this user
Quote this message in a reply
7th Sep, 2015, 03:49 AM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Installing wiringpi ?
Not sure if PWM is supported for the RPi indeed?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
7th Sep, 2015, 06:25 AM
Post: #7
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
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. Smile


@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).
Find all posts by this user
Quote this message in a reply
8th Sep, 2015, 12:38 AM
Post: #8
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: Installing wiringpi ?
Just a quick update. A fresh try and now wiringpi is installed. Smile

With fancontrol loaded it still silences the I2S sound output though. Sad

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! Undecided

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! Smile
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 06:06 AM Powered By MyBB, © 2002-2025 MyBB Group.