WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 198080
webkitgtk 2.24.2 fails to build w/gstreamer 1.12.5
https://bugs.webkit.org/show_bug.cgi?id=198080
Summary
webkitgtk 2.24.2 fails to build w/gstreamer 1.12.5
Mike Gorse
Reported
2019-05-21 13:07:12 PDT
I am trying to build webkitgtk on openSUSE Leap 15.0, which has gstreamer 1.12.5. With USE_GSTREAMER_GL, I get the following error, similar to
bug 196178
: In file included from Source/WebCore/platform/graphics/texmap/TextureMapperGLHeaders.h:34:0, from Source/WebCore/platform/graphics/texmap/TextureMapperGL.h:31, from Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h:41, from Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:26: Source/WebCore/platform/graphics/OpenGLShims.h:259:67: error: expected type-specifier before 'glActiveTexture' #define glActiveTexture LOOKUP_GL_FUNCTION(glActiveTexture) ^ followed by many other errors. Probably related to this commit:
https://trac.webkit.org/changeset/245119/webkit
Attachments
Patch.
(1.35 KB, patch)
2019-06-21 13:53 PDT
,
Mike Gorse
no flags
Details
Formatted Diff
Diff
Patch.
(2.89 KB, patch)
2019-06-22 05:03 PDT
,
Mike Gorse
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alberto Garcia
Comment 1
2019-05-22 00:56:24 PDT
This is probably not the cleanest fix, but here's a very quick workaround that I used to make it build in my environment: --- webkitgtk.orig/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h +++ webkitgtk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h @@ -38,6 +38,9 @@ #include <wtf/WeakPtr.h> #if USE(TEXTURE_MAPPER_GL) +#define GST_USE_UNSTABLE_API +#include <gst/gl/gl.h> +#undef GST_USE_UNSTABLE_API #include "TextureMapperGL.h" #if USE(NICOSIA) #include "NicosiaContentLayerTextureMapperImpl.h"
Mike Gorse
Comment 2
2019-06-19 13:49:30 PDT
I'm not super familiar with gstreamer / don't know whether this is the right fix or not, but I just noticed that it wouldn't be the only place where we do this. mediaPlayerPrivateGStreamerBase.cpp has this: #define GST_USE_UNSTABLE_API #include <gst/gl/gl.h> #undef GST_USE_UNSTABLE_API We could also condition it with #if !GST_CHECK_VERSION(1, 14, 0)
Philippe Normand
Comment 3
2019-06-19 14:05:38 PDT
(In reply to Mike Gorse from
comment #2
)
> I'm not super familiar with gstreamer / don't know whether this is the > right fix or not, but I just noticed that it wouldn't be the only place > where we do this. mediaPlayerPrivateGStreamerBase.cpp has this: > #define GST_USE_UNSTABLE_API > #include <gst/gl/gl.h> > #undef GST_USE_UNSTABLE_API > > We could also condition it with #if !GST_CHECK_VERSION(1, 14, 0)
That include is already wrapped by #if USE(GSTREAMER_GL). I know the ifdef soup there is already confusing enough.
Mike Gorse
Comment 4
2019-06-21 13:53:23 PDT
Created
attachment 372646
[details]
Patch. This is the patch that Alberto posted in
comment 1
, along with a ChangeLog entry. It fixes the build for me.
Philippe Normand
Comment 5
2019-06-21 14:44:02 PDT
Comment on
attachment 372646
[details]
Patch. Can the same include be removed from the cpp file then?
Mike Gorse
Comment 6
2019-06-22 05:03:20 PDT
Created
attachment 372676
[details]
Patch. Removed gst/gl/gl.h from the source file. Also moved include of epoxy header, since I think that that needs to be included first.
WebKit Commit Bot
Comment 7
2019-06-22 08:51:06 PDT
Comment on
attachment 372676
[details]
Patch. Clearing flags on attachment: 372676 Committed
r246710
: <
https://trac.webkit.org/changeset/246710
>
WebKit Commit Bot
Comment 8
2019-06-22 08:51:08 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug