Gstreamer 对“QGst::Quick::VideoSurface::VideoSurface(QObject*)'”的未定义引用;

Gstreamer 对“QGst::Quick::VideoSurface::VideoSurface(QObject*)'”的未定义引用;,gstreamer,embedded-linux,qtquick2,qtgstreamer,Gstreamer,Embedded Linux,Qtquick2,Qtgstreamer,我试图在嵌入式linux设备的Qt小部件中显示视频。到目前为止运气不好,我想尝试使用这个QML元素:将它与Gstreamer一起使用。我运行了Qt应用程序中给出的示例使用代码,该应用程序通常运行良好: #include <QGst/Quick/VideoSurface> QGst::Quick::VideoSurface *surface = new QGst::Quick::VideoSurface; 甚至我的IDE也可以通过按住Ctrl键并单击类名来找到这个方法 我尝试了不同的

我试图在嵌入式linux设备的Qt小部件中显示视频。到目前为止运气不好,我想尝试使用这个QML元素:将它与Gstreamer一起使用。我运行了Qt应用程序中给出的示例使用代码,该应用程序通常运行良好:

#include <QGst/Quick/VideoSurface>
QGst::Quick::VideoSurface *surface = new QGst::Quick::VideoSurface;
甚至我的IDE也可以通过按住Ctrl键并单击类名来找到这个方法

我尝试了不同的语法,在构造函数调用中添加了一个参数,查找缺少的模块和包含项,但我总是遇到这个错误。My.pro文件包括以下几行:

QT += core gui widgets qml quick quickwidgets multimedia
PKGCONFIG += glib-2.0 gstreamer-1.0 gstreamer-video-1.0 gobject-2.0 Qt5GStreamer-1.0 Qt5GStreamerUi-1.0
QT += core gui widgets qml quick quickwidgets multimedia
PKGCONFIG += glib-2.0 gstreamer-1.0 gstreamer-video-1.0 gobject-2.0 Qt5GStreamer-1.0 Qt5GStreamerUi-1.0