Kodi Community Forum

Full Version: No audio in Kodi development version built on Xubuntu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, this is my first post here.

I managed to build the Kodi development version on Xubuntu 15.10 and install it under /usr/local.
It works except for audio.
I have also the latest Kodi release 15.2 installed. I can switch between those 2 by running "sudo make install" and "sudo make uninstall" for the development version.
Is it a valid way to do it?

The audio setting GUI in the development version is grey, empty, nothing to select. What more, when I select the options pane for audio by moving mouse, the cursor freezes for some 10 seconds but then starts to work again.
Here is a log file :
http://xbmclogs.com/pcluzrywv
It has no mention of PULSEAUDIO or similar. A log from the fully working 15.2 version shows this:

Code:
12:36:15 T:139983649499200  NOTICE: -----------------------------------------------------------------------
12:36:15 T:139983649499200   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanSuspend
12:36:15 T:139983649499200   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanHibernate
12:36:15 T:139983649499200   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanSuspend
12:36:15 T:139983649499200   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanHibernate
12:36:15 T:139983649499200  NOTICE: load settings...
12:36:15 T:139983649499200  NOTICE: Found 1 Lists of Devices
12:36:15 T:139983649499200  NOTICE: Enumerated PULSE devices:
12:36:15 T:139983649499200  NOTICE:     Device 1
12:36:15 T:139983649499200  NOTICE:         m_deviceName      : Default
12:36:15 T:139983649499200  NOTICE:         m_displayName     : Default
12:36:15 T:139983649499200  NOTICE:         m_displayNameExtra: Default Output Device (PULSEAUDIO)
12:36:15 T:139983649499200  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
12:36:15 T:139983649499200  NOTICE:         m_channels        : FL,FR
12:36:15 T:139983649499200  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
12:36:15 T:139983649499200  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
12:36:15 T:139983649499200  NOTICE:     Device 2
12:36:15 T:139983649499200  NOTICE:         m_deviceName      : alsa_output.pci-0000_00_1b.0.analog-stereo
12:36:15 T:139983649499200  NOTICE:         m_displayName     : Sisäinen äänentoisto Analoginen stereo
12:36:15 T:139983649499200  NOTICE:         m_displayNameExtra: Analoginen kuulokeliitäntä (PULSEAUDIO)
12:36:15 T:139983649499200  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
12:36:15 T:139983649499200  NOTICE:         m_channels        : FL,FR
12:36:15 T:139983649499200  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
12:36:15 T:139983649499200  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
12:36:15 T:139983649499200  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
12:36:15 T:139983649499200  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)

... and the audio works.

Another thing: Kodi started from console says sometimes:
Code:
Failed to open BO for returned DRI2 buffer (1920x1080, dri2 back buffer, named 4).
This is likely a bug in the X Server that will lead to a crash soon.
... but it did not crash. I don't believe that X Server in Xubuntu is buggy, it works pretty well.

My machine is ASRock BeeBox. It has a normal audio jack in front.
BTW, it is quite an amazing gadget. Like the high-end PCs from some years ago but CPU has TDP 4W. Fast dual-port memory. No moving parts, no noise. It is my main PC now, built Kodi clean in ~50 minutes.

Regards,
Juha Manninen
you probably didn't have libpulse-dev installed when you built kodi. To be sure use ./configure --enable-pulse
stopping pulseaudio or starting into the kodi desktop session should give you audio.
From the log you even disabled ALSA :-)
Right, I had left out some dependencies. I thought "sudo apt-get build-dep xbmc" does not work but actually I had installed some conflicting packages myself.
Now everything works, including audio. Cool! Thanks.

I ran "make clean" and then "time make -j2". It takes around an hour. Still not bad for a passively cooled small gadget.
-----------------------
Kodi built successfully
-----------------------

real 58m16.326s
user 104m35.812s
sys 6m16.496s

For curiosity, how long does a clean build take for you people? I guess C++ developers have speedy machines generally.

Regards,
Juha Manninen
Hey!

I think I have the same problem as you JuhaManninen, with the exact same configuration.
However I didn't really get what you did to fix it. Can you please explain it to me? Thank you !

Regards,

Guillaume