MythTV PVR/BuildFromSource

From Official Kodi Wiki
< MythTV PVR
Revision as of 12:24, 26 February 2017 by Metaron (talk | contribs)
Jump to navigation Jump to search

Branches

KODI PVR addons like the MythTV addon are not compatible with all versions of KODI (due to the PVR API version dependency). The addon repositories have different branches for the different KODI versions. Use git checkout <BRANCH> after cloning the repository to switch to the according branch before starting the build.

Build MythTV addon on Ubuntu

  • Install build utilities/libraries
sudo apt-get install git
sudo apt-get install build-essential automake autoconf checkinstall
sudo apt-get install bison flex libtool intltool zip cmake

Build instructions are included in file README.md from source.

Build MythTV addon on OSX

Build instructions are included in file README.md from source.

Build MythTV addon on Windows®

  • Install latest git console tool for Windows®.
  • Install the required version of Visual® C++ Desktop depending of Kodi version.
  • Install latest cmake tool for Windows®.

Build instructions are included in file README.md from source.

Build MythTV addon for use with LibreElec

Create a LibreElec build environment https://wiki.libreelec.tv/index.php?title=Compile

Follow the build instructions included in file README.md from source until you get to step cmake -DCMAKE_BUILD_TYPE=Release -DPACKAGE_ZIP=ON ../ when you do this instead:

  • Create a file called 'refreshversion' in the build directory with the following content and make it executable
#!/bin/sh
PROJECT=RPi
ARCH=arm
LIBREELEC_TOOLCHAIN_CMAKE_PATH=/home/myuser/LibreELEC.tv/build.LibreELEC-RPi.arm-8.0-devel/toolchain/etc
for FILE in $LIBREELEC_TOOLCHAIN_CMAKE_PATH/cmake-*-libreelec-*.conf ; do
  if [ -f "$FILE" ]; then
    cmake -DCMAKE_TOOLCHAIN_FILE=$FILE -DCMAKE_BUILD_TYPE=Release -DPACKAGE_ZIP=ON ../
    break
  fi
done
  • Adjust PROJECT & ARCH to suit your LibreElec target architecture
  • Adjust LIBREELEC_TOOLCHAIN_CMAKE_PATH to match where LibreElec put the build environment for your target architecture
  • Run refreshversion
  • Return to the README.md instructions to generate a ZIP archive.

NB: While it takes a long compile time to set up the LibreElec build environment, compiling new versions of pvr.mythtv is quick.