Good morning,
I am running into some issues with a school project. Our instructor has given us a project based on an adafruit project. The problem is that the project doesn't work and the issues are detailed in link.
Has anyone been able to make this work:
https://learn.adafruit.com/pi-wifi-radio/overview
There are several internet radio tutorials online, but none for the I2C LCD that are current and supported(that I have found). We aren't allowed to use touchscreens. If you have a work around or a similar project that does work I would be appreciative of pointers. See below for one of the problems that occur with the pi-wifi-radio:
src/config.h:15:10: fatal error: libavfilter/version.h: No such file or directory
15 | #include <libavfilter/version.h>
This is as far as I could get. Once I get this error I can't find a work around(admittedly, I'm not a raspberry pi/coding expert).
School project with Problems
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- mikeysklar
- Posts: 11727
- Joined: Mon Aug 01, 2016 8:10 pm
Re: School project with Problems
Did you run this line to install the necessary libraries?
Code: Select all
sudo apt-get install git i2c-tools python-pexpect python-smbus libavfilter-dev libavformat-dev libcurl4-gnutls-dev libgcrypt-dev libjson-c-dev libao-dev
- beardenr
- Posts: 2
- Joined: Sun Sep 17, 2023 12:45 am
Re: School project with Problems
~/Python-WiFi-Radio $ cd ../pianobar-e945578ab22912049f1e547ce7b25b01089f7590
make
Package libavcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavcodec' found
I ran everything up to this point.
make
Package libavcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavcodec' found
I ran everything up to this point.
- millercommamatt
- Posts: 723
- Joined: Tue Jul 31, 2018 4:57 pm
Re: School project with Problems
Are you using apt to install packages? If not, you're going to have trouble because there are implied library dependencies that apt will handle for you. If you're installing packages manually, you have to figure out the dependencies on your own.
- mikeysklar
- Posts: 11727
- Joined: Mon Aug 01, 2016 8:10 pm
Re: School project with Problems
You have been following the guide correctly. This project is deprecated due to many issues, but part of it being Pi OS Buster and Bullseye incompatible. You would have to roll back to Stretch.
PLEASE NOTE: this guide is now deprecated…
It relied on some extremely finicky software (pianobar and libav) which tended to break with each new operating system release…it’s a minor miracle we’ve even managed to patch it this far along!
It relied on several now-deprecated Python libraries for the display (Adafruit_CharLCDPlate, Adafruit_I2C, etc.).
It’s specific to the Pandora streaming service, which is only available in the United States and a couple other countries.
That being said, if you’re in the US, already have the hardware sitting around and don’t mind sinking 30 minutes into a project that might not pan out, by all means give it a shot. It was pretty nifty when it worked. Please just understand that we will no longer be providing technical support for this project nor any more updates to this guide. It was last seen working with the 2018-11-13 release of Raspbian Stretch Lite, if that’s any help in recreating the project.
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.