diff --git a/src/VideoStreaming/VideoStreaming.pri b/src/VideoStreaming/VideoStreaming.pri index 323fe1d6b5df95e6dd4b8f6189a4cfc69d33d47c..b07cba48853fb3aaba778ec38441a8dd533fbaac 100644 --- a/src/VideoStreaming/VideoStreaming.pri +++ b/src/VideoStreaming/VideoStreaming.pri @@ -42,6 +42,26 @@ LinuxBuild { INCLUDEPATH += $$GST_ROOT/Headers LIBS += -F/Library/Frameworks -framework GStreamer } +} else:WindowsBuild { + #- gstreamer installed by default under c:/gstreamer + # This is not working. It builds but at runtime, it expects to find + # the gstreamer DLLs, even though it is, in theory, linking to it + # statically. + exists(foobar_removethistobuild) { + GST_ROOT = c:/gstreamer/1.0/x86 + exists($$GST_ROOT) { + message("Including support for video streaming") + DEFINES += QGC_GST_STREAMING + CONFIG += VideoEnabled + LIBS += -L$$GST_ROOT/lib/gstreamer-1.0/static -lgstreamer-1.0 -lgstvideo-1.0 -lgstbase-1.0 + LIBS += -L$$GST_ROOT/lib -lglib-2.0 -lintl -lgobject-2.0 + INCLUDEPATH += \ + $$GST_ROOT/include/gstreamer-1.0 \ + $$GST_ROOT/include/glib-2.0 \ + $$GST_ROOT/lib/gstreamer-1.0\include \ + $$GST_ROOT/lib/glib-2.0/include + } + } } VideoEnabled {