gcc lasound compilling

Asked by EDSON STEDILE

I'm trying to compille the pcm.c, by means of

 gcc pcm.c -o pcm -o lasound

and I got messages saying that some files which are enclosed into asound.lib do not exist. In reality the paths are not defined.
See below :
edson@edson-desktop:~$ gcc pcm.c -o pcm -o lasound
In file included from pcm.c:11:
asoundlib.h:42:22: error: asoundef.h: Arquivo ou diretório inexistente
asoundlib.h:43:26: error: alsa/version.h: Arquivo ou diretório inexistente
asoundlib.h:44:25: error: alsa/global.h: Arquivo ou diretório inexistente
asoundlib.h:45:24: error: alsa/input.h: Arquivo ou diretório inexistente
asoundlib.h:46:25: error: alsa/output.h: Arquivo ou diretório inexistente
asoundlib.h:47:24: error: alsa/error.h: Arquivo ou diretório inexistente
asoundlib.h:48:23: error: alsa/conf.h: Arquivo ou diretório inexistente
asoundlib.h:49:22: error: alsa/pcm.h: Arquivo ou diretório inexistente
asoundlib.h:50:26: error: alsa/rawmidi.h: Arquivo ou diretório inexistente
asoundlib.h:51:24: error: alsa/timer.h: Arquivo ou diretório inexistente
asoundlib.h:52:24: error: alsa/hwdep.h: Arquivo ou diretório inexistente
asoundlib.h:53:26: error: alsa/control.h: Arquivo ou diretório inexistente
asoundlib.h:54:24: error: alsa/mixer.h: Arquivo ou diretório inexistente
asoundlib.h:55:28: error: alsa/seq_event.h: Arquivo ou diretório inexistente
asoundlib.h:56:22: error: alsa/seq.h: Arquivo ou diretório inexistente
asoundlib.h:57:25: error: alsa/seqmid.h: Arquivo ou diretório inexistente
asoundlib.h:58:33: error: alsa/seq_midi_event.h: Arquivo ou diretório inexistente

How can I define these paths ?

Thanks in advance for a help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel Letzeisen
Solved:
Last query:
Last reply:
Revision history for this message
Best Daniel Letzeisen (dtl131) said :
#1

Install libasound2-dev package

Revision history for this message
EDSON STEDILE (edsonstedile) said :
#2

Thanks Dave Lentz, that solved my question.

Revision history for this message
EDSON STEDILE (edsonstedile) said :
#3

Since I have some sound files working, I would like to install a FFT program that receives an audio input from the microphone of the sound board, performs the FFT and displays the frequencies of the spectrum as numerical values (not graphical). The input sound should be the sound of a musical instrument.
Thanks for your help.
Best regards.
Edson Stedile