Play raspberry mp3 with mpg123 and c ++

I want to use the following sample program: http://hzqtc.imtqy.com/2012/05/play-mp3-with-libmpg123-and-libao.html uses

#include <ao/ao.h> 
#include <mpg123.h>    

I installed libao-dev and mpg123 using

sudo apt-get install libao-dev
sudo apt-get install mpg123

and then create the file with

gcc -O2 -o play play.c -lmpg123 -lao

I get the following error

"fatal error: mpg123.h no such file or directory". 

mpg123 , ? , g++ mpg123? Libao, , ... mp3 "mpg123 text.pm3". "mpg123.h", . , , , - , ? mpg123 ?

: -)!

+4
1

, dev, libmpg123

sudo apt-get install libmpg123-dev

[ ]

APT

sudo apt-cache search [package]

, mpg123 ;)

+6

All Articles