PDA

View Full Version : gstreamer configuration



prkhr4u
27th January 2014, 10:49
I want to run gstreamer APIs in QT.
I have successfully installed gstreamer sdk and am able to run its tutorial using gcc.
I have configured the QT and set all the environment variables in QT project settings.
My pro file is as follows:

QT += core gui

TARGET = streaming
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp

HEADERS += mainwindow.h

FORMS += mainwindow.ui

unix {
CONFIG += link_pkgconfig
PKGCONFIG += gstreamer-0.10
}


However when i build,it is giving an error like:

Project ERROR: Package gstreamer-0.10 not found

I guess I am missing some configuration settings.
Pl help
P.S.: using ubuntu 12.04

anda_skoa
27th January 2014, 13:48
When you write GStreamer SDK, do you mean you installed the GStreamer development packages or compiled and installed GStreamer yourself?

In the first case check that you have installed the right version and not just the library packages.
In the latter case, make sure you have the package config environment setup correctly so that it includes the installation path you've chosen for your self-built GStreamer.Check with the pkg-config tool.

Cheers,
_

prkhr4u
28th January 2014, 09:45
I have solved the issue.
I had to set the $GSTREAMER_SDK_ROOT to '/opt/gstreamer-sdk' everywhere in the environment variables.
It seems as if we cannot use an environment variable inside another environment variable in QTCreator

anda_skoa
28th January 2014, 13:20
It seems as if we cannot use an environment variable inside another environment variable in QTCreator

If by "in QTCreator" you mean in a qmake project file, then that should be possible


GSTREAMER_LIBS = $$(GSTREAMER_SDK_ROOT)/lib


Cheers,
_