LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error: Package Qt5GStreamer-0.10 not found (https://www.linuxquestions.org/questions/linux-newbie-8/error-package-qt5gstreamer-0-10-not-found-4175492115/)

Aquarius_Girl 01-22-2014 01:17 AM

error: Package Qt5GStreamer-0.10 not found
 
The auto generated .pro file contains:

Code:

# This is a qmake project file, provided as an example on how to use qmake with QtGStreamer.

TEMPLATE = app
TARGET = qmlplayer

# produce nice compilation output
CONFIG += silent

# Tell qmake to use pkg-config to find QtGStreamer.
CONFIG += link_pkgconfig

# Now tell qmake to link to QtGStreamer and also use its include path and Cflags.
contains(QT_VERSION, ^4\\..*) {
  PKGCONFIG += QtGStreamer-0.10 QtGStreamerUi-0.10
}
contains(QT_VERSION, ^5\\..*) {
  PKGCONFIG += Qt5GStreamer-0.10 Qt5GStreamerUi-0.10
  QT += widgets
}

# Recommended if you are using g++ 4.5 or later. Must be removed for other compilers.
#QMAKE_CXXFLAGS += -std=c++0x

# Recommended, to avoid possible issues with the "emit" keyword
# You can otherwise also define QT_NO_EMIT, but notice that this is not a documented Qt macro.
DEFINES += QT_NO_KEYWORDS

# link against QtDeclarative and QtOpenGL
QT += declarative opengl

# Input
HEADERS += player.h
SOURCES += main.cpp player.cpp
RESOURCES += qmlplayer.qrc


.bashrc
Code:

export PATH=/opt/Qt5.1.0/5.1.0/gcc_64/bin/:$PATH
export PKG_CONFIG_PATH=~/Desktop/newGSTr/qt-gstreamer-0.10.3/lib/x86_64-linux-gnu/pkgconfig/:$PKG_CONFIG_PATH

Code:

:~/Desktop/newGSTr/qt-gstreamer-0.10.3/lib/x86_64-linux-gnu/pkgconfig$ ls

Qt5GLib-2.0.pc        Qt5GStreamerUi-0.10.pc
Qt5GStreamer-0.10.pc  Qt5GStreamerUtils-0.10.pc

Code:

~$ locate Qt5GStreamer-0.10

.../Desktop/backupqt-gst/lib/x86_64-linux-gnu/libQt5GStreamer-0.10.so
.../Desktop/backupqt-gst/lib/x86_64-linux-gnu/libQt5GStreamer-0.10.so.0
.../Desktop/backupqt-gst/src/Qt5GStreamer-0.10.pc
.../Desktop/qt-gstreamer-0.10.3/lib/x86_64-linux-gnu/libQt5GStreamer-0.10.so
.../Desktop/qt-gstreamer-0.10.3/lib/x86_64-linux-gnu/libQt5GStreamer-0.10.so.0
.../Desktop/qt-gstreamer-0.10.3/lib/x86_64-linux-gnu/libQt5GStreamer-0.10.so.0.10.3
.../Desktop/qt-gstreamer-0.10.3/lib/x86_64-linux-gnu/pkgconfig/Qt5GStreamer-0.10.pc
.../Desktop/qt-gstreamer-0.10.3/src/Qt5GStreamer-0.10.pc
.../Desktop/qt-gstreamer-0.10.3/src/QGst/libQt5GStreamer-0.10.so
.../Desktop/qt-gstreamer-0.10.3/src/QGst/libQt5GStreamer-0.10.so.0
.../Desktop/qt-gstreamer-0.10.3/src/QGst/libQt5GStreamer-0.10.so.0.10.3
/usr/lib64/libQt5GStreamer-0.10.so
/usr/lib64/pkgconfig/Qt5GStreamer-0.10.pc

Code:

sudo apt-get install libgstreamer0.10-dev
Reading package lists... Done
Building dependency tree     
Reading state information... Done
libgstreamer0.10-dev is already the newest version.
The following packages were automatically installed and are no longer required:
  language-pack-kde-en kde-l10n-engb language-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.


What's the point that I am missing? Yes, I ran ldconfig too from root.

knudfl 01-22-2014 05:43 AM

Quote:

error: Package Qt5GStreamer-0.10 not found
Means : No "Package config file" by name "Qt5GStreamer-0.10.pc" was found.

Solution, something like this :

export PKG_CONFIG_LIBDIR=/home/anisha/Desktop/newGSTr/qt-gstreamer-0.10.3/lib/x86_64-linux-gnu/pkgconfig

The full path should be preferred.
No guaranties that " ~/ " will work.

-

Aquarius_Girl 01-22-2014 06:21 AM

Thankful to you.


All times are GMT -5. The time now is 03:06 PM.