Puneet07 / boblight

Automatically exported from code.google.com/p/boblight
GNU General Public License v3.0
0 stars 0 forks source link

Build Error in Ubuntu 11.04 x86 in R446 #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by chris.ae...@gmail.com on 28 Aug 2012 at 10:28

GoogleCodeExporter commented 8 years ago
Please post the output of nm -D /usr/lib/libportaudio.so

Original comment by bob.loo...@gmail.com on 29 Aug 2012 at 5:31

GoogleCodeExporter commented 8 years ago
bigdaddy@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

Original comment by chris.ae...@gmail.com on 30 Aug 2012 at 8:06

GoogleCodeExporter commented 8 years ago
Which libportaudio package do you have installed? You need libportaudio2.

Original comment by bob.loo...@gmail.com on 30 Aug 2012 at 1:45

GoogleCodeExporter commented 8 years ago
Sry 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.

Original comment by chris.ae...@gmail.com on 9 Sep 2012 at 3:30

GoogleCodeExporter commented 8 years ago
It was my fault, had portaudio-dev instead of portaudio19-dev.

Built just fine, thank u for help and this great program :)

Original comment by chris.ae...@gmail.com on 13 Sep 2012 at 2:49

GoogleCodeExporter commented 8 years ago
Np :)

Rather strange that the configure script check doesn't catch that anymore 
though.

Original comment by bob.loo...@gmail.com on 14 Sep 2012 at 8:43

GoogleCodeExporter commented 8 years ago
falta incluir la libreria en tu g++

Original comment by gonzalo....@gmail.com on 15 Apr 2015 at 6:34

GoogleCodeExporter commented 8 years ago
es "g++ archivo.cpp -lportaudio -lrt -lasound -lpthread -o binario"

Original comment by gonzalo....@gmail.com on 15 Apr 2015 at 6:36