Script: install XBMC-PVR with MythTV (libcmyth) addon in Oneiric - AVS Forum
Forum Jump: 
 
Thread Tools
post #1 of 12 Old 02-16-2012, 03:18 AM - Thread Starter
Senior Member
 
sysadmin's Avatar
 
Join Date: Oct 2011
Posts: 249
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 25 Post(s)
Liked: 17
I loaded up Ubuntu 11.10 on a spare partition yesterday so I can play around with Unity and went ahead and put together this little script to install XBMC from git with the libcymyth MythTV PVR addon.

This won't break your current XBMC install if you've loaded it from repos, but you'll want to use a fresh .xbmc folder, so the script will backup your current one for you before murdering it.

UPDATE: This works in Mint 12, also.

Note that this could take a couple of hours to run depending on your system speed and how many dependencies need to be installed. To run it, just paste the contents below into a text file called "xbmc-pvr-install.sh" and run it from anywhere as your normal user, e.g.:
Code:
nano xbmc-pvr-install.sh
sh xbmc-pvr-install.sh
xbmc-pvr-install.sh:
Code:
#!/bin/bash
##
## xbmc-pvr-install.sh
##
## AUTHOR: sysadmin
## VERSION: 0.2
## DATE: 2012-02-16
## LICENSE: GPL
## WARRANTY: None
##
CPUS=$(cat /proc/cpuinfo | grep -m 1 "cpu cores" | tr -d "cpu cores\    : ")
JOBS=$(($CPUS+1))
echo
echo "Backing up your XBMC folder..."
TIMESTAMP=$(date +%d%m%y%H%M)
cp -a ~/.xbmc ~/xbmc-$TIMESTAMP
echo "Your XBMC folder has been backed up to ~/xbmc-"$TIMESTAMP
read -p "Press [ENTER] to continue or - to NOT delete your XBMC folder..." null
rm -rf ~/.xbmc
echo
echo "Updating system and installing dependencies..."
echo
sudo add-apt-repository ppa:team-xbmc/unstable
sudo add-apt-repository ppa:pulse-eight/libcec
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install ccache git
sudo apt-get build-dep xbmc -y
echo
echo "Making ~/src directory and downloading XBMC..."
echo
mkdir ~/src
cd ~/src
git clone https://github.com/tsp/xbmc.git
echo
echo "Building XBMC..."
echo
cd xbmc
./bootstrap
./configure
make --jobs=$JOBS
echo
echo "Installing XBMC..."
echo
sudo make install
sync
echo
echo "Making launch script..."
cd ~
echo "XBMC_HOME=/usr/local/share/xbmc /usr/local/bin/xbmc" > xbmc-pvr
chmod +x xbmc-pvr
echo
echo
echo "Done!"
echo "To run it, type ~/xbmc-pvr"
Simple enough!

HISTORY
==========
2012-02-16 -- 0.2: updated dependency installation method
2012-02-16 -- 0.1: initial release
sysadmin is offline  
Sponsored Links
Advertisement
 
post #2 of 12 Old 02-16-2012, 06:01 AM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
I'll get back to this tonight when I have some time, however the build was dying in lib/libdvd/libdvdcss. Noticed that my system didn't have libdvdcss-dev so I installed it and re-ran but it still died in the same place.

I'm running mint 12 which is oneric in ubuntu land I think. This will be cool to play with, thanks for taking the time to make the script.
djb61230 is offline  
post #3 of 12 Old 02-16-2012, 10:48 AM - Thread Starter
Senior Member
 
sysadmin's Avatar
 
Join Date: Oct 2011
Posts: 249
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 25 Post(s)
Liked: 17
I think that Mint uses its own repos, so some dependencies might be different versions. I would try this first:
Code:
sudo sh /usr/share/doc/libdvdread4/install-css.sh
Then run the script again. If/when it errors again, scroll up to where the errors started happening and post the output here / google it / search through XBMC forums. We should be able to figure out what's causing the build to break.
sysadmin is offline  
post #4 of 12 Old 02-16-2012, 12:25 PM - Thread Starter
Senior Member
 
