Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Play video using GStreamer
goli last edited by
I am trying to build a projet for playing video using Gstreamer on linux embedded system from "How to play video in Qt on MeeGo using GStreamer":http://www.developer.nokia.com/Community/Wiki/How_to_play_video_in_Qt_on_MeeGo_using_GStreamer
I have the Gstreamer package on my device, but when I try to compile the project it failed because of the lines :
CONFIG += link_pkgconfig
PKGCONFIG += gstreamer-0.10 gstreamer-interfaces-0.10
in the .pro file
The output error:
Project ERROR: Package gstreamer-0.10 not found
make: *** [Makefile] Error 2
Any idea how to use link_pkgconfig correctly?
davem last edited by
I found the gstreamer-0.10 packages need to be deployed on development system. Pointing to pkgconfig in arm angstrom sysroot path did not work even though gstreamer-0.10 was present.
Morix Dev last edited by
It's quite an old discussion thread, but anyway...
I've the same problem here while cross-compiling Qt 5.2.1 for TI AM335x (Starter kit)... does anybody can propose a solution?
Thiagoms15 last edited by
In my terminal I did:
$ pkg-config --cflags gstreamer-0.10
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
$ pkg-config --libs gstreamer-0.10
-pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0
In my .pro I did:
INCLUDEPATH += $$SYSROOT/usr/include/gstreamer-0.10 $$SYSROOT/usr/include/glib-2.0 $$SYSROOT/usr/lib/glib-2.0/include $$SYSROOT/usr/include/libxml2
LIBS += -pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0
It works for me.