i have try everything to make portaudio run well.
i run this code
gcc -lrt -lasound -lpthread -o testing paex_saw.c libportaudio.a
and it return
Code:
root@ubuntu:~/Documents/portaudio/Project# gcc -lrt -lasound -lpthread -o testing paex_saw.c libportaudio.a
libportaudio.a(pa_unix_util.o): In function `PaUtil_GetTime':
/home/rifkiwijaya/Documents/portaudio/src/os/unix/pa_unix_util.c:163: undefined reference to `clock_gettime'
libportaudio.a(pa_unix_util.o): In function `PaUtil_StartThreading':
/home/rifkiwijaya/Documents/portaudio/src/os/unix/pa_unix_util.c:184: undefined reference to `pthread_create'
libportaudio.a(pa_unix_util.o): In function `PaUtil_CancelThreading':
/home/rifkiwijaya/Documents/portaudio/src/os/unix/pa_unix_util.c:205: undefined reference to `pthread_join'
/home/rifkiwijaya/Documents/portaudio/src/os/unix/pa_unix_util.c:203: undefined reference to `pthread_cancel'
libportaudio.a(pa_unix_util.o): In function `PaUnixThread_Terminate':
/home/rifkiwijaya/Documents/portaudio/src/os/unix/pa_unix_util.c:441: undefined reference to `pthread_join'
/home/rifkiwijaya/Documents/portaudio/src/os/unix/pa_unix_util.c:437: undefined reference to `pthread_cancel'
libportaudio.a(pa_unix_util.o): In function `PaUnixThread_New':
/home/rifkiwijaya/Documents/portaudio/src/os/unix/pa_unix_util.c:305: undefined reference to `pthread_create'
/home/rifkiwijaya/Documents/portaudio/src/os/unix/pa_unix_util.c:371: undefined reference to `floor'
when i test /portaudio/bin/patest1 it return
Code:
root@ubuntu:~/Documents/portaudio/bin# ./patest1
patest1.c
Ring modulate input for 20 seconds.
ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem (MIXER,'AC97 2ch->4ch Copy Switch',0,0,0): No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem (MIXER,'AC97 2ch->4ch Copy Switch',0,0,0): No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem (PCM,'IEC958 Playback PCM Stream',0,0,0): No such file or directory
ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem (PCM,'IEC958 Playback PCM Stream',0,0,0): No such file or directory
ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem (PCM,'IEC958 Playback PCM Stream',0,0,0): No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1614:(audioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Press any key to end.
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
Expression 'err' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3281
Expression 'ContinuePoll( self, StreamDirection_In, &pollTimeout, &pollCapture )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3808
Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4180
i have include portaudio.h and all file in portaudio/include but it still can't fix that help me please..
Bookmarks