:-1: error: gstreamer-1.0 development package not found
-
I'm working on Qt 5.15.2 on windows machine .My compiler is msvc 2019 64 bit compiler.I have downloaded both the run and developer installer from Gstreamer offical website,run the msi and installed it..After that,when i included in .pro file and build it..it shows like this::-1: error: gstreamer-1.0 development package not found
-
Let's take step back, previously, you wrote that you did not have pkg-config installed, did that change ? If no, then the
.pc
file won't be useful to qmake. However, by reading it's content, you will get what you need to add to the INCLUDEPATH and LIBS qmake variable.To the former you need to append the path where the GStreamer headers can be found and for the latter, the path to where the libraries can be found and which to link to.
-
@Vijaykarthikeyan said in :-1: error: gstreamer-1.0 development package not found:
when i included in .pro file
How exactly?
-
QT += core gui quick QT += multimedia greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++17 CONFIG += link_pkgconfig PKGCONFIG += gstreamer-1.0 gstreamer-video-1.0 # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ main.cpp \ mainwindow.cpp HEADERS += \ mainwindow.h \ gst/gst.h \ gst/video/video.h # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target RESOURCES += \ qml.qrc
When i run both the runner and developer msi's both installed in same folder called gstreamer.But,I confirmed that both msi's are installed.
-
Hi,
Might be a silly question, but do you have pkg-config for Windows ?
And if so, did you point it to the folder where the Gstreamer*.pc
files are located ? -
The quick and easy way is to use Qt Creator. Not that the paths won't be portable but it should help you get started.
-
@Vijaykarthikeyan it depends whether you are going to use pkg-config or not. From your answer, it seems not. In that case you have to add the information about where to find the includes and libraries for GStreamer as well as link to the libraries required to your project file.
-
@SGaist I have already found the .pc files in this directory:
C:\gstreamer\1.0\msvc_x86_64\lib\pkgconfig
is it enough to included in the .pro file. or any other additional paths to be included in.pro.
I'm using windows 10 and msvc 2019 64 bit compiler..I have found .a, .dll, .lib libraries in the gstreamer library..which one i have to include..
-
Let's take step back, previously, you wrote that you did not have pkg-config installed, did that change ? If no, then the
.pc
file won't be useful to qmake. However, by reading it's content, you will get what you need to add to the INCLUDEPATH and LIBS qmake variable.To the former you need to append the path where the GStreamer headers can be found and for the latter, the path to where the libraries can be found and which to link to.
-