Kodi

===

tags: kodi

Android

OS: ubuntu 20.04

Install required packages

sudo apt install \ autoconf \ build-essential curl default-jdk \ gawk git gperf lib32stdc++6 \ lib32z1 lib32z1-dev libcurl4-openssl-dev \ unzip zlib1g-dev

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Download Android SDK/NDK

Android SDK

wget https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip

mkdir -p ~/android-tools
unzip android-ndk-r21e-linux-x86_64.zip -d ~/android-tools

Android NDK

wget https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip

mkdir -p ~/android-tools/android-sdk-linux

unzip commandlinetools-linux-7583922_latest.zip -d ~/android-tools/android-sdk-linux/

licenses accept

cd ~/android-tools/android-sdk-linux/cmdline-tools/bin/ ./sdkmanager --sdk_root=$(pwd)/../.. --licenses ./sdkmanager --sdk_root=$(pwd)/../.. platform-tools ./sdkmanager --sdk_root=$(pwd)/../.. "platforms;android-28" ./sdkmanager --sdk_root=$(pwd)/../.. "build-tools;28.0.3"

APK Key

keytool -genkey -keystore ~/.android/debug.keystore -v -alias androiddebugkey -dname "CN=Android Debug,O=Android,C=US" -keypass android -storepass android -keyalg RSA -keysize 2048 -validity 10000

BUILD Config

mkdir -p ~/work/ cd ~/work/ git clone https://github.com/xbmc/xbmc kodi cd kodi/tools/depends ./bootstrap ./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=aarch64-linux-android --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r21e --prefix=$HOME/android-tools/xbmc-depends make -j$(getconf _NPROCESSORS_ONLN)

Build binary add-ons

cd ~/work/kodi make -j$(getconf _NPROCESSORS_ONLN) -C tools/depends/target/binary-addons

Build Kodi

make -C tools/depends/target/cmakebuildsys cd $HOME/kodi-build make -j$(getconf _NPROCESSORS_ONLN)

Build APK

make apk ls -la /root/work/kodi/*.apk

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Windows

OS: windows 10

KodiSetup-20220112-d0db844f-master-x64.exe

Install required packages

cmake-3.22.1-windows-x86_64.msi
Git-2.34.1-64-bit.exe
jdk-8u311-windows-x64.exe
npp.8.2.Installer.x64.exe
nsis-3.08-setup.exe
vs_community__634098322d40416589833975687dac30.exe