Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. :-1: error: gstreamer-1.0 development package not found
Forum Updated to NodeBB v4.3 + New Features

:-1: error: gstreamer-1.0 development package not found

Scheduled Pinned Locked Moved Solved General and Desktop
13 Posts 4 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vijaykarthikeyan
    wrote on last edited by
    #1

    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

    jsulmJ 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #12

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      V 1 Reply Last reply
      2
      • V Vijaykarthikeyan

        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

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @Vijaykarthikeyan said in :-1: error: gstreamer-1.0 development package not found:

        when i included in .pro file

        How exactly?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        V 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Vijaykarthikeyan said in :-1: error: gstreamer-1.0 development package not found:

          when i included in .pro file

          How exactly?

          V Offline
          V Offline
          Vijaykarthikeyan
          wrote on last edited by
          #3

          @jsulm

          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.

          SGaistS 1 Reply Last reply
          0
          • V Vijaykarthikeyan

            @jsulm

            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.

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            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 ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            V 1 Reply Last reply
            1
            • SGaistS SGaist

              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 ?

              V Offline
              V Offline
              Vijaykarthikeyan
              wrote on last edited by
              #5

              @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.

              SGaistS 1 Reply Last reply
              0
              • V Vijaykarthikeyan

                @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.

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #6

                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.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                JoeCFDJ V 2 Replies Last reply
                0
                • SGaistS SGaist

                  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.

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote on last edited by
                  #7

                  @SGaist he can find the detailed info here.
                  https://gstreamer.freedesktop.org/documentation/installing/on-windows.html?gi-language=c

                  I guess using msvc or qt creator does not matter.

                  SGaistS 1 Reply Last reply
                  1
                  • JoeCFDJ JoeCFD

                    @SGaist he can find the detailed info here.
                    https://gstreamer.freedesktop.org/documentation/installing/on-windows.html?gi-language=c

                    I guess using msvc or qt creator does not matter.

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #8

                    @JoeCFD in the end it does not matter indeed. Using Qt Creator's facility to add a new library is just the quick and easy solution when you're not used to do that directly in the .pro file.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • SGaistS SGaist

                      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.

                      V Offline
                      V Offline
                      Vijaykarthikeyan
                      wrote on last edited by
                      #9

                      @SGaist So i need to include the path which containing .pc files..isn't it?

                      SGaistS 1 Reply Last reply
                      0
                      • V Vijaykarthikeyan

                        @SGaist So i need to include the path which containing .pc files..isn't it?

                        SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #10

                        @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.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        V 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          @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.

                          V Offline
                          V Offline
                          Vijaykarthikeyan
                          wrote on last edited by Vijaykarthikeyan
                          #11

                          @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..

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #12

                            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.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            V 1 Reply Last reply
                            2
                            • SGaistS SGaist

                              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.

                              V Offline
                              V Offline
                              Vijaykarthikeyan
                              wrote on last edited by
                              #13

                              @SGaist thank you..

                              1 Reply Last reply
                              0
                              • V Vijaykarthikeyan has marked this topic as solved on

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved