Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820035 - media-video/subtitlecomposer-0.7.1 - /.../glrenderer.cpp: error: GL_R16 was not declared in this scope
Summary: media-video/subtitlecomposer-0.7.1 - /.../glrenderer.cpp: error: GL_R16 was n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL: https://invent.kde.org/multimedia/sub...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2021-10-24 09:40 UTC by Toralf Förster
Modified: 2022-05-09 21:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.18 KB, text/plain)
2021-10-24 09:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,377.70 KB, text/plain)
2021-10-24 09:40 UTC, Toralf Förster
Details
environment (environment,105.12 KB, text/plain)
2021-10-24 09:40 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,23.32 KB, application/x-bzip)
2021-10-24 09:40 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.43 KB, application/x-bzip)
2021-10-24 09:40 UTC, Toralf Förster
Details
media-video:subtitlecomposer-0.7.1:20211024-085127.log (media-video:subtitlecomposer-0.7.1:20211024-085127.log,314.02 KB, text/plain)
2021-10-24 09:40 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,32.37 KB, application/x-bzip)
2021-10-24 09:40 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-10-24 09:40:44 UTC
/var/tmp/portage/media-video/subtitlecomposer-0.7.1/work/subtitlecomposer-0.7.1/src/videoplayer/backend/glrenderer.cpp: In member function ‘void SubtitleComposer::GLRenderer::setFrameFormat(int, int, int, int, int)’:
/var/tmp/portage/media-video/subtitlecomposer-0.7.1/work/subtitlecomposer-0.7.1/src/videoplayer/backend/glrenderer.cpp:129:47: error: ‘GL_R16’ was not declared in this scope; did you mean ‘GL_R16F’?
  129 |         m_glFormat = compBytes == 1 ? GL_R8 : GL_R16;
      |                                               ^~~~~~
      |                                               GL_R16F
/var/tmp/portage/media-video/subtitlecomposer-0.7.1/work/subtitlecomposer-0.7.1/src/videoplayer/backend/glrenderer.cpp: In member function ‘void SubtitleComposer::GLRenderer::uploadMM(int, int, T*, const T*)’:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20211018-093750

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.56.0
  [2]   rust-1.56.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit ee55f6b11e8ab881e2817d0dae9b377218af28d5
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 24 08:37:08 2021 +0000

    2021-10-24 08:37:07 UTC

emerge -qpvO media-video/subtitlecomposer
[ebuild  N    ] media-video/subtitlecomposer-0.7.1  USE="unicode -debug -test"
Comment 1 Toralf Förster gentoo-dev 2021-10-24 09:40:45 UTC
Created attachment 746493 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-10-24 09:40:47 UTC
Created attachment 746496 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-10-24 09:40:49 UTC
Created attachment 746499 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-10-24 09:40:50 UTC
Created attachment 746502 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-10-24 09:40:50 UTC
Created attachment 746505 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-10-24 09:40:52 UTC
Created attachment 746508 [details]
media-video:subtitlecomposer-0.7.1:20211024-085127.log
Comment 7 Toralf Förster gentoo-dev 2021-10-24 09:40:53 UTC
Created attachment 746511 [details]
temp.tar.bz2
Comment 8 Andreas Sturmlechner gentoo-dev 2022-05-09 06:02:00 UTC
dev-qt/qtgui[gles2-only] suspect.

glrenderer.cpp has:

>    #if defined(GL_ES_VERSION_2_0) || FORCE_GLES
>    #define USE_GLES
>    #define TEXTURE_RGB_FORMAT GL_RGBA
>    // NOTE: we don't support rendering >8bpp on GLES, so 16bit textures are never used
>    //       and cpu will convert the frame to 8bpp
>    #define TEXTURE_U16_FORMAT 0x822A
>    #else
>    #undef USE_GLES
>    #define TEXTURE_RGB_FORMAT GL_BGRA
>    #define TEXTURE_U16_FORMAT GL_R16
>    #endif
Comment 9 Larry the Git Cow gentoo-dev 2022-05-09 21:56:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a38de3c946c83c6148450c6aa4d9c7152d37b429

commit a38de3c946c83c6148450c6aa4d9c7152d37b429
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-05-09 06:17:05 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-05-09 21:55:13 +0000

    media-video/subtitlecomposer: Fix build with dev-qt/qtgui[gles2-only]
    
    Closes: https://bugs.gentoo.org/820035
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../subtitlecomposer-0.7.1-gles-support.patch      | 122 +++++++++++++++++++++
 .../subtitlecomposer/subtitlecomposer-0.7.1.ebuild |   7 +-
 2 files changed, 127 insertions(+), 2 deletions(-)