OS Debian etch
xbmc 18327
./configure --disable-debug OK
make have error
PulseAudioDirectSound.cpp: In member function ‘virtual bool CPulseAudioDirectSound::Initialize(IAudioCallback* , int, unsigned int, unsigned int, bool, const char*, bool, bool)’:
PulseAudioDirectSound.cpp:287: error: ‘pa_stream_set_buffer_attr’ was not declared in this scope
make[1]: *** [PulseAudioDirectSound.o] Error 1
make[1]: Leaving directory `/root/XBMC/xbmc/cores/AudioRenderers'
make: *** [audiorenderers] Error 2
It is my mistake?
Thank you Cuda.
ps: I can not english very vell, so i write only short messages
I add section about buffer. (I think that it is this section :-) )
const pa_buffer_attr *a;
if (!(a = pa_stream_get_buffer_attr(m_Stream)))
CLog::Log(LOGERROR, "PulseAudio: %s", pa_strerror(pa_context_errno(m_Context)));
else
{
m_dwPacketSize = a->minreq;
CLog::Log(LOGDEBUG, "PulseAudio: Default buffer attributes, maxlength=%u, tlength=%u, prebuf=%u, minreq=%u", a->maxlength, a->tlength, a->prebuf, a->minreq);
pa_buffer_attr b;
b.prebuf = a->minreq * 10;
b.minreq = a->minreq;
b.tlength = a->tlength;
b.maxlength = a->maxlength;
b.fragsize = a->fragsize;
WaitForOperation(pa_stream_set_buffer_attr(m_Strea m, &b, NULL, NULL), "SetBuffer");
if (!(a = pa_stream_get_buffer_attr(m_Stream)))
CLog::Log(LOGERROR, "PulseAudio: %s", pa_strerror(pa_context_errno(m_Context)));
else
{
m_dwPacketSize = a->minreq;
CLog::Log(LOGDEBUG, "PulseAudio: Choosen buffer attributes, maxlength=%u, tlength=%u, prebuf=%u, minreq=%u", a->maxlength, a->tlength, a->prebuf, a->minreq);
}
}
./configure --disable-pulse
or install libpulse-dev
Cheers,
Tobias
I installed xbmc from information README.linux
so I do:
aptitude install subversion make g++ gcc gawk pmount libtool nasm automake cmake gperf unzip bison libsdl-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl-stretch-dev libfribidi-dev liblzo-dev libfreetype6-dev libsqlite3-dev libogg-dev libasound-dev python-sqlite libglew-dev libcurl4-dev x11proto-xinerama-dev libxinerama-dev libxrandr-dev libxrender-dev libmad0-dev libogg-dev libvorbis-dev libmysqlclient-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev libfontconfig-dev libbz2-dev libboost-dev libfaac-dev libenca-dev libxt-dev libxmu-dev libpng-dev libjpeg-dev libpulse-dev mesa-utils
I have to add else: libcurl3-dev liblzo2-dev
in Debian etch (stable) is libpulse-dev_0.9.5-5. If I do ./configure --disable-pulse so I get new make error:
libsmbclient.c:(.text+0x1757): undefined reference to `__stack_chk_fail'
xbmc/lib/libsmb/libsmbclient-i486-linux.a(libsmbclient.o):libsmbclient.c:(.text+0x1f 98): more undefined references to `__stack_chk_fail' follow
collect2: ld returned 1 exit status
make: *** [xbmc.bin] Error 1
I test in virtualbox at Debian lenny (testing Debian), where is libpulse-dev_0.9.10-3 and make is OK, so I must wait for newer pages in Debian etch.
Thank you