Play video using GStreamer
-
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 2Any idea how to use link_pkgconfig correctly?
-
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.