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.:

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.

sysadmin

02-16-2012 11:48 AM

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

02-16-2012 01:25 PM

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.

djb61230

02-16-2012 04:49 PM

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:

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.

sysadmin

02-16-2012 05:19 PM

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.

djb61230

02-16-2012 05:36 PM

Well it did build and runs fine. Didn't even core dump like the PPA I tried last week!

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.

sysadmin

02-16-2012 06:00 PM

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.

djb61230

02-16-2012 06:08 PM

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.

sysadmin

02-16-2012 07:28 PM

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.