Build script for Nexus x86_64-linux-gnu on Debian Bullseye in a docker container
#1
So I've been trying to get this together for those of us who are not kodi team members and it may not be readily apparent how to build Kodi

Builds Kodi Nexus from github latest, tested and built for a "debian:bullseye" docker.
Could work in other instances maybe.

Likely can merge most of the system setup into a Dockerfile if you'd like.
See: https://hub.docker.com/_/debian

Sets up build system, installs depends from debian.
Clones Kodi git branch Nexus to $HOME/kodi/kodi-nexus
Compiles Nexus to $HOME/kodi/kodi-build
Compiles binary addons

build.sh:

Code:
echo "deb-src http://deb.debian.org/debian bullseye main" >> /etc/apt/sources.list
apt-get --allow-releaseinfo-change update
apt-get install -y build-essential cmake libboost-all-dev pkg-config ninja-build doxygen graphviz curl wget nasm libunistring-dev git
apt-get build-dep -y kodi
mkdir -p $HOME/kodi/kodi-nexus && git clone -b Nexus https://github.com/xbmc/xbmc $HOME/kodi/kodi-nexus
mkdir -p $HOME/kodi/kodi-build
cd $HOME/kodi/kodi-build && cmake ../kodi-nexus -DCMAKE_INSTALL_PREFIX=$HOME/kodi-port -DCORE_PLATFORM_NAME=x11 -DAPP_RENDER_SYSTEM=gl
cd $HOME/kodi/kodi-build && cmake --build . -- -j$(getconf _NPROCESSORS_ONLN)
cd $HOME/kodi/kodi-build && make -j$(getconf _NPROCESSORS_ONLN) && make -j$(getconf _NPROCESSORS_ONLN) binary-addons

Mostly does everything for you, start it up and get a coffee (or go to lunch if your system is a bit slower).

Made using https://github.com/xbmc/xbmc/blob/master...E.Linux.md as a general guide.

Recommend adjusting which binary addons are built, there's a lot and it takes quite a bit longer to do them all so you could be more selective.
See: https://github.com/xbmc/xbmc/blob/master...ry-add-ons

If you want specific addons only append ADDONS="" to the last line with the addons you want to build in the quotes, space delimited.

I just wanted a quick build so this is a bit hack n slash but mostly functional.
Reply
#2
When I try this, I can build kodi Nexus and I can start it. But it looks like, that the videos are playing in software-modus because my cpu load is very high with kodi Nexus. I build kodi Nexus on an amd64 cpu and on an raspberry 3. On both machines are the same effect. In the kodi settings, the openGL provider looks like right. My system on amd64 and raspberry ist debian bullseye.
Reply

Logout Mark Read Team Forum Stats Members Help
Build script for Nexus x86_64-linux-gnu on Debian Bullseye in a docker container0