Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build Qt 6 from source on CentOS7
Forum Updated to NodeBB v4.3 + New Features

Build Qt 6 from source on CentOS7

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 2 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nitingera
    wrote on last edited by
    #1

    I am trying to build Qt6.2 branch on CentOS 7.6
    The server is a minimal install version of CentOS. While building Qt 6.2 branch from source, I am getting the following error

    Qt/qt6/qtmultimedia/src/multimedia/platform/gstreamer/common/qgstreamervideosink.cpp: In member function ‘void QGstreamerVideoSink::updateGstContexts()’:
    Qt/qt6/qtmultimedia/src/multimedia/platform/gstreamer/common/qgstreamervideosink.cpp:300:45: error: ‘GST_TYPE_GL_CONTEXT’ was not declared in this scope; did you mean ‘GST_TYPE_CONTEXT’?
    300 | gst_structure_set(structure, "context", GST_TYPE_GL_CONTEXT, displayContext, nullptr);
    | ^~~~~~~~~~~~~~~~~~~
    | GST_TYPE_CONTEXT

    It is building fine if I configure with 'skip qtmultimedia' option
    I have already installed all the gstreamer packages through sudo yum install gstreamer*

    Is there any other missing dependency that is needed?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of GStreamer do you have installed ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nitingera
        wrote on last edited by nitingera
        #3

        I have installed gstreamer1-devel-1.10.4-2.el7.x86_64 through yum

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Check whether the condition defined around gstreamer_gl is true.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          N 1 Reply Last reply
          0
          • SGaistS SGaist

            Check whether the condition defined around gstreamer_gl is true.

            N Offline
            N Offline
            nitingera
            wrote on last edited by
            #5

            @SGaist Can you please elaborate what to check

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              The idea is to check whether the it's configured and thus includes the header containing GST_TYPE_GL_CONTEXT.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              N 1 Reply Last reply
              0
              • SGaistS SGaist

                The idea is to check whether the it's configured and thus includes the header containing GST_TYPE_GL_CONTEXT.

                N Offline
                N Offline
                nitingera
                wrote on last edited by nitingera
                #7

                @SGaist There was a gl folder in gstreamer-1.0/gst/ directory which was enabling the condition gstreamer_gl to be true.
                Removed all gstreamer packages and installed only gstreamer1-devel.x86_64 and gstreamer1-plugins-base-devel.x86_64 packages
                Now able to build successfully with gstreamer. :)
                Adding it here for future references.
                Thanks for the insights

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved