[mythtv-users] Building MythTv frontend for Raspberry Pi 2
Tim Stowell
stowellt at gmail.com
Tue Feb 23 03:36:25 UTC 2016
On Mon, Feb 22, 2016 at 1:53 PM, Mike Bibbings <mike.bibbings at gmail.com> wrote:
> On 22/02/16 00:41, Tim Stowell wrote:
>>
>> On Sun, Feb 21, 2016 at 5:38 AM, Mike Bibbings <mike.bibbings at gmail.com>
>> wrote:
>>>
>>> On 21/02/16 05:43, Tim Stowell wrote:
>>>>
>>>> I'm trying to cross compile MythTv Frontend on a Ubuntu host system by
>>>> following the instructions at
>>>> http://www.softsystem.co.uk/download/mythtv/mythtv_for_rpi.txt.
>>>>
>>>> When I execute mythbuild.sh -2 -Q 5.4.0, I get the following errors:
>>>>
>>>>
>>>> W: Failed to fetch
>>>> http://mirrordirector.raspbian.org/raspbian/dists/wheezy/Release
>>>> Unable to find expected entry 'main/binary-i386/Packages' in Release
>>>> file (Wrong sources.list entry or malformed file)
>>>>
>>>> W: Failed to fetch
>>>> http://archive.raspberrypi.org/debian/dists/wheezy/Release Unable to
>>>> find expected entry 'main/binary-i386/Packages' in Release file (Wrong
>>>> sources.list entry or malformed file)
>>>>
>>>>
>>>>
>>>> I'm not sure why it's looking for i386 when I'm trying to build for a
>>>> armhf system. Thanks for any advice
>>>> _______________________________________________
>>>> mythtv-users mailing list
>>>> mythtv-users at mythtv.org
>>>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>>> http://wiki.mythtv.org/Mailing_List_etiquette
>>>> MythTV Forums: https://forum.mythtv.org
>>>
>>> I have assumed that the ubuntu you are using is x86_64 (i.e. 64 bit)
>>>
>>> Make sure you have the latest mythbuild.sh file, there have been several
>>> changes since the original post from Lawrence Rust some months ago.
>>>
>>> For the first build I suggest you run :
>>>
>>> ./mythbuild.sh -2 -Q 5.4.0 -l -v
>>>
>>> The -l (letter l) gives a log file, -v gives more verbose information on
>>> the build, which will help if there are problems. Note the first build
>>> will
>>> take a long time (could be several hours depending on your pc) as it has
>>> to
>>> build QT5 before building mythtv.
>>>
>>> Mike
>>>
>>>
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>> http://wiki.mythtv.org/Mailing_List_etiquette
>>> MythTV Forums: https://forum.mythtv.org
>>
>> Thanks, I was able to get MythTV to compile. I had to modify
>> mythbuild.sh and add [arch=armhf] to the deb lines where sources.list
>> is generated. It did take several hours on a dual core I5-4300U to
>> compile. I noticed that hdhomerun support was disabled, is there any
>> way to get the code to compile for RPI2 with hdhomerun support?
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
>
> Strange about changing mythbuild.sh, my copy of mythbuild.sh contains below
> the deb lines which should have forced the correct architecture (this was
> one of the changes Lawrence made)
>
> APT::Architecture "armhf";
> APT::Architectures "armhf";
> Dir::Cache "$cache";
> Dir::Etc "$AptRoot";
> Dir::State::Lists "$lists";
> Dir::State::status "$status";
>
>
> As far as I know the disabling of hdhomerun only affects mythtv-backend
> which is not on RPI2, not the frontend, but I could be wrong as I don't have
> any hdhomerun units.
>
>
> Mike
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
I used the mythbuild.sh from
http://www.softsystem.co.uk/download/mythtv/mythbuild.sh It looks like
the code you describe is there, I'm not sure why it wasn't working for
me.
It's strange, but I got a build error the first time I tried to build
with hdhomerun support enabled (I commented out the line in
mythbuild.sh where it was being disabled) but the second time I tried
to build everything compiled correctly. My only guess is that it was
due to a race condition by building with multiple threads.
More information about the mythtv-users
mailing list