Build Qt 6 from source on CentOS7
-
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 errorQt/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_CONTEXTIt 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?
-
Hi,
Which version of GStreamer do you have installed ?
-
Check whether the condition defined around gstreamer_gl is true.
-
Check whether the condition defined around gstreamer_gl is true.
-
The idea is to check whether the it's configured and thus includes the header containing GST_TYPE_GL_CONTEXT.
-
The idea is to check whether the it's configured and thus includes the header containing GST_TYPE_GL_CONTEXT.
@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