elmick
April 16th, 2008, 07:44 AM
Hi,
Im trying desperatly to get portaudio working so i can write audio programs. Im trying the tutorial from
http://www.portaudio.com/trac/wiki/TutorialDir/Compile/Linux to compile a simple test program. I can write ok programs but dont know a lot about linking, libraries etc. I tried this:
mick@mick-laptop:~/audioprog$ gcc -lrt -lpthread -o testsaw patest_saw.c libportaudio.a
libportaudio.a(pa_unix_util.o): In function `PaUnixThread_New':
/home/mick/portaudio/src/os/unix/pa_unix_util.c:338: undefined reference to `floor'
libportaudio.a(pa_unix_oss.o): In function `PaOssStream_Configure':
/home/mick/portaudio/src/hostapi/oss/pa_unix_oss.c:1151: undefined reference to `ceil'
collect2: ld returned 1 exit status
Then When I try to include alsa:
mick@mick-laptop:~/audioprog$ gcc -lalsa -lrt -lpthread -o testsaw patest_saw.c libportaudio.a
/usr/bin/ld: cannot find -lalsa
I dont know much about alsa or oss either,
Can anyone help?
Thanks,
Mick.
Im trying desperatly to get portaudio working so i can write audio programs. Im trying the tutorial from
http://www.portaudio.com/trac/wiki/TutorialDir/Compile/Linux to compile a simple test program. I can write ok programs but dont know a lot about linking, libraries etc. I tried this:
mick@mick-laptop:~/audioprog$ gcc -lrt -lpthread -o testsaw patest_saw.c libportaudio.a
libportaudio.a(pa_unix_util.o): In function `PaUnixThread_New':
/home/mick/portaudio/src/os/unix/pa_unix_util.c:338: undefined reference to `floor'
libportaudio.a(pa_unix_oss.o): In function `PaOssStream_Configure':
/home/mick/portaudio/src/hostapi/oss/pa_unix_oss.c:1151: undefined reference to `ceil'
collect2: ld returned 1 exit status
Then When I try to include alsa:
mick@mick-laptop:~/audioprog$ gcc -lalsa -lrt -lpthread -o testsaw patest_saw.c libportaudio.a
/usr/bin/ld: cannot find -lalsa
I dont know much about alsa or oss either,
Can anyone help?
Thanks,
Mick.