2023-01-10, 07:22
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:
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.
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.