3.8k views
in System Integration by

Good day,

I am trying to access the GPIO on a Raspberry Pi 4B running the latest Raspberry Pi OS based on Debian Bullseye. However, when running make, I get the error

   fatal error: wiringPi.h: No such file or directory

A few quick online searches reveals that wiringPi has been deprecated, and is no longer included in Raspberry Pi OS.

Of course, I can compile and install it from source, but I would not like to build an application on an already deprecated library.
https://github.com/WiringPi/WiringPi is a fork which seems like it might work, but before installing it, I would like to ask the Embedded Wizard developers / anyone else:
Which libraries they have you tried using (e.g. pigpio which is included in Raspberry Pi OS) and how can I switch from wiringPi without too much trouble?

Thank you in advance

1 Answer

0 votes
by

Hello,

thank you for your message and your feedback.

Of course, we are aware that WiringPi is deprecated - but it is still available and can be installed within a few minutes. The intention of the section Accessing Hardware GPIOs is to show the principles of the interaction of a GUI application with the underlying hardware or middleware.

But you are absolutely right, it does not make much sense to start a development on a deprecated library. Using pigpio sounds promising as a good alternative.

I just opened a ticket to do some improvements for our next release.

Thanks and best regards,

Manfred-

by

Hello,

we have now changed our Build Environment for RasPi-4B to use the GPIO library pigpio instead.

Please download the entire Build Environment once again and follow the instructions in the section Accessing Hardware GPIOs.

Best regards,

Manfred

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...