|
|
| (73 intermediate revisions by 13 users not shown) |
| Line 1: |
Line 1: |
| * The addon is part of XBMC's official addon repository: https://github.com/opdenkamp/xbmc-pvr-addons
| | {{Mininav|[[Add-on:MythTV PVR Client|MythTV PVR Client]]}} |
| * 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)==
| | {{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.}} |
| '''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''' | |
|
| |
|
| Following is a manual install guide for those that want to "get their hands dirty":
| |
|
| |
|
| * Add repository for xbmc Frodo builds
| | == Build instructions == |
| <pre> | | 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. |
| sudo add-apt-repository ppa:team-xbmc/unstable
| |
| sudo apt-get update
| |
| sudo apt-get upgrade
| |
| </pre>
| |
|
| |
|
| * Install xbmc from nightly builds
| |
| <pre>sudo apt-get install xbmc</pre>
| |
|
| |
|
| * Install build utilities/libraries
| | === Linux environments === |
| <pre> | | <syntaxhighlight lang="sh"> |
| sudo apt-get install ubuntu-restricted-extras autoconf git
| | git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git |
| sudo apt-get install build-essential automake checkinstall
| | git clone --branch Nexus https://github.com/janbar/pvr.mythtv.git |
| sudo apt-get install autoconf automake bison flex libtool intltool
| | cd pvr.mythtv && mkdir build && cd build |
| sudo apt-get install libmysqlclient-dev libboost-filesystem-dev
| | cmake -DADDONS_TO_BUILD=pvr.mythtv -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug \ |
| </pre> | | -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=ON ../../xbmc/cmake/addons |
| | make |
| | </syntaxhighlight> |
|
| |
|
| * Create zip file for xbmc mythtv addon
| | 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. |
| <pre> | |
| 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 zip
| |
| </pre> | |
|
| |
|
| * Put the addon in a handy location
| |
| <pre>
| |
| cp addons/pvr.mythtv.cmyth-linux-x86_64.zip $HOME
| |
| </pre>
| |
|
| |
|
| * Start XBMC, add the addon using the zip file, then finally enable Live TV using the mythtv addon above. | | == External links == |
| | * [https://github.com/janbar/pvr.mythtv/issues Issue tracker] |
|
| |
|
| ==Build MythTV addon on OSX==
| |
| * Install '''Xcode''' for your Mac. Go to http://connect.apple.com/
| |
| :Snow leopard: Xcode 3.2.6
| |
| :Lion: Xcode 4.3
| |
| :Mountain Lion: Xcode 4.4
| |
|
| |
|
| * Install '''macports'''. Go to http://http://www.macports.org/install.php
| | {{Updated|20}} |
| :Prefer Mac OS X Package (.pkg) installer specific for your Mac (Mountain Lion, Lion, Snow Leopard)
| | [[Category:PVR]] |
| | |
| * Configure '''macports''' using ''Terminal console''
| |
| <pre>sudo port selfupdate</pre>''Here sudo need your favorite password.''
| |
| | |
| * Install required '''tools''' to build addons using '''macports'''.
| |
| <pre>sudo port install automake autoconf libtool pkgconfig</pre>
| |
| | |
| * Install '''boost''' headers.
| |
| <pre>sudo port install boost
| |
| sudo ln -s /opt/local/include/boost /usr/local/include/boost</pre>
| |
| | |
| * Install '''mysql-connector-c'''
| |
| <pre>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</pre>
| |
| | |
| * Download '''xbmc-pvr-addons''' source from git repository (fetzerch)
| |
| <pre>cd src
| |
| git clone git://github.com/fetzerch/xbmc-pvr-addons.git</pre>
| |
| | |
| * Build it
| |
| <pre>cd xbmc-pvr-addons
| |
| ./bootstrap
| |
| ./configure --enable-addons-with-dependencies
| |
| make zip</pre>
| |
| | |
| * 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.
| |
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