Skip to contentSkip to conversation

Packages to debian

DISCUSSION [email protected] 3 participants 3 messages Sep 22, 2005

lore
Share & tools
lore
#0 lore raw

 Hi guys,  What packages I need install to make ALSA programs in debian ? I was trying to compile this example ( http://equalarea.com/paul/alsa-audio.html#playex ), but I give some errors.. I paste in the end of this e-mail. Are there some "apt-get install" that I can use ? Or I need download and install from another place ?  Thanks a lot,  Leomar======================================== # gcc -o play play.cplay.c: In function main':play.c:44: warning: passing arg 3 of snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast/tmp/ccaeBi5f.o(.text+0x39): In function main':: undefined reference to snd_pcm_open'/tmp/ccaeBi5f.o(.text+0x4d): In function main':: undefined reference to snd_strerror'/tmp/ccaeBi5f.o(.text+0x8c): In function main':: undefined reference to snd_pcm_hw_params_malloc'/tmp/ccaeBi5f.o(.text+0xa0): In function main':: undefined reference to snd_strerror'/tmp/ccaeBi5f.o(.text+0xdd): In function main':: undefined reference to snd_pcm_hw_params_any'/tmp/ccaeBi5f.o(.text+0xf1): In function main':: undefined reference to snd_strerror'/tmp/ccaeBi5f.o(.text+0x136): In function main':: undefined reference to snd_pcm_hw_params_set_access'/tmp/ccaeBi5f.o(.text+0x14a): In function main':: undefined reference to snd_strerror'/tmp/ccaeBi5f.o(.text+0x18f): In function main':: undefined reference to snd_pcm_hw_params_set_format'/tmp/ccaeBi5f.o(.text+0x1a3): In function main':: undefined reference to snd_strerror'/tmp/ccaeBi5f.o(.text+0x1f0): In function main':: undefined reference to snd_pcm_hw_params_set_rate_near'/tmp/ccaeBi5f.o(.text+0x204): In function main':: undefined reference to snd_strerror'/tmp/ccaeBi5f.o(.text+0x249): In function main':: undefined reference to snd_pcm_hw_params_set_channels'/tmp/ccaeBi5f.o(.text+0x25d): In function main':: undefined reference to snd_strerror'/tmp/ccaeBi5f.o(.text+0x29a): In function main':: undefined reference to snd_pcm_hw_params'/tmp/ccaeBi5f.o(.text+0x2ae): In function main':: undefined reference to snd_strerror'/tmp/ccaeBi5f.o(.text+0x2e1): In function main':: undefined reference to snd_pcm_hw_params_free'/tmp/ccaeBi5f.o(.text+0x2ef): In function main':: undefined reference to snd_pcm_prepare'/tmp/ccaeBi5f.o(.text+0x303): In function main':: undefined reference to snd_strerror'/tmp/ccaeBi5f.o(.text+0x357): In function main':: undefined reference to snd_pcm_writei'/tmp/ccaeBi5f.o(.text+0x36f): In function main':: undefined reference to snd_strerror'/tmp/ccaeBi5f.o(.text+0x3a9): In function main':: undefined reference to snd_pcm_close'collect2: ld returned 1 exit status

#1 lore raw
Quoted 1 line · On Wed, Sep 21, 2005 at 10:29:34PM -0300, [email protected] wrote:

 Hi guys,  What packages I need install to make ALSA programs in debian ? I was trying to compile this example ( http://equalarea.com/paul/alsa-audio.html#playex ), but I give some errors.. I paste in the end of this e-mail. Are there some "apt-get install" that I can use ? Or I need download and install from another place ?  Thanks a lot,  Leomar======================================== # gcc -o play play.cplay.c: In function main':play.c:44: warning: passing arg 3 of snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast/tmp/ccaeBi5f.o(.text+0x39): In function main':: undefined reference to snd_pcm_open'

You'll need to install the libasound2-dev package and link against the asound library:

gcc -o play play.cplay.c -lasound

/Mikael Magnusson

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php

#2 lore raw
In reply to [email protected]
Quoted 1 line · [email protected] wrote:

What packages I need install to make ALSA programs in debian ?

aptitude install libsound2-dev

Signature · 9 lines
Thomas Hood



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php