|
|
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==
| | You can find a list of these on the following page [[build kodi]] |
| Set root directory<br>
| |
| export KODI_ROOT=$HOME/dev
| |
| <br>
| |
| Make sure git is installed<br>
| |
| sudo apt install git
| |
| <br>
| |
| Change to your home directory <br>
| |
| cd $KODI_ROOT
| |
| <br>
| |
| Clone Kodi's current master branch<br>
| |
| git clone https://github.com/xbmc/xbmc kodi
| |
| <br>
| |
| Add Kodi's nightly PPA to grab dependencies<br>
| |
| sudo add-apt-repository -s ppa:team-xbmc/xbmc-nightly
| |
| <br>
| |
| Super-duper magic command to get the build dependencies<br>
| |
| sudo apt build-dep kodi
| |
| <br>
| |
| You can install ccache (optional)<br> | |
| sudo apt install ccache
| |
| <br>
| |
| Create an out-of-source build directory<br>
| |
| mkdir $KODI_ROOT/kodi-build
| |
| <br>
| |
| Change to build directory<br>
| |
| cd $KODI_ROOT/kodi-build
| |
| <br>
| |
| Configure build for X11<br>
| |
| cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local
| |
| <br>
| |
| Build Kodi<br>
| |
| cmake --build . -- VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN)
| |
| <br>
| |
| Build all add-ons<br>
| |
| cd $/KODI_ROOTkodi
| |
| sudo make -j$(getconf _NPROCESSORS_ONLN) -C tools/depends/target/binary-addons PREFIX=/usr/local
| |
| | |
| ==Android==
| |
| Get SDK and NDK<br>
| |
| [[https://developer.android.com/ndk/downloads NDK]] <br>
| |
| [[https://developer.android.com/studio/ SDK]] <br>
| |
| <br>
| |
| Set root directory<br>
| |
| export KODI_ROOT=$HOME/dev
| |
| <br>
| |
| Unzip software<br>
| |
| 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
| |
| <br>
| |
| Accept Licenses<br>
| |
| 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"
| |
| <br>
| |
| Change to Android NDK tools directory<br>
| |
| cd $KODI_ROOT/android-tools/android-ndk-r18b/build/tools
| |
| <br>
| |
| Set up toolchain<br>
| |
| ./make-standalone-toolchain.sh --install-dir=$KODI_ROOT/android-tools/arm-linux-androideabi-vanilla/android-21 --platform=android-21 --toolchain=arm-linux-androideabi
| |
| <br>
| |
| Create a key to sign<br>
| |
| 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
| |
| <br>
| |
| Clone Kodi's current master branch<br>
| |
| cd $KODI_ROOT
| |
| git clone https://github.com/xbmc/xbmc kodi
| |
| <br>
| |
| Prepare to configure build<br>
| |
| cd $KODI_ROOT/kodi/tools/depends
| |
| ./bootstrap
| |
| <br>
| |
| Configure build for arm<br>
| |
| ./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
| |
| <br>
| |
| Build tools and dependencies<br>
| |
| make -j$(getconf _NPROCESSORS_ONLN)
| |
| <br>
| |
| Build all add-ons<br>
| |
| cd $KODI_ROOT/kodi<br>
| |
| make -j$(getconf _NPROCESSORS_ONLN) -C tools/depends/target/binary-addons
| |
| <br>
| |
| Build Kodi<br>
| |
| Configure CMake build:
| |
| cd $KODI_ROOT/kodi
| |
| make -C tools/depends/target/cmakebuildsys
| |
| <br>
| |
| Build Kodi<br>
| |
| cd $KODI_ROOT/kodi/build
| |
| make -j$(getconf _NPROCESSORS_ONLN)
| |
| <br>
| |
| Create package<br>
| |
| make apk
| |
|
| |
|
| =Programming= | | =Programming= |
Linux Setup
You can find information on linux setup on the following page linux Setup
Build Kodi
You can find a list of these on the following page build kodi
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