How to build from PVR-XBMC from source
- February 9th, 2010
- By mp
- Write comment
Here is a small howto, that will lead you through building PVR-XBMC from subversion.
Checking out PVR-XBMC via svn.
svn co "http://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/pvr-testing2"
Then goto where ever you checked the pvr-testing2 out
cd pvr-testing2
./bootstrap && \\
./configure --prefix=$HOME/testing/$(svn info | grep -i revision | cut -d" " -f2) && \\
make -j2 && \\
make install
Here is a little function I wrote to update the PVR when ever I need. (in my case it’s in ~/.zshrc)
function update_xbmc () {
CURRENTPATH=$(pwd)
mkdir -p ~/testing
cd ~/src/XBMC
echo -n "Checking for changes in SVN "
svn update
REVISION=$(svn info | grep -i revision | cut -d" " -f2)
if [ -d $HOME/testing/$REVISION ] >/dev/null
then
echo noting to update
else
echo building $REVISION export CFLAGS="-O0 -g"
./configure --prefix=$HOME/testing/$REVISION && \\
make -j2 && \\
make install
if [ $? -eq 0 ]
then
echo linking
cd $HOME/bin
ln -sf ../testing/$REVISION/bin/xbmc xbmc-$REVISION
ln -sf xbmc-$REVISION xbmc-latest
echo -e "XBMC Revision $REVISION has been build. $HOME/testing/$REVISION t enjoy"
fi
fi
cd $CURRENTPATH }
