MythTV PVR/BuildFromSource: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
* The addon is part of KODI's official addon repository: https://github.com/kodi-pvr/pvr.mythtv
* 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 also find the addon's issue tracker here.


== Branches ==
== Branches ==
KODI PVR addons like the MythTV addon are not compatible with all versions of KODI (due to the PVR API version dependency).
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.
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.
* Branch ''master'': Compatible with KODI alpha/beta development builds
* Branch ''gotham'': Compatible with XBMC Gotham (v13)
* Branch ''helix'': Compatible with KODI Helix (v14)
* etc ...
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 ==
== Build MythTV addon on Ubuntu ==
Line 29: Line 23:
Build instructions are included in file README.md from source.
Build instructions are included in file README.md from source.


== Build MythTV addon on Windows ==
== Build MythTV addon on Windows® ==
* Install the required version of '''Visual C++ Desktop''' depending of XBMC/KODI target.
* Install latest '''git''' console tool for Windows®.
* Install '''cmake''' and generate the Visual C++ project.
* 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 instructions are included in file README.md from source.
== Build MythTV git into OpenELEC ==
* Follow normal OpenELEC build instructions (http://wiki.openelec.tv/index.php?title=Compile_from_source) for desired ''PROJECT+ARCH''. This stage has to be done for all needed PROJECT+ARCH. It will install required ''toolchain'' to build addon.
<pre>
cd OpenELEC.tv
PROJECT=RPi ARCH=arm make release
</pre>
* From OpenELEC sources folder clone sources of compatible branch: gotham, helix or doityourself (last development)
<pre>
git clone -b helix https://github.com/janbar/pvr.mythtv.git
</pre>
* Create a cleaned <code>build</code> folder and go
<pre>
mkdir -p build
rm -rf build/*
cd build
</pre>
* Select PROJECT and ARCH to build
<pre>
PROJECT=RPi
ARCH=arm
</pre>
* Configure the build by running script below
<pre>
for FILE in \
  ../build.OpenELEC-${PROJECT}.${ARCH}-*/toolchain/etc/cmake-*-openelec-*.conf ; do
  if [ -f "$FILE" ]; then
cmake -DCMAKE_TOOLCHAIN_FILE=$FILE \
          -DCMAKE_BUILD_TYPE=Release \
          ../pvr.mythtv/
    break
  fi
done
</pre>
* Build the addon
<pre>
make
</pre>
* Create the package ZIP
<pre>
cp -r ../pvr.mythtv/pvr.mythtv ./
cp pvr.mythtv.so pvr.mythtv/
zip -r pvr.mythtv-${PROJECT}-${ARCH}.zip ./pvr.mythtv
</pre>

Revision as of 23:50, 30 December 2016

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.