1 DEFINES += USE_GSTREAMER
2 opencv:DEFINES += USE_OPENCV
5 GLIB_DIR = $$system(brew --prefix glib)
6 GSTREAMER_DIR = $$system(brew --prefix gstreamer)
7 GST_BASE_DIR = $$system(brew --prefix gst-plugins-base)
9 message(Using glib from here: $$GLIB_DIR)
10 message(Using gstreamer from here: $$GSTREAMER_DIR)
11 message(Using gst base from here: $GST_BASE_DIR)
13 INCLUDEPATH += $$GLIB_DIR/include/glib-2.0
14 INCLUDEPATH += $$GLIB_DIR/lib/glib-2.0/include
16 INCLUDEPATH += $$GST_BASE_DIR/include/gstreamer-1.0/
17 INCLUDEPATH += $$GSTREAMER_DIR/include/gstreamer-1.0
18 INCLUDEPATH += $$GSTREAMER_DIR/lib/gstreamer-1.0/include
20 LIBS +=-L$$GLIB_DIR/lib
21 LIBS += -L$$GSTREAMER_DIR/lib -L$$GST_BASE_DIR/lib
23 LIBS += -lglib-2.0 -lgobject-2.0
24 LIBS += -lgstreamer-1.0 -lgstapp-1.0 -lgstpbutils-1.0 -lgstvideo-1.0
28 CONFIG += link_pkgconfig
29 PKGCONFIG += glib-2.0 gobject-2.0
30 PKGCONFIG += gstreamer-1.0 gstreamer-app-1.0 gstreamer-video-1.0
31 opencv:PKGCONFIG += opencv