Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575982 - [qt overlay] dev-qt/qtwebengine-5.6.0[system-ffmpeg] fails to compile with ffmpeg-3.0
Summary: [qt overlay] dev-qt/qtwebengine-5.6.0[system-ffmpeg] fails to compile with ff...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-3
  Show dependency tree
 
Reported: 2016-02-29 10:14 UTC by Franz Trischberger
Modified: 2016-04-19 19:58 UTC (History)
2 users (show)

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


Attachments
build.log.gz (build.log.gz,170.45 KB, application/gzip)
2016-02-29 10:14 UTC, Franz Trischberger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2016-02-29 10:14:55 UTC
Created attachment 426972 [details]
build.log.gz

In file included from /var/tmp/portage/dev-qt/qtwebengine-5.6.0_rc/work/qtwebengine-opensource-src-5.6.0-rc/src/3rdparty/chromium/media/base/audio_video_metadata_extractor.cc:11:
/var/tmp/portage/dev-qt/qtwebengine-5.6.0_rc/work/qtwebengine-opensource-src-5.6.0-rc/src/3rdparty/chromium/media/ffmpeg/ffmpeg_common.h:126:5: error: unknown type name 'PixelFormat'; did you mean '
AVPixelFormat'?
    PixelFormat pixel_format);
    ^~~~~~~~~~~
    AVPixelFormat
/usr/include/libavutil/pixfmt.h:61:6: note: 'AVPixelFormat' declared here
enum AVPixelFormat {
     ^
In file included from /var/tmp/portage/dev-qt/qtwebengine-5.6.0_rc/work/qtwebengine-opensource-src-5.6.0-rc/src/3rdparty/chromium/media/base/audio_video_metadata_extractor.cc:11:
/var/tmp/portage/dev-qt/qtwebengine-5.6.0_rc/work/qtwebengine-opensource-src-5.6.0-rc/src/3rdparty/chromium/media/ffmpeg/ffmpeg_common.h:129:1: error: unknown type name 'PixelFormat'; did you mean '
AVPixelFormat'?
PixelFormat VideoFormatToPixelFormat(VideoFrame::Format video_format);
^~~~~~~~~~~
AVPixelFormat
/usr/include/libavutil/pixfmt.h:61:6: note: 'AVPixelFormat' declared here
enum AVPixelFormat {
     ^
Comment 1 Davide Pesavento gentoo-dev 2016-04-13 11:23:15 UTC
I'm assuming 5.6.0 final has the same issue?
Comment 2 Chiitoo gentoo-dev 2016-04-13 22:36:06 UTC
I don't know about 5.6.0 unfortunately, but I just tried 5.6.9999 today, which to my understanding is ahead of 5.6.0, and indeed, building with ffmpeg-3.0.1 was very much not successful.
Comment 3 Vasco Gervasi 2016-04-19 17:52:02 UTC
After today's patch I get this error:

In file included from /var/tmp/portage/dev-qt/qtwebengine-5.6.0/work/qtwebengine-opensource-src-5.6.0/src/3rdparty/chromium/media/base/audio_video_metadata_extractor.cc:11:0:
/var/tmp/portage/dev-qt/qtwebengine-5.6.0/work/qtwebengine-opensource-src-5.6.0/src/3rdparty/chromium/media/ffmpeg/ffmpeg_common.h: At global scope:
/var/tmp/portage/dev-qt/qtwebengine-5.6.0/work/qtwebengine-opensource-src-5.6.0/src/3rdparty/chromium/media/ffmpeg/ffmpeg_common.h:126:5: error: ‘PixelFormat’ was not declared in this scope
     PixelFormat pixel_format);
     ^
/var/tmp/portage/dev-qt/qtwebengine-5.6.0/work/qtwebengine-opensource-src-5.6.0/src/3rdparty/chromium/media/ffmpeg/ffmpeg_common.h:129:1: error: ‘PixelFormat’ does not name a type
 PixelFormat VideoFormatToPixelFormat(VideoFrame::Format video_format);
 ^
[4999/10705] CXX obj/src/3rdparty/chromium/media/base/media.cdm_callback_promise.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
[4999/10705] CXX obj/src/3rdparty/chromium/media/base/media.cdm_initialized_promise.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
[4999/10705] CXX obj/src/3rdparty/chromium/media/base/media.cdm_factory.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
[4999/10705] CXX obj/src/3rdparty/chromium/media/base/media.cdm_promise.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
[4999/10705] CXX obj/src/3rdparty/chromium/media/base/media.channel_mixing_matrix.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
[4999/10705] CXX obj/src/3rdparty/chromium/media/base/media.cdm_promise_adapter.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
[4999/10705] CXX obj/src/3rdparty/chromium/media/capture/media.thread_safe_capture_oracle.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
[4999/10705] CXX obj/src/3rdparty/chromium/media/base/media.container_names.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
[4999/10705] CXX obj/src/3rdparty/chromium/media/capture/media.screen_capture_device_core.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
ninja: build stopped: subcommand failed.
Makefile.gyp_run:443: set di istruzioni per l'obiettivo "invoke_ninja" non riuscito
make[3]: *** [invoke_ninja] Errore 1
make[3]: uscita dalla directory "/var/tmp/portage/dev-qt/qtwebengine-5.6.0/work/qtwebengine-opensource-src-5.6.0/src/core"
Makefile:116: set di istruzioni per l'obiettivo "sub-gyp_run-pro-make_first" non riuscito
make[2]: *** [sub-gyp_run-pro-make_first] Errore 2
make[2]: uscita dalla directory "/var/tmp/portage/dev-qt/qtwebengine-5.6.0/work/qtwebengine-opensource-src-5.6.0/src/core"
Makefile:48: set di istruzioni per l'obiettivo "sub-core-make_first" non riuscito
make[1]: *** [sub-core-make_first] Errore 2
make[1]: uscita dalla directory "/var/tmp/portage/dev-qt/qtwebengine-5.6.0/work/qtwebengine-opensource-src-5.6.0/src"
Makefile:44: set di istruzioni per l'obiettivo "sub-src-make_first" non riuscito
make: *** [sub-src-make_first] Errore 2


Thanks
Comment 4 Vasco Gervasi 2016-04-19 17:52:38 UTC
Is this a new bug or releated?
Comment 5 Davide Pesavento gentoo-dev 2016-04-19 19:58:59 UTC
5.6.0 and 5.6.9999 now explicitly depend on =ffmpeg-2*, until upstream provides a fix (not sure if it'll ever happen for 5.6.x). Let me know if the restriction needs to be applied to 5.7 and 5.9999

https://gitweb.gentoo.org/proj/qt.git/commit/?id=0e4fb2888ef5040c2df29b765215d3affd1bbdd2