14 views
ago 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
ago 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-

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...