mythtv-0.28.0, mythtv-0.28.1 and mythtv-0.29 fail to compile if the dev-qt libraries that Mythtv depend on are built with gles2 enabled. The following workarounds have been successful for myself. 1. Build mythtv-0.28.1 against dev-qt libraries with gles2 disabled. 2. Build mythtv-0.28.1 with #include <GL/glu.h> added to mythrender_opengl1.cpp The following upstream ticket probably refers to this problem. https://code.mythtv.org/trac/ticket/13031
You should not enable gles2 system-wide (several packages won't build and therefore have to force -gles2 on Qt packages).
Please provide the build.log and emerge --info output Thanks
Created attachment 488470 [details] build.log
The following packages were built with gles2 to produce this bug. dev-qt/qtopengl gles2 kde-plasma/kwin gles2 kde-frameworks/plasma gles2 dev-qt/qtwidgets gles2 dev-qt/qtmultimedia gles2 dev-qt/qtgui gles2 dev-qt/qtdeclarative gles2 dev-qt/qtprintsupport gles2 kde-plasma/kinfocenter gles2 And media-libs/mesa.
Created attachment 488472 [details] emerge --info
I have the same 'problem, and cannot remove gles2 as it is required by qtlibs. Furthermore, the mythtv program 'refuses" to be masked, and is causing calls for @preserved-rebuild.
Failed to mention that the @preserved-rebuild call will not operate since it 'wants' to emerge the mythtv proogram.
(In reply to Graham Young from comment #6) > I have the same 'problem, and cannot remove gles2 as it is required by > qtlibs. > Furthermore, the mythtv program 'refuses" to be masked, and is causing calls > for > @preserved-rebuild. Qt itself doesn't *require* gles2, but often causes confusion as all Qt packages need to be build with the same gles2 state. Try disabling gles2 and rebuilding all affected Qt packages at once with something like: emerge -Dav1 --newuse $(eix -I --only-names dev-qt/*) --nodeps
Following the advice by Michael Palimaka I managed to emerge the program by means of: ["USE=-gles2" emerge -N 'qlist -I dev-qt`] ; and following up with: [emerge -uDN world]. I noted there were many 'warnings' in the compilation. I could not totally remove gles2 since libsdl (required fof other orogs), seem to need its inclusion in mesa.
This is very old. If it is still broken in mythtv-30.x please open a new bug report.