GStreamer and Qt6

I’ve just managed to compile gstreamer with Qt6 using Cerbero however it has given me a tar.xz file?

I have extracted this but there is nothing obvious to install it? It basically contains all the .so files etc.

Thanks

then unzip it to see all plugins and libs are there(and better move it under /opt/gstreamer).

set PATH, LIB_LIBRARY_PATH and GST_PLUGIN_PATH for it. The tricky part here is to set paths in front of all other paths. For example
export PATH=/opt/gstreamer/bin:$PATH
export LIB_LIBRARY_PATH=/opt/gstreamer/lib:$LIB_LIBRARY_PATH
You are good to go.

My Paths seem to be dissapearing when I close the terminal. Do I leave the version of Gstreamer with ubuntu untouched?

I realised I had to add the paths to the ./bashrc file, and now it finds them, I think I just have to setup pkgconfig and it should work.

Hey @Dsmith did you manage to get this working? I would be interested in building Qt6 apps that use GStreamer, mostly because GTK4 doesn’t have the best cross-platform support. I might give it a try.

There may be an incompatibility between GStreamer and Qt with regards to debug-ness. I think the qml(6)glsink elements currently only work in release mode on Windows.

Hi, yes I did. I found the easiest way to do it and probably the best for deployment was just to install the standard version of gstreamer and then inculde the qt6qmlsink files within the project.

Then you can just register the plugin. Using gst_plugin_register_static if I remember correctly.

Hope this helps.

Note that QML sink has LGPL license.