:-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.
-
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
@Vijaykarthikeyan said in :-1: error: gstreamer-1.0 development package not found:
when i included in .pro file
How exactly?
-
@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.
-
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 ? -
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 ?@SGaist No, sir.. Actually I tried to find out the manual to bind it with Qt.. But, unfortunately.. couldn't understand how to bind the path with Qt.. Can someone explain what are the steps to follow to link it with Qt.
-
@SGaist No, sir.. Actually I tried to find out the manual to bind it with Qt.. But, unfortunately.. couldn't understand how to bind the path with Qt.. Can someone explain what are the steps to follow to link it with Qt.
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.
-
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.
-
@SGaist he can find the detailed info here.
https://gstreamer.freedesktop.org/documentation/installing/on-windows.html?gi-language=cI guess using msvc or qt creator does not matter.
-
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.
@SGaist So i need to include the path which containing .pc files..isn't it?
-
@SGaist So i need to include the path which containing .pc files..isn't it?
@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.
-
@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.
-
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.
@SGaist thank you..
-