ninjablocks / 433Utils

433Kit is a collection of code and documentation designed to assist you in the connection and usage of RF 433MHz transmit and receive modules to/with your Arduino and Rapberry Pi.
ninjablocks.com
MIT License
903 stars 335 forks source link

wiringPi.h: No such file or directory #83

Open Andrei-Iosifescu123 opened 1 year ago

Andrei-Iosifescu123 commented 1 year ago

When trying to install 433Utils, I came across this error:

pi@raspberrypi:~/433Utils/RPi_utils$ make
g++ -DRPI   -c -o ../rc-switch/RCSwitch.o ../rc-switch/RCSwitch.cpp
In file included from ../rc-switch/RCSwitch.cpp:34:
../rc-switch/RCSwitch.h:43:14: fatal error: wiringPi.h: No such file or directory
   43 |     #include <wiringPi.h>
      |              ^~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: ../rc-switch/RCSwitch.o] Error 1

I tried replacing #include <wiringPi.h> with #include </usr/include/wiringPi.h>, but it seems that file does not exist. I installed wiringPi with sudo apt-get install wiringpi, but i couldn't find the wiringPi.h file.

hmueller01 commented 1 year ago

Take a look at dpkg-query -L wiringpi if you find wiringPi.h.