Page 1 of 1

WiringPi library not found. GPIO support disabled

Posted: Saturday 22 August 2015 10:39
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?

Re: WiringPi library not found. GPIO support disabled

Posted: Saturday 22 August 2015 11:48
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 ?

Re: WiringPi library not found. GPIO support disabled

Posted: Saturday 22 August 2015 17:00
by Bikey
That helped, I now could build everything and GPIO is working. Thanks, Gizmocuz!

Re: WiringPi library not found. GPIO support disabled

Posted: Monday 14 September 2015 9:48
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

Re: WiringPi library not found. GPIO support disabled

Posted: Monday 05 October 2015 1:03
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.

Re: WiringPi library not found. GPIO support disabled

Posted: Monday 18 April 2016 13:31
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.

Re: WiringPi library not found. GPIO support disabled

Posted: Monday 18 April 2016 18:58
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 :)

Re: WiringPi library not found. GPIO support disabled

Posted: Wednesday 20 April 2016 6:41
by ced216
It's ok now, I haven't seen the sub folder. Thanks !

Re: WiringPi library not found. GPIO support disabled

Posted: Friday 13 January 2017 10:39
by jvandenbroek
This works as expected, might be useful to include this in the wiki page?