(2014-07-29, 21:08)MikeB2013 Wrote: If anyone is interested, here is how I cross compiled the addon on Mythbuntu 14.04 64bit for Raspberry pi running raspbmc (debian wheezy). Bulding on the pi took around an hour, building on my laptop using the cross compile is around 2 minutes (Intel core i7).
sudo apt-get update
sudo apt-get install git automake libtool zip
cd ~
git clone https://github.com/raspberrypi/tools.git --depth 1
export PATH=~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin:$PATH
cd to the source xbmc-pvr-addons
./bootstrap
./configure --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
make -C lib/cppmyth -j n (n is the number of cpu cores)
make clean zip -C addons/pvr.mythtv
Now transfer the addon pvr.mythtv-linux-arm.zip to the Raspberry pi and unzip in .xmbc/addons, I used gftp.
Note: you might want to put the "export PATH...." line in your .bashrc file
Mike
Thanks Mike! This worked on an Ubuntu 14.04 64-bit LTS install (not Mythbuntu) as well. I'm running it in a VM on a Macbook Pro and it's fast. Maybe not 2 minutes but not much more than that. I use the following scripts to make sure I can repeat my steps and includes some of the steps I use to build on the Raspberry Pi.
This makes sure all basic tools and libs are in place to build. There may be some redundancy here but it's what worked so....
Code:
#!/bin/bash
sudo apt-get update
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
I split apart your process to make sure the right tool chain is in place for cross compiling so I only need to do it once:
Code:
sudo apt-get update
sudo apt-get install git automake libtool zip
cd ~
git clone https://github.com/raspberrypi/tools.git --depth 1
These I run once before my first build.
I then create a directory 'source' and run this script to pull down janbar's code...:
Code:
#!/bin/bash
cd source
git clone git://github.com/janbar/xbmc-pvr-addons.git
...and now I run this script to make the addon:
Code:
#!/bin/bash
export PATH=~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin:$PATH
cd source
cd xbmc-pvr-addons
./bootstrap
./configure --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
make -C lib/cppmyth -j 2
make clean zip -C addons/pvr.mythtv
I then copied the .zip file to the home directory of the Pi using Filezilla.
A few things to note:
1. The first run of the addon on the Pi gave me an error on loading DLL. I'd assumed it wasn't using the right tools to cross compile so I took your advice and added the 'export $PATH..." to the .bashrc file and the second run on the Pi was fine. I left the export in the script above though just so I remember it's there.
2. Installing via the GUI doesn't seem to work too well so I wound up unzipping on the Pi to the addons directory directly. I needed to restart the Pi to force it to "see" the addon.
3. The last two scripts above can be run as many times as needed to get it right. I suppose the right thing to do is update the libraries, tools, etc. as well, but thought it better to keep as many variables the same for each build. I would love to hear recommendations from those more in the know.
I'm still seeing pixellation on LiveTV but now seeing it on the recordings a bit more than before. I still think it's a horsepower thing with the Pi and maybe a codec thing with MythTV. If anyone can point me to a possible solution please do so. My Hummingboard is shipping this week and it's coming from overseas so it may be a while before I can get a more powerful system under XBMC to test the theory.
Oh, and thank you to everyone who's helped me (and others) out on this forum. It's been a great learning experience for me and very helpful with all of your suggestions and comments.