Skip to content

Error during compiling ImageGStreamerQt.cpp #4

Closed

Description

@TCH68k

During compiling, i get this error message:

/opt/webkit/Source/WebCore/platform/graphics/gstreamer/ImageGStreamerQt.cpp:33:1: error: no declaration matches ‘WebCore::ImageGStreamer::ImageGStreamer(GstSample*)’
   33 | ImageGStreamer::ImageGStreamer(GstSample* sample)
      | ^~~~~~~~~~~~~~
In file included from /opt/webkit/Source/WebCore/platform/graphics/gstreamer/ImageGStreamerQt.cpp:21:
/opt/webkit/Source/WebCore/platform/graphics/gstreamer/ImageGStreamer.h:38:7: note: candidates are: ‘WebCore::ImageGStreamer::ImageGStreamer(const WebCore::ImageGStreamer&)’
   38 | class ImageGStreamer : public RefCounted<ImageGStreamer> {
      |       ^~~~~~~~~~~~~~
/opt/webkit/Source/WebCore/platform/graphics/gstreamer/ImageGStreamer.h:66:5: note:                 ‘WebCore::ImageGStreamer::ImageGStreamer(WTF::GRefPtr<_GstSample>&&)’
   66 |     ImageGStreamer(GRefPtr<GstSample>&&);
      |     ^~~~~~~~~~~~~~
/opt/webkit/Source/WebCore/platform/graphics/gstreamer/ImageGStreamer.h:38:7: note: ‘class WebCore::ImageGStreamer’ defined here
   38 | class ImageGStreamer : public RefCounted<ImageGStreamer> {
      |       ^~~~~~~~~~~~~~

I can workaround it, by putting ImageGStreamer(GstSample* sample); into the public section of ImageGStreamer.h, but then at the final linking i will get an additional error message:

/usr/bin/ld: ../../lib/../Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/gstreamer/VideoFrameGStreamer.cpp.o: in function `WebCore::GstSampleColorConverter::convertSampleToImage(WTF::GRefPtr<_GstSample> const&)':
/opt/webkit/Source/WebCore/platform/graphics/gstreamer/ImageGStreamer.h:42: undefined reference to `WebCore::ImageGStreamer::ImageGStreamer(WTF::GRefPtr<_GstSample>&&)'

OS is Debian 11, AMD64. Compiler is GCC 10. Qt is 5.15.2.

Further information is available at qtwebkit#1094

Activity

  1. TCH68k commented on Jun 28, 2023

    @TCH68k
    Author

    Fixed in test branch during IRC session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions