MythTV PVR/BuildFromSource: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Bkanuka
(I did not have "zip" installed on a fresh install of Frodo)
>NedBot
m (Robot: Cosmetic changes)
Line 2: Line 2:
* The addon's development repository is https://github.com/fetzerch/xbmc-pvr-addons. You will also find our issue tracker here.
* The addon's development repository is https://github.com/fetzerch/xbmc-pvr-addons. You will also find our issue tracker here.


==Build MythTV addon on Ubuntu 12.04 (Precise)==
== Build MythTV addon on Ubuntu 12.04 (Precise) ==
'''Note: all XBMC 12 (Frodo) builds from the [https://launchpad.net/~team-xbmc Team XBMC PPA] already have all PVR Addons(incl MythTv) pre-packaged'''
'''Note: all XBMC 12 (Frodo) builds from the [https://launchpad.net/~team-xbmc Team XBMC PPA] already have all PVR Addons(incl MythTv) pre-packaged'''


Line 41: Line 41:
* Start XBMC, add the addon using the zip file, then finally enable Live TV using the mythtv addon above.
* Start XBMC, add the addon using the zip file, then finally enable Live TV using the mythtv addon above.


==Build MythTV addon on OSX==
== Build MythTV addon on OSX ==
* Install '''Xcode''' for your Mac. Go to http://connect.apple.com/
* Install '''Xcode''' for your Mac. Go to http://connect.apple.com/
:Snow leopard: Xcode 3.2.6
:Snow leopard: Xcode 3.2.6
Line 90: Line 90:
Get it from ''src/xbmc-pvr-addons/addons/pvr.mythtv.cmyth-darwin-unknown.zip'' and upload it with '''XBMC''' as zip file.
Get it from ''src/xbmc-pvr-addons/addons/pvr.mythtv.cmyth-darwin-unknown.zip'' and upload it with '''XBMC''' as zip file.


==Build MythTV addon on Windows==
== Build MythTV addon on Windows ==
* Install '''Visual C++ 2010'''
* Install '''Visual C++ 2010'''
* Download '''xbmc-pvr-addons''' sources from git repository
* Download '''xbmc-pvr-addons''' sources from git repository
Line 101: Line 101:




==Build MythTV git into OpenELEC==
== Build MythTV git into OpenELEC ==
* Follow normal OpenELEC build instructions (http://wiki.openelec.tv/index.php?title=Compile_from_source) but adjust the "Start compiling" procedure as below
* Follow normal OpenELEC build instructions (http://wiki.openelec.tv/index.php?title=Compile_from_source) but adjust the "Start compiling" procedure as below
<pre>cd OpenELEC.tv</pre>
<pre>cd OpenELEC.tv</pre>

Revision as of 15:26, 27 April 2013

Build MythTV addon on Ubuntu 12.04 (Precise)

Note: all XBMC 12 (Frodo) builds from the Team XBMC PPA already have all PVR Addons(incl MythTv) pre-packaged

  • Add repository for xbmc Frodo builds
sudo add-apt-repository ppa:team-xbmc/unstable
sudo apt-get update
sudo apt-get upgrade
  • Install xbmc from nightly builds
sudo apt-get install xbmc
  • Install build utilities/libraries
sudo apt-get install ubuntu-restricted-extras autoconf git
sudo apt-get install build-essential automake checkinstall
sudo apt-get install autoconf automake bison flex libtool intltool zip
sudo apt-get install libmysqlclient-dev libboost-filesystem-dev
  • Create zip file for xbmc mythtv addon
mkdir source
cd source
git clone git://github.com/fetzerch/xbmc-pvr-addons.git
cd xbmc-pvr-addons
./bootstrap
./configure --enable-addons-with-dependencies
make clean zip
  • Put the addon in a handy location
cp addons/pvr.mythtv.cmyth-linux-x86_64.zip $HOME
  • Start XBMC, add the addon using the zip file, then finally enable Live TV using the mythtv addon above.

Build MythTV addon on OSX

Snow leopard: Xcode 3.2.6
Lion: Xcode 4.3
Mountain Lion: Xcode 4.4
Prefer Mac OS X Package (.pkg) installer specific for your Mac (Mountain Lion, Lion, Snow Leopard)
  • Configure macports using Terminal console
sudo port selfupdate

Here sudo need your favorite password.

  • Install required tools to build addons using macports.
sudo port install automake autoconf libtool pkgconfig
  • Install boost headers.
sudo port install boost
sudo ln -s /opt/local/include/boost /usr/local/include/boost
  • Install mysql-connector-c
cd ; mkdir src ; cd src

curl -L http://mirror.cogentco.com/pub/mysql/Connector-C/mysql-connector-c-6.0.2-osx10.5-x86-64bit.tar.gz \
  -o mysql-connector-c-6.0.2-osx10.5-x86-64bit.tar.gz

tar xvfz mysql-connector-c-6.0.2-osx10.5-x86-64bit.tar.gz

cd mysql-connector-c-6.0.2-osx10.5-x86-64bit

sudo cp bin/* /usr/local/bin/
sudo cp lib/* /usr/local/lib/
sudo mkdir /usr/local/include/mysql
sudo cp -R include/ /usr/local/include/mysql/

cd
  • Download xbmc-pvr-addons sources from git repository
cd src
git clone git://github.com/fetzerch/xbmc-pvr-addons.git
  • Build it
cd xbmc-pvr-addons
./bootstrap
./configure --enable-addons-with-dependencies
make clean zip
  • Install addon pvr.mythtv.cmyth with XBMC frodo (nightly build)

Get it from src/xbmc-pvr-addons/addons/pvr.mythtv.cmyth-darwin-unknown.zip and upload it with XBMC as zip file.

Build MythTV addon on Windows

  • Install Visual C++ 2010
  • Download xbmc-pvr-addons sources from git repository
cd src
git clone git://github.com/fetzerch/xbmc-pvr-addons.git
  • Execute DownloadBuildDeps.bat in xbmc-pvr-addons\project\BuildDependencies
  • Open xbmc-pvr-addons.sln from xbmc-pvr-addons\project\VS2010Express in Visual C++ 2010
  • Build it
  • To install the addon, copy the folder xbmc-pvr-addons\addons\pvr.mythtv.cmyth\addon to your XBMC Frodo addon direcory


Build MythTV git into OpenELEC

cd OpenELEC.tv
  • Run the below script to replace normally included pvr-addons with latest fetzerch git version
#!/bin/bash

source ./packages/mediacenter/xbmc-pvr-addons/meta

if [ ! -d ./sources/$PKG_NAME/ ]; then
    mkdir -p ./sources/$PKG_NAME/
fi
wget --no-check-certificate https://github.com/fetzerch/xbmc-pvr-addons/archive/master.zip
unzip master.zip
mv xbmc-pvr-addons-master $PKG_NAME-$PKG_VERSION
tar -cJf $PKG_NAME-$PKG_VERSION.tar.xz $PKG_NAME-$PKG_VERSION
rm -r $PKG_NAME-$PKG_VERSION master.zip

mv $PKG_NAME-$PKG_VERSION.tar.xz ./sources/$PKG_NAME/
md5sum sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz > sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.md5
echo "http://sources.openelec.tv/devel/$PKG_NAME-$PKG_VERSION.tar.xz" > ./sources/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.xz.url

rm -rf ./build.OpenELEC*/.stamps/xbmc-pvr-addons ./build.OpenELEC*/xbmc-pvr-addons-* ./build.OpenELEC*/image/.stamps/xbmc-pvr-addons
  • Continue with regular build instructions (PROJECT=XXX ARCH=YYY make release)