MythTV PVR/BuildFromSource: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(4 intermediate revisions by 3 users not shown)
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.
{{Mininav|[[Add-on:MythTV PVR Client|MythTV PVR Client]]}}


== Branches ==
{{Note|This add-on's development repository is [[Git usage|Git-based]] and hosted on [https://github.com/janbar/pvr.mythtv GitHub]. There you will find instructions for compiling it from source code along with its issue tracker.}}
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 instructions ==
When building the addon, you have to use the correct branch ([https://github.com/janbar/pvr.mythtv/branches/all List of Git branches in pvr.mythtv]) for the version of Kodi you're building against. For example, if you're building the <code>master</code> branch of Kodi, you should checkout the <code>master</code> branch of this repository. Also, make sure you are following this [https://github.com/janbar/pvr.mythtv/blob/master/README.md README file] from the branch in question.


== 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.
=== Linux environments ===
<syntaxhighlight lang="sh">
git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
git clone --branch Nexus https://github.com/janbar/pvr.mythtv.git
cd pvr.mythtv && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.mythtv -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=ON ../../xbmc/cmake/addons
make
</syntaxhighlight>


== Build MythTV addon on Windows® ==
The add-on files will be placed in <code>../../xbmc/kodi-build/addons</code>, so if you build Kodi from source and run it directly, the add-on will be available as a system add-on.
* 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 ==
== External links ==
Create a LibreElec build environment https://wiki.libreelec.tv/index.php?title=Compile
* [https://github.com/janbar/pvr.mythtv/issues Issue tracker]


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
{{Updated|20}}
<pre>
[[Category:PVR]]
#!/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.

Latest revision as of 09:04, 29 January 2023

Home icon grey.png   ▶ MythTV PVR Client ▶ BuildFromSource

Note: This add-on's development repository is Git-based and hosted on GitHub. There you will find instructions for compiling it from source code along with its issue tracker.


Build instructions

When building the addon, you have to use the correct branch (List of Git branches in pvr.mythtv) for the version of Kodi you're building against. For example, if you're building the master branch of Kodi, you should checkout the master branch of this repository. Also, make sure you are following this README file from the branch in question.


Linux environments

git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
git clone --branch Nexus https://github.com/janbar/pvr.mythtv.git
cd pvr.mythtv && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.mythtv -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=ON ../../xbmc/cmake/addons
make

The add-on files will be placed in ../../xbmc/kodi-build/addons, so if you build Kodi from source and run it directly, the add-on will be available as a system add-on.


External links