Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiringPi is now deprecated #196

Closed
sachaw opened this issue Jan 14, 2022 · 15 comments
Closed

WiringPi is now deprecated #196

sachaw opened this issue Jan 14, 2022 · 15 comments

Comments

@sachaw
Copy link

sachaw commented Jan 14, 2022

the WiringPi library now deprecated, and an alternative should be used: http://wiringpi.com/wiringpi-deprecated/
Are there any temporary workarounds for new installs?

@rayshobby
Copy link
Member

Sorry, at the moment we don't have any alternative -- the most common alternative option is to use python but the firmware is not written in python so this isn't feasible. At the moment you can still install wiringPi using apt-get install, which is already included in the build.sh script. If they discontinue this in the future, a possible solution is to write a python script that handles gpio functions and have the firmware call the script through a system() call.

@sachaw
Copy link
Author

sachaw commented Feb 13, 2022

Can you please reopen this, wiringpi has indeed been removed from recent versions of raspberry pi os, and not installable via apt.
There are also a number of other libraries available that are worth exploring.

@rayshobby
Copy link
Member

OK, I will keep this open. I suppose you are referring to raspbian bullseye which is the newest version of raspbian. I believe wiringpi is still installable via api on buster. So unless if you must use bullseye, just use buster.

@rayshobby rayshobby reopened this Feb 13, 2022
@roben
Copy link

roben commented Apr 11, 2022

This really is an issue. Even though Debian Buster is a LTS release, it will eventually be deprecated. Enforcing old software to support a library abandoned by its own creator creates a huge technical debt and it will just get worse in time.

@roben
Copy link

roben commented Apr 11, 2022

As a workaround, you can find .deb archive on the authors web site, just read the blog. I wouldn't count on it for them being available that way for long, though. Anyways, the .deb file seems to work with bullseye.

BTW, ./build.sh ospi tries to install the wiringpi dependency but continues even though the installation failed.

@master5597
Copy link

It looks like some people picked it up. Not saying it shouldn't be replaced, but this may help in the interim:https://github.com/WiringPi/WiringPi

@mathesst
Copy link

Hi there,

now the original wiringPi Website is completely gone. The Library is also not anymore listed in the debian package search debian package search. I tried to install the mirror version which went fine, but i am not sure if the normal compilation did take it up. As @roben pointed out, the build script doesn't even stop compiling Opensprinkler in case the apt install went wrong.

With this stated is it currently even possible to install a new OsPI?

BG Mathias

@sachaw
Copy link
Author

sachaw commented May 10, 2022

Agreed, WiringPi isn't viable any ore and an alternative needs to be sought.

@opensprinklershop
Copy link
Contributor

WiringPi is here available: http://wiringpi.com/download-and-install/
has anyone tested it with bullseye?

@mathesst
Copy link

No the link is dead. As above, there are only some unofficial mirrors left.

@varac
Copy link

varac commented Jun 29, 2022

Ugh, I found this because I followed the official installation instructions. I installed default RaspiOS (bullseye, 32-bit), but then the install script couldn't install the wireingpi package.

  • Please add a warning to the README.md that this project is not maintained anyomore (and point ppl to possible alternatives)
  • Please add a warning to the README.md that you need to use the old version of Raspi OS (buster) (or point to any option how to add wiringpi to bullseye)
  • I don't know how to address in inclusion of these warnings in the official installation instructions, but if anyone has a close connection to it, please update them as well.

It's not a great user experience to land in this deprecation hole.

Thanks anyway for this project and I hope maintenance will continue some day!

@varac
Copy link

varac commented Jun 29, 2022

Btw, this is how I got it installed it on RPi OS bullseye just now:

wget https://github.com/WiringPi/WiringPi/releases/download/2.61-1/wiringpi-2.61-1-armhf.deb
sudo dpkg -i wiringpi-2.61-1-armhf.deb

@rayshobby
Copy link
Member

I found that raspi-gpio command is now available in the latest raspbian and that can replace wiringPi for turning on pull-up/pull-down of any GPIO. This will be integrated into the next version of the firmware.

@roben
Copy link

roben commented Nov 3, 2022

Awesome, thanks!

@rayshobby
Copy link
Member

This fix has been integrated into 2.1.9(11). I tested it on my RPi 0 W, which seems to work. I don't have any newer RPis for testing due to the ongoing shortage, but I am hopeful that it should work for all RPis running Bullseye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants