Difference between revisions of "MythTV PVR/BuildFromSource"

From Official Kodi Wiki
Jump to navigation Jump to search
(Replaced content with "* The addon's development repository is https://github.com/janbar/pvr.mythtv. You will find instructions how to build the addon, and the issue tracker.")
Line 1: Line 1:
* The addon's development repository is https://github.com/janbar/pvr.mythtv. You will also find the addon's issue tracker here.
* The addon's development repository is https://github.com/janbar/pvr.mythtv. You will find instructions how to build the addon, and the issue tracker.
 
== 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 <code>git checkout <BRANCH></code> after cloning the repository to switch to the according branch before starting the build.
 
== Build MythTV addon on Ubuntu ==
* Install build utilities/libraries
<pre>
sudo apt-get install git
sudo apt-get install build-essential automake autoconf checkinstall
sudo apt-get install bison flex libtool intltool zip cmake
</pre>
 
Build instructions are included in file README.md from source.
 
== Build MythTV addon on OSX ==
* Install '''git'''. Go to http://code.google.com/p/git-osx-installer
* Install '''Xcode''' for your Mac. Go to http://connect.apple.com/
* Install '''Command line tools''': Go to http://connect.apple.com/ or type "xcode-select --install" in terminal
* Install '''cmake'''.
 
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 <code>cmake -DCMAKE_BUILD_TYPE=Release -DPACKAGE_ZIP=ON ../ </code> when you do this instead:
 
* Create a file called 'refreshversion' in the build directory with the following content and make it executable
<pre>
#!/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
</pre>
* 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.
 
<b>NB:</b> While it takes a long compile time to set up the LibreElec build environment, compiling new versions of pvr.mythtv is quick.

Revision as of 20:01, 19 July 2020