compile Kodi with PulseAudio enabled
#1
i am cross-compiling Kodi for the device Librem5 with PureOS10 (a Debian10 fork) on arm64.

i could build it successful but not with no sound.
In Kodi Settings/System/Audio i see only a PipeWire device.

Unfortunately PureOS10 supports only PulseAudio and not PipeWire.

how do i enable PulseAudio in compile process?
by default it's off
kodi configure:
-- Could NOT find PulseAudio (missing: PULSEAUDIO_LIBRARY PULSEAUDIO_MAINLOOP_LIBRARY PULSEAUDIO_SIMPLE_LIBRARY PULSEAUDIO_INCLUDE_DIR)
-- PULSEAUDIO enabled: No

any help is much appreciated!
Reply
#2
that looks like it couldnt find the pulseaudio development packages

so maybe....

sudo apt-get install libpulse-dev pulseaudio apulse

https://github.com/xbmc/xbmc/blob/master...d-packages
Reply
#3
de-selecting PipeWire did the trick Smile

make -C /home/purism/kodi/source/xbmc/tools/depends/target/cmakebuildsys BUILD_DIR=/home/purism/kodi/build/ CMAKE_EXTRA_ARGUMENTS="-DENABLE_CEC=OFF -DENABLE_PIPEWIRE=OFF"
Reply
#4
now I'm having some problems with addons.

The Kodi add-on repository and the added Kodinerds addon repository show me "Could not connect to repository"!
I also compiled the pvr.hts addon and it doesn't show up either!

What do I miss here?
Do I need to set an environment VAR?
Reply
#5
the build folder created by compile i have copied to
$HOME/kodi/
Quote:purism@pureos:~/kodi$ ls -rtlha | grep -i '^d'
drwxrwxr-x   3 purism purism 4,0K  9. Mai 13:38 opt
drwxrwxr-x   3 purism purism 4,0K  9. Mai 17:09 media
drwxrwxr-x   3 purism purism 4,0K  9. Mai 17:09 userdata
drwxrwxr-x   9 purism purism 4,0K  9. Mai 17:09 system
drwxrwxr-x  27 purism purism 4,0K  9. Mai 17:25 CMakeFiles
drwxr-xr-x   9 purism purism 4,0K  9. Mai 18:04 .
drwxrwxr-x  98 purism purism 4,0K  9. Mai 20:33 build
drwxrwxr-x 108 purism purism 4,0K  9. Mai 20:41 addons
drwxr-xr-x  19 purism purism 4,0K  9. Mai 20:48 ..

-rwxrwxr-x   1 purism purism  99M  9. Mai 17:25 kodi.bin

on first startup Kodi has created
$HOME/.kodi/

i dont know where to put the pvr.hts addon so that it shows up in Kodi,
neither i don't know how to make kodi default repo work?


i need some help please!
Reply
#6
that's my Kodi startup script to start Kodi in none default path location

    #!/bin/bash
Quote:    export WAYLAND_DISPLAY=wayland-0
    export SSL_CERT_FILE=/home/purism/kodi/cacert.pem
    export LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu:/home/purism/kodi/build/opt/xbmc-deps/aarch64-none-linux-gnu-release/lib
    export LIBDIR="/home/purism/kodi/opt/xbmc-deps/aarch64-none-linux-gnu-release/lib"

    export prefix="/home/purism/kodi/opt/xbmc-deps/aarch64-none-linux-gnu-release"
    export exec_prefix="/home/purism/kodi/opt/xbmc-deps/aarch64-none-linux-gnu-release"
    export datarootdir="/home/purism/kodi/opt/xbmc-deps/aarch64-none-linux-gnu-release/share"

    /home/purism/kodi/kodi.bin "$@"

this works for Kodi alone.

still figuring out how to tell Kodi the paths of binary addons like pvr.hts.
Reply
#7
copying the pvr.hts libs to
~/kodi/addons/pvr.hts/pvr.hts.so
~/kodi/kodi.bin

made the addon works!
Reply

Logout Mark Read Team Forum Stats Members Help
compile Kodi with PulseAudio enabled0