What steps will reproduce the problem? 1. Build portaudio V19 from src 2. Build boblight --without-ffmpeg --without-ola
What is the expected output? What do you see instead?
libtool: link: g++ -g -O2 -o boblightd condition.o log.o misc.o mutex.o thread.o timer.o serialport.o timeutils.o main.o tcpsocket.o messagequeue.o client.o light.o configuration.o device.o devicepopen.o devicers232.o deviceltbl.o devicedioder.o signaltimer.o devicesound.o deviceibelight.o /usr/lib/libportaudio.so /usr/lib/libusb-1.0.so -ldl -lm -lrt -lpthread -pthread
devicesound.o: In function CDeviceSound::SetupDevice()':
/tmp/boblight-read-only/src/device/devicesound.cpp:71: undefined reference to
Pa_GetDeviceCount'
/tmp/boblight-read-only/src/device/devicesound.cpp:92: undefined reference to Pa_GetHostApiInfo'
/tmp/boblight-read-only/src/device/devicesound.cpp:107: undefined reference to
Pa_GetHostApiInfo'
/tmp/boblight-read-only/src/device/devicesound.cpp:141: undefined reference to Pa_IsFormatSupported'
collect2: ld returned 1 exit status
make[2]: *** [boblightd] Error 1
make[2]: Leaving directory
/tmp/boblight-read-only/src'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/tmp/boblight-read-only'
make: * [all] Error 2
What version of the product are you using? On what operating system? Ubuntu 11.04, portaudio V19
Please provide any additional information below. Building --without-portaudio works, but I need sound support
Comment #1
Posted on Aug 29, 2012 by Quick CatPlease post the output of nm -D /usr/lib/libportaudio.so
Comment #2
Posted on Aug 30, 2012 by Quick Elephantbigdaddy@bigdaddy-media:~$ nm -D /usr/lib/libportaudio.so 00002120 T PaConvert_Process 00002030 T PaConvert_SetupInput 000020a0 T PaConvert_SetupOutput 000026a0 T PaConvert_TriangularDither 00003f20 T PaHost_AllocateFastMemory 00003fa0 T PaHost_CloseStream 000024e0 T PaHost_FindClosestTableEntry 00003ea0 T PaHost_FreeFastMemory 00002670 T PaHost_GetStreamRepresentation 00005100 T PaHost_Init 00002c70 T PaHost_IsInitialized 00004990 T PaHost_OpenStream 00004170 T PaHost_StartEngine 00003e10 T PaHost_StartInput 00003e00 T PaHost_StartOutput 000040c0 T PaHost_StopEngine 00003e20 T PaHost_StopInput 00003e30 T PaHost_StopOutput 00003e40 T PaHost_StreamActive 00003ed0 T PaHost_Term 000033b0 T PaHost_ValidateSampleRate 00002e70 T Pa_AbortStream 00002700 T Pa_CallConvertInt16 00002f20 T Pa_CloseStream 000048e0 T Pa_CountDevices 00003470 T Pa_FlushStream 00002640 T Pa_GetCPULoad 00003de0 T Pa_GetDefaultInputDeviceID 00003df0 T Pa_GetDefaultOutputDeviceID 00004d90 T Pa_GetDeviceInfo 00002550 T Pa_GetErrorText 00003e80 T Pa_GetHostError 00004930 T Pa_GetInternalDevice 000047f0 T Pa_GetMinNumBuffers 00002c90 T Pa_GetSampleSize 00002d40 T Pa_Initialize 000032f0 T Pa_OpenDefaultStream 00002fb0 T Pa_OpenStream 00003ba0 T Pa_QueryDevice 00004de0 T Pa_QueryDevices 000035b0 T Pa_SetLatency 000036a0 T Pa_SetupDeviceFormat 00003850 T Pa_SetupInputDeviceFormat 00003890 T Pa_SetupOutputDeviceFormat 00003f70 T Pa_Sleep 00002ea0 T Pa_StartStream 00002e90 T Pa_StopStream 00002d90 T Pa_StreamActive 00003500 T Pa_StreamTime 00002cf0 T Pa_Terminate 00003480 T Pa_UpdateStreamTime w _Jv_RegisterClasses 00007124 A bss_start w __cxa_finalize U __errno_location w __gmon_start U __open_2 U __printf_chk U __sprintf_chk U __stack_chk_fail 00007124 A _edata 0000713c A _end 00005198 T _fini 00001444 T _init U close U fflush U free U getenv U getpid U gettimeofday U ioctl U malloc U memset U open U pthread_cancel U pthread_create U pthread_join U pthread_kill U pthread_self U puts U read U sched_get_priority_max U sched_get_priority_min U sched_setscheduler U stdout U strcmp U strcpy U strstr U strtol U usleep U write
Comment #3
Posted on Aug 30, 2012 by Quick CatWhich libportaudio package do you have installed? You need libportaudio2.
Comment #4
Posted on Sep 9, 2012 by Quick ElephantSry for the long wait.
I got libportaudio2
~$ sudo apt-get install libportaudio2
[sudo] password for bigdaddy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libportaudio2 is already the newest version.
Comment #5
Posted on Sep 13, 2012 by Quick ElephantIt was my fault, had portaudio-dev instead of portaudio19-dev.
Built just fine, thank u for help and this great program :)
Comment #6
Posted on Sep 14, 2012 by Quick CatNp :)
Rather strange that the configure script check doesn't catch that anymore though.
Comment #7
Posted on Apr 15, 2015 by Massive Oxfalta incluir la libreria en tu g++
Comment #8
Posted on Apr 15, 2015 by Massive Oxes "g++ archivo.cpp -lportaudio -lrt -lasound -lpthread -o binario"
Status: Invalid
Labels:
Type-Defect
Priority-Medium