Good day fellow programmers,
I am trying to include Gstreamer into my Qt application.
In order to do so I need to include "gst.h".
So far I've tried to simply add it to the main.cpp file.
#include <gst/gst.h>
#include <gst/gst.h>
To copy to clipboard, switch view to plain text mode
I've also tried the direct file path:
#include "/usr/include/gstreamer-1.0/gst/gst.h"
#include "/usr/include/gstreamer-1.0/gst/gst.h"
To copy to clipboard, switch view to plain text mode
I've also tried specifying an INCLUDEPATH in the .pro file:
INCLUDEPATH += /usr/include/gstreamer-1.0/gst
INCLUDEPATH += /usr/include/gstreamer-1.0/gst
To copy to clipboard, switch view to plain text mode
As this didn't work I tried to be a bit more specific:
unix:INCLUDEPATH += /usr/include/gstreamer-1.0/gst
unix:INCLUDEPATH += /usr/include/gstreamer-1.0/gst
To copy to clipboard, switch view to plain text mode
During these tries I've been using the command in main.cpp
#include <gst/gst.h>
#include <gst/gst.h>
To copy to clipboard, switch view to plain text mode
but received the error all the time
/home/finn/GST_Test2/main.cpp:2: error: gst/gst.h: No such file or directory
/home/finn/GST_Test2/main.cpp:2: error: gst/gst.h: No such file or directory
To copy to clipboard, switch view to plain text mode
.
Besides that I also tried using PKGCONFIG:
unix {
CONFIG += link_pkgconfig
PKGCONFIG += gstreamer-1.0
}
unix {
CONFIG += link_pkgconfig
PKGCONFIG += gstreamer-1.0
}
To copy to clipboard, switch view to plain text mode
According to this commands result gstreamer-1.0 exists on the target system.
pkg-config --list-all | grep gstreamer
pkg-config --list-all | grep gstreamer
To copy to clipboard, switch view to plain text mode
However I always receive the error
:-1: error: Package gstreamer-1.0 not found
:-1: error: Package gstreamer-1.0 not found
To copy to clipboard, switch view to plain text mode
The target system is a Raspberry Pi running Linux Debian. I've been able to successfully build applications on that system which is why I would guess that the target system should not be the problem.
The file gst.h does exist on the target system in the directory /usr/include/gstreamer-1.0/gst
Does anyone has an idea how to properly include gst.h into my Qt project?
Thanks a lot!
Best regards,
Plox
Bookmarks