[mythtv] Raspberry Pi build improvements

ted.thom at yahoo.com ted.thom at yahoo.com
Thu Jul 21 01:49:04 UTC 2016

Hi all!

Thank you Peter for the improvements you are bringing to the Raspberry Pi support.

I was trying to build fixes/0.28 via the MythTV packaging scripts (https://github.com/MythTV/packaging/tree/fixes/0.28/deb) by running "./build-debs.sh fixes/0.28" on an up-to-date and fresh Raspbian Jessie and encountered an issue toward the end of the build in override_dh_install.

I slightly changed the debian/rules file with the following changes in order to enable Open GL: 
- Adding "-lGLESv2" to extra-libs of MYTHTV_CONFIGURE_OPTS (otherwise the configure command ends up with another error) on line 
https://github.com/MythTV/packaging/blob/fixes/0.28/deb/debian/rules#L69  --By only making this change, the full build is successful and 
- Changing MYTHTV_CONFIGURE_OPTS with what you advised in your previous email: "--disable-opengl-video --disable-vdpau --enable-opengl --disable-opengl-themepainter --disable-vaapi" for line 

The error I am seeing in override_dh_install is the following:
-----LOG EXTRACT-----
make[1]: Leaving directory '/app/workspace-mythtv/packaging/deb/mythtv' 
debian/rules override_dh_install 
make[1]: Entering directory '/app/workspace-mythtv/packaging/deb/mythtv' 
mkdir -p debian/tmp/etc/php5/apache2/conf.d; \ 
cp debian/20-mythweb.ini   debian/tmp/etc/php5/apache2/conf.d; \ 
mkdir -p debian/tmp/etc/php/7.0/apache2/conf.d; \ 
cp debian/20-mythweb.ini   debian/tmp/etc/php/7.0/apache2/conf.d; \ 
dh_install -Xusr/share/mythtv/fonts/Free \ 
-Xusr/share/mythtv/fonts/Purisa \ 
-Xusr/share/mythtv/fonts/Droid \ 
-Xusr/share/mythtv/fonts/texgyrechorus \ 
-Xusr/lib/libmythzmq.la \ 
-Xusr/share/mythtv/fonts/tiresias_gpl3.txt \ 
-X.git \ 
-Xscriptaculous \ 
-Xprototype.js \ 
-Xjquery.min.js \ 
dh_install: usr/share/mythtv/lib/libGLESv2.so.2 exists in debian/tmp but is not installed to anywhere 
dh_install: usr/share/mythtv/lib/libGLESv2.so.2.0.0 exists in debian/tmp but is not installed to anywhere 
dh_install: usr/share/mythtv/lib/libEGL.so.1 exists in debian/tmp but is not installed to anywhere 
dh_install: usr/share/mythtv/lib/libEGL.so.1.0.0 exists in debian/tmp but is not installed to anywhere 
dh_install: missing files, aborting 
debian/rules:135: recipe for target 'override_dh_install' failed 
make[1]: *** [override_dh_install] Error 255 
make[1]: Leaving directory '/app/workspace-mythtv/packaging/deb/mythtv' 
debian/rules:98: recipe for target 'binary' failed 
make: *** [binary] Error 2 
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

And the build quits

Do you know what would need to be added/changed in order to have the packaging script work with Open GL enabled?
I swear I had tried a similar build (Open GL enabled) [with similar changes to debian/rules] in March or around there, and it had worked properly.

Thank you,


On Thursday, July 14, 2016 11:45 AM, Peter Bennett <pgbennett at comcast.net> wrote:

Hi Thomas

Excuse the duplicate email, I sent the last one from the wrong

I have pushed a few changes recently that may help the Raspberry
    Pi mythbuntu builds. Maybe you already know about some of them.

1. There is no need to export anything before the configure or the
    build. (Previously we have a bunch of setting for CXXFLAGS and
2. The LD_LIBRARY_PATH is no longer needed for Raspberry Pi
3. The configure command line can be much simplified, for Ubuntu:
./configure --enable-openmax --disable-vdpau --disable-opengl-video --disable-opengl --disable-vaapi
The "enable-openmax can be left out, but it is useful to keep
    there. With enable-openmax, if openmax cannot be enabled due to
    missing libraries, configure will fail. Without enable-openmax, it
    will silently disable openmax, and the resulting executable will
    be useless.

There are changes that support opengl, but they work only in
    Raspbian, not in Ubuntu. Ubuntu seems to have a broken opengl es
    implementation. So we disable opengl in Ubuntu and enable it in
    Raspbian builds
Raspbian builds use this:
./configure --enable-openmax --disable-vdpau --disable-opengl-video --enable-opengl --disable-opengl-themepainter --disable-vaapi

See build instructions at https://www.mythtv.org/wiki/Build_from_Source


mythtv-dev mailing list
mythtv-dev at mythtv.org
MythTV Forums: https://forum.mythtv.org

More information about the mythtv-dev mailing list