MythTV PVR/BuildFromSource
Jump to navigation
Jump to search
- The addon is part of XBMC's official addon repository: https://github.com/opdenkamp/xbmc-pvr-addons
- The addon's development repository is https://github.com/fetzerch/xbmc-pvr-addons. You will also find the addon's issue tracker here.
Branches
XBMC PVR addons like the MythTV addon are not compatible with all versions of XBMC (due to the PVR API version dependency). The addon repositories have different branches for the different XBMC versions.
- Branch master: Compatible with XBMC pre-Gotham (v13) development builds
- Branch frodo: Compatible with XBMC Frodo (v12)
Use git checkout <BRANCH>
after cloning the repository to switch to the according branch before starting the build.
Build MythTV addon on Ubuntu
- Add repository for XBMC nightly 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
- 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
rm ~/.xbmc/addons/packages/pvr.mythtv.cmyth-linux-x86_64.zip
- Start XBMC, add the addon using the zip file, then finally enable Live TV using the MythTV addon above.
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
- Snow leopard: Xcode 3.2.6
- Lion: Xcode 4.3+
- Mountain Lion: Xcode 4.4+
- Maverick: Xcode 5.0.1 (PVR sources don't run when compiled with Xcode 5.1)
- Now open a terminal console and clone the tool chain repository to build addon. Below the tool chain is installed in the folder $HOME/src
mkdir src ; cd src git clone git://github.com/janbar/xbmc-pvr-toolchain-osx.git
- Clone the xbmc-pvr-addons sources from git repository inside the tool chain
cd xbmc-pvr-toolchain-osx git clone git://github.com/fetzerch/xbmc-pvr-addons.git
- Optionally you can choose the branch you want to build. By default master branch is checked out
frodo branch
cd xbmc-pvr-addons ; git checkout frodo ; cd ..
master branch
cd xbmc-pvr-addons ; git checkout master ; cd ..
- Build it. You have to be in the root folder of the tool chain
make
- Install addon pvr.mythtv.cmyth with XBMC
The builder create a new folder pvr.mythtv.cmyth containing the addon in the root path of the tool chain. You have to copy it into $HOME/Library/Application\ Support/XBMC/addons/. Also you can zip it to be uploaded with XBMC as zip file.
- You can rebuild the addon at anytime using command make. To completely clean up the tool chain, type make distclean.
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
- Follow normal OpenELEC build instructions (http://wiki.openelec.tv/index.php?title=Compile_from_source) but adjust the "Start compiling" procedure as below
cd OpenELEC.tv
- Run the below script to replace normally included pvr-addons with latest development 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)