sysadmin's Avatar
 
Join Date: Oct 2011
Posts: 249
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 25 Post(s)
Liked: 17
OK, I think that I'll have to apply the PNG patches (was wondering about that). The PNG libraries are just now updating on my system. I'll run the build again this afternoon then edit the script as necessary. Also, I'm loading up Mint in vbox to try it there.

EDIT: I uninstalled XBMC, deleted the ~/src folder, and ran the script again after the updates, and it built fine without patching. So, I'll have a look in Mint after it gets updated.
sysadmin is offline  
post #5 of 12 Old 02-16-2012, 03:49 PM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
For some reason it didn't run the autoreconf on lib/libdvd/libdvdcss so I did it by hand and got by that error.

Now the autoreconf fails on xbmc/screensavers/rsxs-0.9. Perhaps I'm missing something there. Here is what it spews:

Code:
djb@djb-desktop ~/src/xbmc $ autoreconf -vif xbmc/screensavers/rsxs-0.9
autoreconf: Entering directory `xbmc/screensavers/rsxs-0.9'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
configure.ac:28: warning: AC_COMPILE_IFELSE was called before gl_USE_SYSTEM_EXTENSIONS
m4/extensions.m4:15: gl_USE_SYSTEM_EXTENSIONS is expanded from...
m4/gnulib-comp.m4:20: gl_EARLY is expanded from...
configure.ac:28: the top level
configure.ac:28: warning: AC_RUN_IFELSE was called before gl_USE_SYSTEM_EXTENSIONS
m4/extensions.m4:15: gl_USE_SYSTEM_EXTENSIONS is expanded from...
m4/gnulib-comp.m4:20: gl_EARLY is expanded from...
configure.ac:28: the top level
configure.ac:64: warning: AC_LTDL_SHLIBEXT is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SHLIBPATH is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SYSSEARCHPATH is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_DLLIB is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SYMBOL_USCORE is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_DLSYM_USCORE is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SYS_DLOPEN_DEPLIBS is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:146: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/headers.m4:162: _AC_CHECK_HEADER_COMPILE is expanded from...
../../lib/autoconf/headers.m4:67: AC_CHECK_HEADER is expanded from...
../../lib/m4sugar/m4sh.m4:574: AS_FOR is expanded from...
../../lib/autoconf/headers.m4:249: AC_CHECK_HEADERS is expanded from...
acinclude.m4:1: _MAC_SAVE is expanded from...
acinclude.m4:434: MAC_PKG_PNG is expanded from...
configure.ac:146: the top level
autoreconf: configure.ac: tracing
configure.ac:28: warning: AC_COMPILE_IFELSE was called before gl_USE_SYSTEM_EXTENSIONS
m4/extensions.m4:15: gl_USE_SYSTEM_EXTENSIONS is expanded from...
m4/gnulib-comp.m4:20: gl_EARLY is expanded from...
configure.ac:28: the top level
configure.ac:28: warning: AC_RUN_IFELSE was called before gl_USE_SYSTEM_EXTENSIONS
m4/extensions.m4:15: gl_USE_SYSTEM_EXTENSIONS is expanded from...
m4/gnulib-comp.m4:20: gl_EARLY is expanded from...
configure.ac:28: the top level
configure.ac:64: warning: AC_LTDL_SHLIBEXT is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SHLIBPATH is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SYSSEARCHPATH is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_DLLIB is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SYMBOL_USCORE is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_DLSYM_USCORE is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SYS_DLOPEN_DEPLIBS is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:146: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/headers.m4:162: _AC_CHECK_HEADER_COMPILE is expanded from...
../../lib/autoconf/headers.m4:67: AC_CHECK_HEADER is expanded from...
../../lib/m4sugar/m4sh.m4:574: AS_FOR is expanded from...
../../lib/autoconf/headers.m4:249: AC_CHECK_HEADERS is expanded from...
acinclude.m4:1: _MAC_SAVE is expanded from...
acinclude.m4:434: MAC_PKG_PNG is expanded from...
configure.ac:146: the top level
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:28: warning: AC_COMPILE_IFELSE was called before gl_USE_SYSTEM_EXTENSIONS
m4/extensions.m4:15: gl_USE_SYSTEM_EXTENSIONS is expanded from...
m4/gnulib-comp.m4:20: gl_EARLY is expanded from...
configure.ac:28: the top level
configure.ac:28: warning: AC_RUN_IFELSE was called before gl_USE_SYSTEM_EXTENSIONS
m4/extensions.m4:15: gl_USE_SYSTEM_EXTENSIONS is expanded from...
m4/gnulib-comp.m4:20: gl_EARLY is expanded from...
configure.ac:28: the top level
configure.ac:64: warning: AC_LTDL_SHLIBEXT is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SHLIBPATH is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SYSSEARCHPATH is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_DLLIB is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SYMBOL_USCORE is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_DLSYM_USCORE is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:64: warning: AC_LTDL_SYS_DLOPEN_DEPLIBS is m4_require'd but not m4_defun'd
configure.ac:34: MAC_LIB_LTDL is expanded from...
configure.ac:64: the top level
configure.ac:146: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/headers.m4:162: _AC_CHECK_HEADER_COMPILE is expanded from...
../../lib/autoconf/headers.m4:67: AC_CHECK_HEADER is expanded from...
../../lib/m4sugar/m4sh.m4:574: AS_FOR is expanded from...
../../lib/autoconf/headers.m4:249: AC_CHECK_HEADERS is expanded from...
acinclude.m4:1: _MAC_SAVE is expanded from...
acinclude.m4:434: MAC_PKG_PNG is expanded from...
configure.ac:146: the top level
configure.ac:46: error: possibly undefined macro: AC_LTDL_SHLIBEXT
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:47: error: possibly undefined macro: AC_LTDL_SHLIBPATH
configure.ac:48: error: possibly undefined macro: AC_LTDL_SYSSEARCHPATH
configure.ac:50: error: possibly undefined macro: AC_LTDL_DLLIB
configure.ac:51: error: possibly undefined macro: AC_LTDL_SYMBOL_USCORE
configure.ac:52: error: possibly undefined macro: AC_LTDL_DLSYM_USCORE
configure.ac:53: error: possibly undefined macro: AC_LTDL_SYS_DLOPEN_DEPLIBS
autoreconf: /usr/bin/autoconf failed with exit status: 1
djb@djb-desktop ~/src/xbmc $
djb61230 is offline  
post #6 of 12 Old 02-16-2012, 04:04 PM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
Base upon the:

configure.ac:47: error: possibly undefined macro: AC_LTDL_SHLIBPATH
configure.ac:48: error: possibly undefined macro: AC_LTDL_SYSSEARCHPATH
configure.ac:50: error: possibly undefined macro: AC_LTDL_DLLIB
configure.ac:51: error: possibly undefined macro: AC_LTDL_SYMBOL_USCORE
configure.ac:52: error: possibly undefined macro: AC_LTDL_DLSYM_USCORE
configure.ac:53: error: possibly undefined macro: AC_LTDL_SYS_DLOPEN_DEPLIBS

lines, I looked in synaptic for a "ltdl" and found a dev package that wasn't installed. libltdl-dev. And then that autoreconf was fixed.

It's crunching away now....will report (hopefully) that it worked in a bit.
djb61230 is offline  
post #7 of 12 Old 02-16-2012, 04:19 PM - Thread Starter
Senior Member
 
sysadmin's Avatar
 
Join Date: Oct 2011
Posts: 249
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 25 Post(s)
Liked: 17
I'm trying it again in Mint now after doing a build-dep against the XBMC unstable PPA which pulled in several new things (including the VDPAU and VAAPI stuff). If it works, then I'll change that part of the script.

I was hesitant to go that route before, but I don't think that it pulled anything in that will break anything else (I didn't have to add any experimental repos to satisfy the deps).

BTW, Mint 12 does use oneiric repos.
sysadmin is offline  
post #8 of 12 Old 02-16-2012, 04:36 PM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
Well it did build and runs fine. Didn't even core dump like the PPA I tried last week!

In the bootstrap script it has:


# order matters with libdvd and friends
[ -d lib/libdvd/libdvdcss ] && \\
autoreconf -vif lib/libdvd/libdvdcss

and that did not seem to ever run. So I commented it out and ran it by hand. And I did have to install the libltdl-dev package.

Interested in hearing how it goes for you with a stock mint 12.
djb61230 is offline  
post #9 of 12 Old 02-16-2012, 05:00 PM - Thread Starter
Senior Member
 
sysadmin's Avatar
 
Join Date: Oct 2011
Posts: 249
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 25 Post(s)
Liked: 17
It made it halfway through the build before I ran out of virtual drive space and had to "install another hard drive", lol.

It should work though. I delete the src folder every time I do something new just to make sure that I have an unadulterated pull, and github seems to be running kinda slow this evening.

I'll let you know, and I'll also run the new dep install method in Ubuntu before I update the script just to be certain that it still works over there, too.
sysadmin is offline  
post #10 of 12 Old 02-16-2012, 05:08 PM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
If you got halfway you definitely got past where I had issues.

Thanks again for taking the time to figure this out. Now I don't have an excuse not to look at the PVR stuff. I see they have a "pvr-demo" and other implementations in the source tree - and it doesn't look awful! Maybe I can figure this out enough to get something running with my server - I've got most of my REST service done - have to figure out how to call it from c++. Gulp.
djb61230 is offline  
post #11 of 12 Old 02-16-2012, 06:28 PM - Thread Starter
Senior Member
 
sysadmin's Avatar
 
Join Date: Oct 2011
Posts: 249
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 25 Post(s)
Liked: 17
NP -- thanks for letting me know about that. I like the script better this way anyway because it pulls in some other stuff that it didn't before like libraries for post-processing, bluray, VDPAU, VA-API, and CrystalHD.

It did build and run fine in both Mint 12 and Ubuntu 11.10, too, so I'm happy about that.

Sorry that I don't know anything about REST and C++. Like I said, though, there are probably some people over at the XBMC forums who would love to help you out with that.

Anyway, I updated the script in OP.
sysadmin is offline  
post #12 of 12 Old 08-13-2012, 10:08 PM
Newbie
 
nuclearj's Avatar
 
Join Date: Aug 2012
Posts: 1
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 10
Quote:
Originally Posted by djb61230 View Post

Base upon the:


configure.ac:47: error: possibly undefined macro: AC_LTDL_SHLIBPATH

configure.ac:48: error: possibly undefined macro: AC_LTDL_SYSSEARCHPATH

configure.ac:50: error: possibly undefined macro: AC_LTDL_DLLIB

configure.ac:51: error: possibly undefined macro: AC_LTDL_SYMBOL_USCORE

configure.ac:52: error: possibly undefined macro: AC_LTDL_DLSYM_USCORE

configure.ac:53: error: possibly undefined macro: AC_LTDL_SYS_DLOPEN_DEPLIBS


lines, I looked in synaptic for a "ltdl" and found a dev package that wasn't installed. libltdl-dev. And then that autoreconf was fixed.


It's crunching away now....will report (hopefully) that it worked in a bit.

I had this error trying to compile xbmc for android and this solution worked! Thanks!
nuclearj is offline  
Reply HTPC - Linux Chat

User Tag List

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off