Kodi Steam Deck development

From Official Kodi Wiki
(Redirected from Steam Deck development)
Jump to navigation Jump to search
Development:
Home icon grey.png   ▶ Development ▶ Kodi Steam Deck development

Kodi is easily installable on the Steam Deck via Flatpak, but if you're looking to do development on the Steam Deck, this article is for you.

Environment Setup

The first step is to disable the read-only filesystem. If you're reading this, it's assumed that you know what you're doing. If not, seek safety.

The following steps will allow you to compile Kodi on the Steam Deck:

Disable the read-only filesystem

sudo steamos-readonly disable

Initialize the pacman keyring

sudo pacman-key --init

Populate the pacman keyring with the default Arch Linux and Holo keys

sudo pacman-key --populate archlinux holo

Update the system packages

sudo pacman -Syu

Install required packages

sudo pacman -S \
  audit \
  base-devel \
  ccache \
  curl \
  glibc \
  gperf \
  jre-openjdk \
  krb5 \
  libcap-ng \
  libglvnd \
  libvdpau \
  libx11 \
  libxext \
  libxfixes \
  libxrandr \
  libxrender \
  linux-api-headers \
  lld \
  net-tools \
  perl-parse-yapp \
  qt5-base \
  readline \
  rpcsvc-proto \
  systemd-libs \
  xorgproto \
  zlib

Disable Baloo

Building Kodi and depends writes a few hundred thousand small files, so it's recommended that you disable the Baloo indexer:

balooctl suspend
balooctl disable
balooctl purge

Clone Kodi

git clone https://github.com/xbmc/xbmc.git ~/Documents/kodi

Bootstrap depends

cd ~/Documents/kodi/tools/depends
./bootstrap

Configure depends

./configure --prefix="$HOME/kodi-deps" --host=x86_64-steamdeck-linux-gnu

Build depends (this takes about 25 minutes)

make -j8

Create CMake files

Optionally, link with LLD because ld.gold complains about newer DWARF formats:

cd ~/Documents/kodi
make -C tools/depends/target/cmakebuildsys CMAKE_EXTRA_ARGUMENTS="-DENABLE_LLD=ON"

Build Kodi (this takes about 18 minutes)

cd build
make -j8

Build binary add-ons

make -j8 binary-addons