Main Page: Difference between revisions
Line 2: | Line 2: | ||
You can find information on linux setup on the following page [[linux Setup]] | You can find information on linux setup on the following page [[linux Setup]] | ||
=Build Kodi= | =Build Kodi= | ||
== | ==Linux== | ||
Make sure git is installed | |||
sudo apt install git | |||
Change to your home directory | |||
cd $HOME | |||
Clone Kodi's current master branch: | |||
git clone https://github.com/xbmc/xbmc kodi | |||
==Android== | ==Android== |
Revision as of 03:08, 26 December 2018
Linux Setup
You can find information on linux setup on the following page linux Setup
Build Kodi
Linux
Make sure git is installed
sudo apt install git
Change to your home directory
cd $HOME
Clone Kodi's current master branch:
git clone https://github.com/xbmc/xbmc kodi
Android
Get SDK and NDK
[NDK]
[SDK]
Set root directory
export KODI_ROOT=$HOME/dev
Unzip software
mkdir -p $KODI_ROOT/android-tools/android-sdk-linux unzip $KODI_ROOT/Downloads/sdk-tools-linux-4333796.zip -d $KODI_ROOT/android-tools/android-sdk-linux unzip $KODI_ROOT/Downloads/android-ndk-r18b-linux-x86_64.zip -d $KODI_ROOT/android-tools
Accept Licenses
cd $KODI_ROOT/android-tools/android-sdk-linux/tools/bin ./sdkmanager --licenses ./sdkmanager platform-tools ./sdkmanager "platforms;android-26" ./sdkmanager "build-tools;25.0.3"
Change to Android NDK tools directory
cd $KODI_ROOT/android-tools/android-ndk-r18b/build/tools
Set up toolchain
./make-standalone-toolchain.sh --install-dir=$KODI_ROOT/android-tools/arm-linux-androideabi-vanilla/android-21 --platform=android-21 --toolchain=arm-linux-androideabi
Create a key to sign
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
Clone Kodi's current master branch
cd $KODI_ROOT git clone https://github.com/xbmc/xbmc kodi
Prepare to configure build
cd $KODI_ROOT/kodi/tools/depends ./bootstrap
Configure build for arm
./configure --with-tarballs=$KODI_ROOT/android-tools/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=$KODI_ROOT/android-tools/android-sdk-linux --with-ndk-path=$KODI_ROOT/android-tools/android-ndk-r18b --with-toolchain=$KODI_ROOT/android-tools/arm-linux-androideabi-vanilla/android-21 --prefix=$KODI_ROOT/android-tools/xbmc-depends
Build tools and dependencies
make -j$(getconf _NPROCESSORS_ONLN)
Build all add-ons
cd $KODI_ROOT/kodi
make -j$(getconf _NPROCESSORS_ONLN) -C tools/depends/target/binary-addons
Build Kodi
Configure CMake build:
cd $KODI_ROOT/kodi make -C tools/depends/target/cmakebuildsys
Build Kodi
cd $KODI_ROOT/kodi/build make -j$(getconf _NPROCESSORS_ONLN)
Create package
make apk
Programming
Powershell
You can find information on powershell on the following page powershell
C#
Kotlin
You can find information on kotlin on the following page kotlin
Java
C++
Useful cli commands
You can find a list of these on the following page cli favourites
Windows Tips
Disabling public network for hyper-V
Start a secpol.msc Under Netork List Manager, change the relevant Network name to private This was an error when setting up winrm using winrm quickconfig
Powershell
To search for text in a file use
ls * -r | Select-String -simplematch -pattern "mysearchstring" | select -u -exp filename
bibbleMP
You can find information on bibbleMP on the following page bibble Media Player
Recipes
You can find some save recipes on the following page Iain's Recipe Page