(2014-07-22, 23:00)mcgski Wrote: (2014-07-22, 05:07)aboredguy Wrote: Ok, so I'm running OpenELEC 4.0.7 (which is current stable) on a RaspberryPi. I finally got the toolchain stuff setup and good to go. My MythTV Backend is 0.27-193-g8ee257c and is fully functional from the local frontend.
I compiled at version 1.9.17...
aboredguy, I'm looking at your post and had a few questions/comments:
1. I wasn't able to get a toolchain working on OpenELEC as it said it wouldn't allow apt-get or git. I was only able to do this on Raspbmc and began building the addon on my Pi using that distro. Did you find instructions somewhere on how to do a build on OpenELEC for Pi?
2. I have basically the same setup except Raspbmc which should be functionally the same if installing the addon. How did you build and install the addon? I'm building using the XBMC build-from-source for addons and substituting the new git repository. I'm also building from the "pi" account but using sudo in all of my build commands. I'm installing the addon from the GUI "Install from zip file".
Sorry for the questions but I'm feeling I'm missing something that is obvious and I can't see it. Thanks!
OpenELEC isn't done like your regular Linux. It is a slimmed down system and the build system is totally separate. We do XenServer at work and it is pretty similarly done where if you need to build a driver, they have an entire VM created just for that. I think the fear is that the build tools being installed add a vector for exploitation or that people might jack up the system doing "make install"s wrong...
My steps might be the hard way, but here were all my steps to build the update .tar for OpenELEC:
1. I created a VirtualBox VM with Ubuntu 12.04 and fully updated. I gave it 1 vCPU, a 20GB VHD, and 512MB RAM.
2. I followed this guide:
Compile from source - OpenELEC - I followed the 12.04 section, then the Perl XML:
![Tongue Tongue](https://forum.kodi.tv/images/smilies/razz.png)
arser section, the Download from GIT section, !! run this command here:
git checkout f2efba3 !! (this is the 4.0.7 bump), and finally the Start Compiling section. This literally took 60 hours to complete in my setup. But you should let it build first without any additions at first.
3. I followed this guide next:
Myth PVR/BuildFromSource - XBMC - I skipped down to the OpenELEC section. In the script, you will need to change the 3rd line (starts with "source") from "/meta" to "/package.mk". Also, alter the wget line to reflect janbar's git repo ("https://github.com/janbar/xbmc-pvr-addons/archive/master.zip"). I then added a line after the "tar" line that reads "cp $PKG_NAME-$PKG_VERSION.tar.xz /var/www/4.0.7/". Finally I altered the echo line to read "http://127.0.0.1/$PKG_NAME-$PKG_VERSION.tar.xz". More on this apache stuff in a moment...
4. sudo apt-get install apache2 - There is a point in the build process where it reaches out to the openelec.tv server to grab what it feels the sources should be. I don't know enough about the scripts and how much trouble it will be to simply change it. When the build process fails being unable to down the files, I changed my /etc/hosts file with "127.0.0.1 sources.openelec.tv". After it is done downloading, I change the hosts file back and subsequent builds don't require changes to the hosts file.
5. Edit ./packages/mediacenter/xbmc-pvr-addons/package.mk - adjust the PKG_VERSION to the git version (7 digit) and adjust the PKG_SITE to janbar's git directory.
6. Finally, I ran "PROJECT=RPi ARCH=arm make release" and worked through all the misplaced source files. I attempted to blindly copy all files from the obvious source dir to the better dir, but then the build errors got strange. So instead, I just copied the files as they were presented. My pattern was: wait for build error, find . |grep "name of missing file", and then cp to the expected location.
*There was a patch file that I had to correct one of the assumed lines, but I haven't had to adjust it since 7cd8de9 so maybe it is fixed for real in janbar's git.
The last piece of the puzzle is how to get the new version into your Pi! The build process creates a .tar file in ~/OpenELEC.tv/target/ . Open a SMB share on your OpenELEC Pi named Update and copy the .tar over. Then politely reboot the Pi from the XBMC screen. Upon reboot, it notices the tar and moves the files to their proper place and reboots again.
If it is of any help to anyone, I have also saved my entire bash history for my two screens
here. You'll see a lot of trial and error in there, but nothing too painful.
Concerning my problems, I will get the debug logging enabled everywhere (also newbie stuff), I will get their clocks synced, and I will put the Pi and Mythtv backend on a cross over cable! :-) We will see what happens!
Thanks all!