WiringPi library not found. GPIO support disabled

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Bikey
Posts: 331
Joined: Sunday 22 February 2015 12:19
Target OS: Linux
Domoticz version: 2020.x
Location: Netherlands
Contact:

WiringPi library not found. GPIO support disabled

Post by Bikey »

I juist tried to build Domoticz form source, according to the Wiki.

However after:
git clone https://github.com/domoticz/domoticz.git dev-domoticz
cd dev-domoticz
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt

I get the following error:

Code: Select all

-- WiringPi include was found in /usr/local/include...
-- ==== WiringPi library not found. GPIO support disabled.
-- ==== (Please follow http://wiringpi.com/download-and-install/ if you want to use GPIO.)
/usr/bin/c++ -DPCHCOMPILE -O3;-DNDEBUG;-I/home/pi/dev-domoticz/main;-I/usr/include;-I/usr/include;;-DNS_ENABLE_SSL;-DWITH_LIBUSB;-DNS_ENABLE_SSL -x c++-header -o /home/pi/dev-domoticz/stdafx.h.gch/.c++ /home/pi/dev-domoticz/main/stdafx.h
Further building works fine (after resolving from the "undefined reference to symbol 'clock_gettime@@GLIBC_2.4" error as discussed in this topic) but the resulting Domoticz installation does not support the GPIO hardware, as expected.

I have installed WiringPi (according to the link. Directory is placed at /home/pi/wiringPi) and everything works fine with the latest beta 2.2765, so only the building fails.

I'm not a programmer, just following instructions, so what can I do to include the correct libraries? Can you change the CMakeList.txt on GitHub?
User avatar
gizmocuz
Posts: 2491
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: WiringPi library not found. GPIO support disabled

Post by gizmocuz »

This is just a warning, and there is no need to change the cmake script

did you try

cd wiringPi
make static
sudo make install-static

and then build ?
Quality outlives Quantity!
Bikey
Posts: 331
Joined: Sunday 22 February 2015 12:19
Target OS: Linux
Domoticz version: 2020.x
Location: Netherlands
Contact:

Re: WiringPi library not found. GPIO support disabled

Post by Bikey »

That helped, I now could build everything and GPIO is working. Thanks, Gizmocuz!
stamppot
Posts: 3
Joined: Wednesday 12 November 2014 14:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: WiringPi library not found. GPIO support disabled

Post by stamppot »

gizmocuz wrote: cd wiringPi
make static
sudo make install-static
Actually I ran into the very same thing. Is there a reason why domoticz is linking against the static version of wiringPi? Especially as it doesn´t get installed by default. If there is no good reason, can I suggest to link against the dynamic library? If there is a good reason, it might be a good idea to update the CMakeLists.txt output to indicate that this is the problem. In both cases I can submit a patch... :-)

BR,

Sander
ViperScull
Posts: 7
Joined: Saturday 04 July 2015 20:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: WiringPi library not found. GPIO support disabled

Post by ViperScull »

stamppot wrote: Actually I ran into the very same thing. Is there a reason why domoticz is linking against the static version of wiringPi? Especially as it doesn´t get installed by default. If there is no good reason, can I suggest to link against the dynamic library? If there is a good reason, it might be a good idea to update the CMakeLists.txt output to indicate that this is the problem. In both cases I can submit a patch... :-)

BR,

Sander
I'm finding the same installing in Arch Linux. If you could post a patch a here, that'd be great.
ced216
Posts: 2
Joined: Monday 18 April 2016 12:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: WiringPi library not found. GPIO support disabled

Post by ced216 »

gizmocuz wrote:This is just a warning, and there is no need to change the cmake script

did you try

cd wiringPi
make static
sudo make install-static

and then build ?
:

I need some help, I have this message
make: *** No rule to make target 'static'. Arrêt.
User avatar
bobkersten
Posts: 34
Joined: Tuesday 06 October 2015 9:17
Target OS: Linux
Domoticz version: beta
Location: Venray
Contact:

Re: WiringPi library not found. GPIO support disabled

Post by bobkersten »

There's a "wiringPi" folder within the "wiringPi" folder that you'll have to "cd" into, so those commands from gizmocuz, including the "cd wiringPi", need to be run from within the main wiringPi folder :)
Mac mini w/ ESXi running Ubuntu w/ Domoticz custombuild, SolarEdge 3500Wp, S0 Meter, P1 Smart Meter, RFXtrx433e, Aeotec Z-Stick Gen5
ced216
Posts: 2
Joined: Monday 18 April 2016 12:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: WiringPi library not found. GPIO support disabled

Post by ced216 »

It's ok now, I haven't seen the sub folder. Thanks !
jvandenbroek
Posts: 37
Joined: Wednesday 12 March 2014 16:37
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: The Netherlands
Contact:

Re: WiringPi library not found. GPIO support disabled

Post by jvandenbroek »

This works as expected, might be useful to include this in the wiki page?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest