Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834400 - media-video/bino-1.6.7 with ffmpeg-5.0: media_object.cpp:348:5: error: ‘av_register_all’ was not declared in this scope
Summary: media-video/bino-1.6.7 with ffmpeg-5.0: media_object.cpp:348:5: error: ‘av_re...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 20:42 UTC by Kobboi
Modified: 2023-06-03 02:06 UTC (History)
0 users

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


Attachments
build.log.gz (build.log.gz,8.71 KB, application/gzip)
2022-02-28 20:42 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 20:42 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 20:42:19 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DHTMLDIR=\"/usr/share/doc/bino-1.6.7/html\" -DLOCALEDIR=\"/usr/share/locale\" -I. -I..     -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr
/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/uuid -I/usr/include/fribidi -pthread  -I/usr/include/AL     -DQT_OPENGL_LIB -I/usr/include/qt5/QtOp
enGL -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -DQT_WIDGETS_LIB -I/usr/include/qt5/QtWidgets -DQT_GUI_LIB -DQT_CORE_LIB      -pthread  -I/usr/include/NVCtrl  -
O2 -march=znver3 -pipe -g -ggdb3 -fPIC -c -o crosstalkdialog-moc.o crosstalkdialog-moc.cpp
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DHTMLDIR=\"/usr/share/doc/bino-1.6.7/html\" -DLOCALEDIR=\"/usr/share/locale\" -I. -I..     -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr
/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/uuid -I/usr/include/fribidi -pthread  -I/usr/include/AL     -DQT_OPENGL_LIB -I/usr/include/qt5/QtOp
enGL -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -DQT_WIDGETS_LIB -I/usr/include/qt5/QtWidgets -DQT_GUI_LIB -DQT_CORE_LIB      -pthread  -I/usr/include/NVCtrl  -
O2 -march=znver3 -pipe -g -ggdb3 -fPIC -c -o fullscreendialog-moc.o fullscreendialog-moc.cpp
media_object.cpp: In constructor ‘media_object::media_object(bool)’:
media_object.cpp:348:5: error: ‘av_register_all’ was not declared in this scope
  348 |     av_register_all();
      |     ^~~~~~~~~~~~~~~
media_object.cpp: In member function ‘void media_object::open(const string&, const device_request&)’:
media_object.cpp:796:39: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  796 |         iformat = av_find_input_format("libdc1394");
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
      |                                       |
      |                                       const AVInputFormat*
media_object.cpp:799:39: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  799 |         iformat = av_find_input_format("x11grab");
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      |                                       |
      |                                       const AVInputFormat*
media_object.cpp:807:39: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  807 |         iformat = av_find_input_format("video4linux2");
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
      |                                       |
      |                                       const AVInputFormat*
media_object.cpp:824:47: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  824 |                 iformat = av_find_input_format("mjpeg");
      |                           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                                               |
      |                                               const AVInputFormat*
media_object.cpp:886:70: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  886 |     AVCodecContext *codec_ctx = _ffmpeg->format_ctx->streams[i]->codec;
      |                                                                  ^~~~~

media_object.cpp:888:17: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  887 |         AVCodec *codec = (codec_ctx->codec_id == AV_CODEC_ID_TEXT
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  888 |                 ? NULL : avcodec_find_decoder(codec_ctx->codec_id));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 |
      |                 const AVCodec*


Reproducible: Always
Comment 1 Kobboi 2022-02-28 20:42:35 UTC
Created attachment 766059 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 20:42:37 UTC
Created attachment 766060 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 20:42:46 UTC
Compiles fine with ffmpeg-4.4.1
Comment 4 Larry the Git Cow gentoo-dev 2023-01-20 01:17:00 UTC
The bug has been closed via the following commit(s):

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

commit 12639f7a90e9e635eee59e729bdc75377ff82236
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-20 01:08:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-20 01:11:23 +0000

    media-video/bino: add 2.0
    
    Closes: https://bugs.gentoo.org/721866
    Closes: https://bugs.gentoo.org/740518
    Closes: https://bugs.gentoo.org/834400
    Closes: https://bugs.gentoo.org/831241
    Closes: https://bugs.gentoo.org/875743
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/bino/Manifest        |  1 +
 media-video/bino/bino-2.0.ebuild | 33 +++++++++++++++++++++++++++++++++
 profiles/package.mask            |  1 +
 3 files changed, 35 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2023-06-03 02:06:33 UTC
The bug has been referenced in the following commit(s):

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

commit b74599d45c359fcf495b3b580fd0d948e1eb4f39
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-03 02:06:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-03 02:06:18 +0000

    media-video/bino: depend on <ffmpeg-5 for old
    
    >=bino-2 depends on Qt 6 w/o ffmpeg.
    
    Bug: https://bugs.gentoo.org/907682
    Bug: https://bugs.gentoo.org/834400
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/bino/bino-1.6.7.ebuild | 5 +++--
 media-video/bino/bino-1.6.8.ebuild | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)