gstreamer/tests/examples/gl/qt/qglwtextureshare/qglwtextureshare.pro
Jan Schmidt 6b96a87003 examples: Fix Qt/GL qglwtextureshare example for X11
We need to pass the X11 display to GstGL or else it will
use its own X11 Display pointer, and the GL Context won't get shared
correctly on newer X servers
2017-12-09 19:31:47 +00:00

73 lines
1.6 KiB
Prolog

TEMPLATE = app
TARGET = qglwtextureshare
QT += opengl
# Add console to the CONFIG to see debug messages printed in
# the console on Windows
# CONFIG += console
DEFINES += UNICODE QT_THREAD_SUPPORT QT_CORE_LIB QT_GUI_LIB
CONFIG += link_pkgconfig compile_libtool
PKGCONFIG=gstreamer-1.0 gstreamer-video-1.0 gstreamer-gl-1.0
win32 {
DEFINES += WIN32
INCLUDEPATH += \
C:/gstreamer/include \
C:/gstreamer/include/libxml2 \
C:/gstreamer/include/glib-2.0 \
C:/gstreamer/lib/glib-2.0/include \
C:/gstreamer/include/gstreamer-1.0
LIBS += -L"C:/gstreamer/lib" \
-L"C:/gstreamer/bin" \
-lgstreamer-1.0 \
-lgstgl-1.0 \
-lgstvideo-1.0 \
-lglib-2.0 \
-lgmodule-2.0 \
-lgobject-2.0 \
-lgthread-2.0 \
-lgstvideo-1.0 \
-lopengl32 \
-lglu32
}
unix:!mac {
DEFINES += UNIX
LIBS += \
-lgstvideo-1.0 \
-lgstgl-1.0 \
-lGLU \
-lGL
QT += x11extras
}
mac {
DEFINES += MACOSX
INCLUDEPATH += /opt/local/include/ \
/opt/local/include/gstreamer-1.0/ \
/opt/local/include/glib-2.0/ \
/opt/local/lib/glib-2.0/include \
/opt/local/include/libxml2
LIBS += -L/opt/local/lib \
-lgstreamer-1.0 \
-lgstapp-1.0 \
-lgstvideo-1.0 \
-lglib-2.0 \
-lgobject-2.0 \
-lcxcore \
-lcvaux \
-lcv
OBJECTIVE_SOURCES += cocoa_utils.mm
LIBS += -framework AppKit
}
DEPENDPATH += .
# Header files
HEADERS += gstthread.h \
pipeline.h \
qglrenderer.h \
AsyncQueue.h \
# Source files
SOURCES += gstthread.cpp \
main.cpp \
pipeline.cpp \
qglrenderer.cpp