WiFi radio project

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
cdidden
 
Posts: 3
Joined: Fri Apr 29, 2016 2:17 pm

WiFi radio project

Post by cdidden »

Hi all,

As a newbie to about everything Pi and Linux I thought a project that interested me would be a good start. The adafruit wifi radio project has been going fine, until I get to page 12, and try to compile the pianobar. It suggested posting complier errors here. If I'm wrong, please steer me to the right forum.

pi@pandora:~/pianobar $ make
Package ao was not found in the pkg-config search path.
Perhaps you should add the directory containing `ao.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ao' found
Package ao was not found in the pkg-config search path.
Perhaps you should add the directory containing `ao.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ao' found
CC src/main.c
In file included from src/main.c:51:0:
src/libpiano/piano.h:33:20: fatal error: gcrypt.h: No such file or directory
#include <gcrypt.h>
^
compilation terminated.
Makefile:107: recipe for target 'src/main.o' failed
make: *** [src/main.o] Error 1


Thanks in advance.

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: WiFi radio project

Post by Franklin97355 »

src/libpiano/piano.h:33:20: fatal error: gcrypt.h: No such file or directory
Do a computer search and see where that file is.

User avatar
cdidden
 
Posts: 3
Joined: Fri Apr 29, 2016 2:17 pm

Re: WiFi radio project

Post by cdidden »

Thanks for the direction, but no luck. It does not look like that file gcrypt.h is on my Pi.

pi@pandora:~ $ sudo find / -name *ypt.h
/usr/include/crypt.h
/usr/include/rpc/des_crypt.h
/home/pi/pianobar/src/libpiano/crypt.h
pi@pandora:~ $ sudo find / -name gcrypt.h
pi@pandora:~ $


This is surprising (to me) because I downloaded the pianobar per the guides suggestion from
git clone https://github.com/PromyLOPh/pianobar

It 'appears' to have copied the files into a folder pi/pianobar on my computer...

Thanks

User avatar
cdidden
 
Posts: 3
Joined: Fri Apr 29, 2016 2:17 pm

Re: WiFi radio project

Post by cdidden »

After some more searching that file seemed to be a part of libcrypt11-dev Once that was installed, I can move on to the next steps. (and errors...) More searching before reaching out. But thanks for getting me to think about the specific file that was missing. And realizing it may not be a part of the install, instead it was a file that I should have already installed. (although not mentioned in the guide.. but thats all about learning)

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: WiFi radio project

Post by Franklin97355 »

I have had similar experiences with Linux. You get a program that has a dependency so you get that file only to find it also has a dependency and so on.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”