<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Apnar</id>
	<title>Official Kodi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Apnar"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/Apnar"/>
	<updated>2026-06-11T00:48:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=MythTV_PVR/BuildFromSource&amp;diff=82205</id>
		<title>MythTV PVR/BuildFromSource</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MythTV_PVR/BuildFromSource&amp;diff=82205"/>
		<updated>2014-12-09T03:15:59Z</updated>

		<summary type="html">&lt;p&gt;Apnar: /* Build MythTV git into OpenELEC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* The addon is part of KODI&#039;s official addon repository: https://github.com/opdenkamp/xbmc-pvr-addons&lt;br /&gt;
* The addon&#039;s development repository is https://github.com/janbar/xbmc-pvr-addons. You will also find the addon&#039;s issue tracker here.&lt;br /&gt;
&lt;br /&gt;
== Branches ==&lt;br /&gt;
KODI PVR addons like the MythTV addon are not compatible with all versions of KODI (due to the PVR API version dependency).&lt;br /&gt;
The addon repositories have different branches for the different KODI versions.&lt;br /&gt;
* Branch &#039;&#039;master&#039;&#039;: Compatible with KODI Helix development builds&lt;br /&gt;
* Branch &#039;&#039;gotham&#039;&#039;: Compatible with XBMC Gotham (v13)&lt;br /&gt;
Use &amp;lt;code&amp;gt;git checkout &amp;lt;BRANCH&amp;gt;&amp;lt;/code&amp;gt; after cloning the repository to switch to the according branch before starting the build.&lt;br /&gt;
&lt;br /&gt;
== Build MythTV addon on Ubuntu ==&lt;br /&gt;
* Add repository for XBMC nightly builds&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/unstable&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install XBMC from nightly builds&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install xbmc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install build utilities/libraries&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ubuntu-restricted-extras git&lt;br /&gt;
sudo apt-get install build-essential automake autoconf checkinstall&lt;br /&gt;
sudo apt-get install bison flex libtool intltool zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create zip file for KODI MythTV addon&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir source&lt;br /&gt;
cd source&lt;br /&gt;
git clone git://github.com/janbar/xbmc-pvr-addons.git&lt;br /&gt;
cd xbmc-pvr-addons&lt;br /&gt;
./bootstrap&lt;br /&gt;
./configure&lt;br /&gt;
make clean zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Put the addon in a handy location&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp addons/pvr.mythtv-linux-x86_64.zip $HOME&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You may need to delete the previous addon zip file out of ~/.kodi/addons/packages/ to allow installation of newer revision with the same addon version number&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rm ~/.kodi/addons/packages/pvr.mythtv-linux-x86_64.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start KODI, add the addon using the zip file, then finally enable Live TV using the MythTV addon above.&lt;br /&gt;
&lt;br /&gt;
== Build MythTV addon on OSX ==&lt;br /&gt;
* Install &#039;&#039;&#039;git&#039;&#039;&#039;. Go to http://code.google.com/p/git-osx-installer&lt;br /&gt;
* Install &#039;&#039;&#039;Xcode&#039;&#039;&#039; for your Mac. Go to http://connect.apple.com/&lt;br /&gt;
* Install &#039;&#039;&#039;Command line tools&#039;&#039;&#039;: Go to http://connect.apple.com/ or type &amp;quot;xcode-select --install&amp;quot; in terminal&lt;br /&gt;
:Snow leopard: Xcode 3.2.6&lt;br /&gt;
:Lion: Xcode 4.3+&lt;br /&gt;
:Mountain Lion: Xcode 4.4+&lt;br /&gt;
:Maverick: Xcode 5.0.1 or newer&lt;br /&gt;
&lt;br /&gt;
* Now open a &#039;&#039;&#039;terminal&#039;&#039;&#039; console and clone the tool chain repository to build addon. Below the tool chain is installed in the folder &#039;&#039;&#039;$HOME/src&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir src ; cd src&lt;br /&gt;
git clone git://github.com/janbar/xbmc-pvr-toolchain-osx.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Clone the &#039;&#039;&#039;xbmc-pvr-addons&#039;&#039;&#039; sources from git repository inside the tool chain&lt;br /&gt;
&amp;lt;pre&amp;gt;cd xbmc-pvr-toolchain-osx&lt;br /&gt;
git clone git://github.com/janbar/xbmc-pvr-addons.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optionally you can choose the branch you want to build. By default master branch is checked out.&lt;br /&gt;
&#039;&#039;gotham branch&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd xbmc-pvr-addons ; git checkout gotham ; cd ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;master branch&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd xbmc-pvr-addons ; git checkout master ; cd ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Build it. You have to be in the root folder of the tool chain&lt;br /&gt;
&amp;lt;pre&amp;gt;make&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install addon &#039;&#039;&#039;pvr.mythtv&#039;&#039;&#039; with &#039;&#039;&#039;KODI&#039;&#039;&#039;&lt;br /&gt;
The builder create a new folder &#039;&#039;&#039;pvr.mythtv&#039;&#039;&#039; containing the addon in the root path of the tool chain. You have to copy it into &#039;&#039;&#039;$HOME/Library/Application\ Support/KODI/addons/&#039;&#039;&#039;. Also you can zip it to be uploaded  with &#039;&#039;&#039;KODI&#039;&#039;&#039; as zip file.&lt;br /&gt;
&lt;br /&gt;
* You can rebuild the addon at anytime using command &#039;&#039;make&#039;&#039;. To completely clean up the tool chain, type &#039;&#039;make distclean&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Build MythTV addon on Windows ==&lt;br /&gt;
* Install &#039;&#039;&#039;Visual C++ 2013 windows desktop&#039;&#039;&#039;&lt;br /&gt;
* Download &#039;&#039;&#039;xbmc-pvr-addons&#039;&#039;&#039; sources from git repository&lt;br /&gt;
&amp;lt;pre&amp;gt;cd src&lt;br /&gt;
git clone git://github.com/janbar/xbmc-pvr-addons.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Execute &#039;&#039;&#039;DownloadBuildDeps.bat&#039;&#039;&#039; in &#039;&#039;&#039;xbmc-pvr-addons\project\BuildDependencies&#039;&#039;&#039; &lt;br /&gt;
* Open &#039;&#039;&#039;xbmc-pvr-addons.sln&#039;&#039;&#039; from &#039;&#039;&#039;xbmc-pvr-addons\project\VS2010Express&#039;&#039;&#039; in Visual C++ 2013&lt;br /&gt;
* Build it&lt;br /&gt;
* To install the addon, copy the folder &#039;&#039;&#039;xbmc-pvr-addons\addons\pvr.mythtv\addon&#039;&#039;&#039; to your KODI addons directory&lt;br /&gt;
&lt;br /&gt;
== Build MythTV git into OpenELEC ==&lt;br /&gt;
* Follow normal OpenELEC build instructions (http://wiki.openelec.tv/index.php?title=Compile_from_source) but adjust the &amp;quot;Start compiling&amp;quot; procedure as below&lt;br /&gt;
&amp;lt;pre&amp;gt;cd OpenELEC.tv&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run the below script to replace normally included pvr-addons with latest development git version&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
source ./config/version&lt;br /&gt;
source ./distributions/OpenELEC/options&lt;br /&gt;
# may want to change this to different build if you are not building Generic&lt;br /&gt;
source ./projects/Generic/options &lt;br /&gt;
source ./packages/mediacenter/kodi-pvr-addons/package.mk&lt;br /&gt;
&lt;br /&gt;
if [ ! -d ./sources/$PKG_NAME/ ]; then&lt;br /&gt;
    mkdir -p ./sources/$PKG_NAME/&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
wget --no-check-certificate https://github.com/janbar/xbmc-pvr-addons/archive/master.zip&lt;br /&gt;
&lt;br /&gt;
unzip master.zip&lt;br /&gt;
mv xbmc-pvr-addons-master $PKG_NAME-$PKG_VERSION&lt;br /&gt;
tar -cJf $PKG_NAME-$PKG_VERSION.tar.xz $PKG_NAME-$PKG_VERSION&lt;br /&gt;
rm -r $PKG_NAME-$PKG_VERSION master.zip&lt;br /&gt;
&lt;br /&gt;
mv $PKG_NAME-$PKG_VERSION.tar.xz ./sources/$PKG_NAME/&lt;br /&gt;
md5sum sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz &amp;gt; \&lt;br /&gt;
 sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.md5&lt;br /&gt;
echo  $PKG_URL &amp;gt; ./sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.url&lt;br /&gt;
&lt;br /&gt;
rm -rf ./build.OpenELEC*/.stamps/$PKG_NAME ./build.OpenELEC*/$PKG_NAME-* \&lt;br /&gt;
 ./build.OpenELEC*/image/.stamps/$PKG_NAME&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Continue with regular build instructions (PROJECT=Generic ARCH=x86_64 make release)&lt;/div&gt;</summary>
		<author><name>Apnar</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MythTV_PVR/BuildFromSource&amp;diff=80627</id>
		<title>MythTV PVR/BuildFromSource</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MythTV_PVR/BuildFromSource&amp;diff=80627"/>
		<updated>2014-11-11T13:38:11Z</updated>

		<summary type="html">&lt;p&gt;Apnar: /* Build MythTV git into OpenELEC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* The addon is part of KODI&#039;s official addon repository: https://github.com/opdenkamp/xbmc-pvr-addons&lt;br /&gt;
* The addon&#039;s development repository is https://github.com/janbar/xbmc-pvr-addons. You will also find the addon&#039;s issue tracker here.&lt;br /&gt;
&lt;br /&gt;
== Branches ==&lt;br /&gt;
KODI PVR addons like the MythTV addon are not compatible with all versions of KODI (due to the PVR API version dependency).&lt;br /&gt;
The addon repositories have different branches for the different KODI versions.&lt;br /&gt;
* Branch &#039;&#039;master&#039;&#039;: Compatible with KODI Helix development builds&lt;br /&gt;
* Branch &#039;&#039;gotham&#039;&#039;: Compatible with XBMC Gotham (v13)&lt;br /&gt;
Use &amp;lt;code&amp;gt;git checkout &amp;lt;BRANCH&amp;gt;&amp;lt;/code&amp;gt; after cloning the repository to switch to the according branch before starting the build.&lt;br /&gt;
&lt;br /&gt;
== Build MythTV addon on Ubuntu ==&lt;br /&gt;
* Add repository for XBMC nightly builds&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/unstable&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install XBMC from nightly builds&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install xbmc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install build utilities/libraries&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ubuntu-restricted-extras git&lt;br /&gt;
sudo apt-get install build-essential automake autoconf checkinstall&lt;br /&gt;
sudo apt-get install bison flex libtool intltool zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create zip file for KODI MythTV addon&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir source&lt;br /&gt;
cd source&lt;br /&gt;
git clone git://github.com/janbar/xbmc-pvr-addons.git&lt;br /&gt;
cd xbmc-pvr-addons&lt;br /&gt;
./bootstrap&lt;br /&gt;
./configure&lt;br /&gt;
make clean zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Put the addon in a handy location&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp addons/pvr.mythtv-linux-x86_64.zip $HOME&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You may need to delete the previous addon zip file out of ~/.kodi/addons/packages/ to allow installation of newer revision with the same addon version number&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rm ~/.kodi/addons/packages/pvr.mythtv-linux-x86_64.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start KODI, add the addon using the zip file, then finally enable Live TV using the MythTV addon above.&lt;br /&gt;
&lt;br /&gt;
== Build MythTV addon on OSX ==&lt;br /&gt;
* Install &#039;&#039;&#039;git&#039;&#039;&#039;. Go to http://code.google.com/p/git-osx-installer&lt;br /&gt;
* Install &#039;&#039;&#039;Xcode&#039;&#039;&#039; for your Mac. Go to http://connect.apple.com/&lt;br /&gt;
* Install &#039;&#039;&#039;Command line tools&#039;&#039;&#039;: Go to http://connect.apple.com/ or type &amp;quot;xcode-select --install&amp;quot; in terminal&lt;br /&gt;
:Snow leopard: Xcode 3.2.6&lt;br /&gt;
:Lion: Xcode 4.3+&lt;br /&gt;
:Mountain Lion: Xcode 4.4+&lt;br /&gt;
:Maverick: Xcode 5.0.1 (PVR sources don&#039;t run when compiled with Xcode 5.1)&lt;br /&gt;
&lt;br /&gt;
* Now open a &#039;&#039;&#039;terminal&#039;&#039;&#039; console and clone the tool chain repository to build addon. Below the tool chain is installed in the folder &#039;&#039;&#039;$HOME/src&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir src ; cd src&lt;br /&gt;
git clone git://github.com/janbar/xbmc-pvr-toolchain-osx.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Clone the &#039;&#039;&#039;xbmc-pvr-addons&#039;&#039;&#039; sources from git repository inside the tool chain&lt;br /&gt;
&amp;lt;pre&amp;gt;cd xbmc-pvr-toolchain-osx&lt;br /&gt;
git clone git://github.com/janbar/xbmc-pvr-addons.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optionally you can choose the branch you want to build. By default master branch is checked out.&lt;br /&gt;
&#039;&#039;gotham branch&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd xbmc-pvr-addons ; git checkout gotham ; cd ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;master branch&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd xbmc-pvr-addons ; git checkout master ; cd ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Build it. You have to be in the root folder of the tool chain&lt;br /&gt;
&amp;lt;pre&amp;gt;make&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install addon &#039;&#039;&#039;pvr.mythtv&#039;&#039;&#039; with &#039;&#039;&#039;KODI&#039;&#039;&#039;&lt;br /&gt;
The builder create a new folder &#039;&#039;&#039;pvr.mythtv&#039;&#039;&#039; containing the addon in the root path of the tool chain. You have to copy it into &#039;&#039;&#039;$HOME/Library/Application\ Support/KODI/addons/&#039;&#039;&#039;. Also you can zip it to be uploaded  with &#039;&#039;&#039;KODI&#039;&#039;&#039; as zip file.&lt;br /&gt;
&lt;br /&gt;
* You can rebuild the addon at anytime using command &#039;&#039;make&#039;&#039;. To completely clean up the tool chain, type &#039;&#039;make distclean&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Build MythTV addon on Windows ==&lt;br /&gt;
* Install &#039;&#039;&#039;Visual C++ 2013 windows desktop&#039;&#039;&#039;&lt;br /&gt;
* Download &#039;&#039;&#039;xbmc-pvr-addons&#039;&#039;&#039; sources from git repository&lt;br /&gt;
&amp;lt;pre&amp;gt;cd src&lt;br /&gt;
git clone git://github.com/janbar/xbmc-pvr-addons.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Execute &#039;&#039;&#039;DownloadBuildDeps.bat&#039;&#039;&#039; in &#039;&#039;&#039;xbmc-pvr-addons\project\BuildDependencies&#039;&#039;&#039; &lt;br /&gt;
* Open &#039;&#039;&#039;xbmc-pvr-addons.sln&#039;&#039;&#039; from &#039;&#039;&#039;xbmc-pvr-addons\project\VS2010Express&#039;&#039;&#039; in Visual C++ 2013&lt;br /&gt;
* Build it&lt;br /&gt;
* To install the addon, copy the folder &#039;&#039;&#039;xbmc-pvr-addons\addons\pvr.mythtv\addon&#039;&#039;&#039; to your KODI addons directory&lt;br /&gt;
&lt;br /&gt;
== Build MythTV git into OpenELEC ==&lt;br /&gt;
* Follow normal OpenELEC build instructions (http://wiki.openelec.tv/index.php?title=Compile_from_source) but adjust the &amp;quot;Start compiling&amp;quot; procedure as below&lt;br /&gt;
&amp;lt;pre&amp;gt;cd OpenELEC.tv&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run the below script to replace normally included pvr-addons with latest development git version&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
source ./config/version&lt;br /&gt;
# may want to change this to different build if you are not building Generic&lt;br /&gt;
source ./projects/Generic/options &lt;br /&gt;
source ./packages/mediacenter/kodi-pvr-addons/package.mk&lt;br /&gt;
&lt;br /&gt;
# remove rebranding patch as its already been done in janbar repo&lt;br /&gt;
rm -f ./packages/mediacenter/kodi-pvr-addons/patches/kodi-pvr-addons-xbmc-rebrand.patch&lt;br /&gt;
&lt;br /&gt;
if [ ! -d ./sources/$PKG_NAME/ ]; then&lt;br /&gt;
    mkdir -p ./sources/$PKG_NAME/&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
wget --no-check-certificate https://github.com/janbar/xbmc-pvr-addons/archive/master.zip&lt;br /&gt;
&lt;br /&gt;
unzip master.zip&lt;br /&gt;
mv xbmc-pvr-addons-master $PKG_NAME-$PKG_VERSION&lt;br /&gt;
tar -cJf $PKG_NAME-$PKG_VERSION.tar.xz $PKG_NAME-$PKG_VERSION&lt;br /&gt;
rm -r $PKG_NAME-$PKG_VERSION master.zip&lt;br /&gt;
&lt;br /&gt;
mv $PKG_NAME-$PKG_VERSION.tar.xz ./sources/$PKG_NAME/&lt;br /&gt;
md5sum sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz &amp;gt; \&lt;br /&gt;
 sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.md5&lt;br /&gt;
echo  $PKG_URL &amp;gt; ./sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.url&lt;br /&gt;
&lt;br /&gt;
rm -rf ./build.OpenELEC*/.stamps/xbmc-pvr-addons ./build.OpenELEC*/xbmc-pvr-addons-* \&lt;br /&gt;
 ./build.OpenELEC*/image/.stamps/xbmc-pvr-addons&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Continue with regular build instructions (PROJECT=Generic ARCH=x86_64 make release)&lt;/div&gt;</summary>
		<author><name>Apnar</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=MythTV_PVR/BuildFromSource&amp;diff=77631</id>
		<title>MythTV PVR/BuildFromSource</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=MythTV_PVR/BuildFromSource&amp;diff=77631"/>
		<updated>2014-07-24T23:36:48Z</updated>

		<summary type="html">&lt;p&gt;Apnar: /* Build MythTV git into OpenELEC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* The addon is part of XBMC&#039;s official addon repository: https://github.com/opdenkamp/xbmc-pvr-addons&lt;br /&gt;
* The addon&#039;s development repository is https://github.com/fetzerch/xbmc-pvr-addons. You will also find the addon&#039;s issue tracker here.&lt;br /&gt;
&lt;br /&gt;
== Branches ==&lt;br /&gt;
XBMC PVR addons like the MythTV addon are not compatible with all versions of XBMC (due to the PVR API version dependency).&lt;br /&gt;
The addon repositories have different branches for the different XBMC versions.&lt;br /&gt;
* Branch &#039;&#039;master&#039;&#039;: Compatible with XBMC pre-Gotham (v13) development builds&lt;br /&gt;
* Branch &#039;&#039;frodo&#039;&#039;: Compatible with XBMC Frodo (v12)&lt;br /&gt;
Use &amp;lt;code&amp;gt;git checkout &amp;lt;BRANCH&amp;gt;&amp;lt;/code&amp;gt; after cloning the repository to switch to the according branch before starting the build.&lt;br /&gt;
&lt;br /&gt;
== Build MythTV addon on Ubuntu ==&lt;br /&gt;
* Add repository for XBMC nightly builds&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/unstable&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install XBMC from nightly builds&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo apt-get install xbmc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install build utilities/libraries&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ubuntu-restricted-extras autoconf git&lt;br /&gt;
sudo apt-get install build-essential automake checkinstall&lt;br /&gt;
sudo apt-get install autoconf automake bison flex libtool intltool zip&lt;br /&gt;
sudo apt-get install libmysqlclient-dev libboost-filesystem-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create zip file for XBMC MythTV addon&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir source&lt;br /&gt;
cd source&lt;br /&gt;
git clone git://github.com/fetzerch/xbmc-pvr-addons.git&lt;br /&gt;
cd xbmc-pvr-addons&lt;br /&gt;
./bootstrap&lt;br /&gt;
./configure --enable-addons-with-dependencies&lt;br /&gt;
make clean zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Put the addon in a handy location&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp addons/pvr.mythtv.cmyth-linux-x86_64.zip $HOME&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You may need to delete the previous addon zip file out of ~/.xbmc/addons/packages/ to allow installation of newer revision with the same addon version number&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rm ~/.xbmc/addons/packages/pvr.mythtv.cmyth-linux-x86_64.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start XBMC, add the addon using the zip file, then finally enable Live TV using the MythTV addon above.&lt;br /&gt;
&lt;br /&gt;
== Build MythTV addon on OSX ==&lt;br /&gt;
* Install &#039;&#039;&#039;git&#039;&#039;&#039;. Go to http://code.google.com/p/git-osx-installer&lt;br /&gt;
* Install &#039;&#039;&#039;Xcode&#039;&#039;&#039; for your Mac. Go to http://connect.apple.com/&lt;br /&gt;
* Install &#039;&#039;&#039;Command line tools&#039;&#039;&#039;: Go to http://connect.apple.com/ or type &amp;quot;xcode-select --install&amp;quot; in terminal&lt;br /&gt;
:Snow leopard: Xcode 3.2.6&lt;br /&gt;
:Lion: Xcode 4.3+&lt;br /&gt;
:Mountain Lion: Xcode 4.4+&lt;br /&gt;
:Maverick: Xcode 5.0.1 (PVR sources don&#039;t run when compiled with Xcode 5.1)&lt;br /&gt;
&lt;br /&gt;
* Now open a &#039;&#039;&#039;terminal&#039;&#039;&#039; console and clone the tool chain repository to build addon. Below the tool chain is installed in the folder &#039;&#039;&#039;$HOME/src&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;mkdir src ; cd src&lt;br /&gt;
git clone git://github.com/janbar/xbmc-pvr-toolchain-osx.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Clone the &#039;&#039;&#039;xbmc-pvr-addons&#039;&#039;&#039; sources from git repository inside the tool chain&lt;br /&gt;
&amp;lt;pre&amp;gt;cd xbmc-pvr-toolchain-osx&lt;br /&gt;
git clone git://github.com/fetzerch/xbmc-pvr-addons.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Optionally you can choose the branch you want to build. By default master branch is checked out&lt;br /&gt;
&#039;&#039;frodo branch&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd xbmc-pvr-addons ; git checkout frodo ; cd ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;master branch&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;cd xbmc-pvr-addons ; git checkout master ; cd ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Build it. You have to be in the root folder of the tool chain&lt;br /&gt;
&amp;lt;pre&amp;gt;make&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install addon &#039;&#039;&#039;pvr.mythtv.cmyth&#039;&#039;&#039; with &#039;&#039;&#039;XBMC&#039;&#039;&#039;&lt;br /&gt;
The builder create a new folder &#039;&#039;&#039;pvr.mythtv.cmyth&#039;&#039;&#039; containing the addon in the root path of the tool chain. You have to copy it into &#039;&#039;&#039;$HOME/Library/Application\ Support/XBMC/addons/&#039;&#039;&#039;. Also you can zip it to be uploaded  with &#039;&#039;&#039;XBMC&#039;&#039;&#039; as zip file.&lt;br /&gt;
&lt;br /&gt;
* You can rebuild the addon at anytime using command &#039;&#039;make&#039;&#039;. To completely clean up the tool chain, type &#039;&#039;make distclean&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Build MythTV addon on Windows ==&lt;br /&gt;
* Install &#039;&#039;&#039;Visual C++ 2010&#039;&#039;&#039;&lt;br /&gt;
* Download &#039;&#039;&#039;xbmc-pvr-addons&#039;&#039;&#039; sources from git repository&lt;br /&gt;
&amp;lt;pre&amp;gt;cd src&lt;br /&gt;
git clone git://github.com/fetzerch/xbmc-pvr-addons.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Execute &#039;&#039;&#039;DownloadBuildDeps.bat&#039;&#039;&#039; in &#039;&#039;&#039;xbmc-pvr-addons\project\BuildDependencies&#039;&#039;&#039; &lt;br /&gt;
* Open &#039;&#039;&#039;xbmc-pvr-addons.sln&#039;&#039;&#039; from &#039;&#039;&#039;xbmc-pvr-addons\project\VS2010Express&#039;&#039;&#039; in Visual C++ 2010&lt;br /&gt;
* Build it&lt;br /&gt;
* To install the addon, copy the folder &#039;&#039;&#039;xbmc-pvr-addons\addons\pvr.mythtv.cmyth\addon&#039;&#039;&#039; to your XBMC Frodo addon direcory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build MythTV git into OpenELEC ==&lt;br /&gt;
* Follow normal OpenELEC build instructions (http://wiki.openelec.tv/index.php?title=Compile_from_source) but adjust the &amp;quot;Start compiling&amp;quot; procedure as below&lt;br /&gt;
&amp;lt;pre&amp;gt;cd OpenELEC.tv&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run the below script to replace normally included pvr-addons with latest development git version&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
source ./config/version&lt;br /&gt;
# may want to change this to different build if you are not building Generic&lt;br /&gt;
source ./projects/Generic/options &lt;br /&gt;
source ./packages/mediacenter/xbmc-pvr-addons/package.mk&lt;br /&gt;
&lt;br /&gt;
if [ ! -d ./sources/$PKG_NAME/ ]; then&lt;br /&gt;
    mkdir -p ./sources/$PKG_NAME/&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# older cmyth fetzerch version&lt;br /&gt;
#wget --no-check-certificate https://github.com/fetzerch/xbmc-pvr-addons/archive/master.zip&lt;br /&gt;
&lt;br /&gt;
# newer mythtv janbar version&lt;br /&gt;
wget --no-check-certificate https://github.com/janbar/xbmc-pvr-addons/archive/master.zip&lt;br /&gt;
&lt;br /&gt;
unzip master.zip&lt;br /&gt;
mv xbmc-pvr-addons-master $PKG_NAME-$PKG_VERSION&lt;br /&gt;
tar -cJf $PKG_NAME-$PKG_VERSION.tar.xz $PKG_NAME-$PKG_VERSION&lt;br /&gt;
rm -r $PKG_NAME-$PKG_VERSION master.zip&lt;br /&gt;
&lt;br /&gt;
mv $PKG_NAME-$PKG_VERSION.tar.xz ./sources/$PKG_NAME/&lt;br /&gt;
md5sum sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz &amp;gt; sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.md5&lt;br /&gt;
echo  $PKG_URL &amp;gt; ./sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.url&lt;br /&gt;
&lt;br /&gt;
rm -rf ./build.OpenELEC*/.stamps/xbmc-pvr-addons ./build.OpenELEC*/xbmc-pvr-addons-* ./build.OpenELEC*/image/.stamps/xbmc-pvr-addons&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Continue with regular build instructions (PROJECT=Generic ARCH=x86_64 make release)&lt;/div&gt;</summary>
		<author><name>Apnar</name></author>
	</entry>
</feed>