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. GStreamer with QT6
Forum Updated to NodeBB v4.3 + New Features

GStreamer with QT6

Scheduled Pinned Locked Moved Unsolved General and Desktop
gstreamergstreamer1.0gst
33 Posts 6 Posters 8.7k 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.
  • JoeCFDJ JoeCFD

    @Joe-von-Habsburg I edited my post. You need to figure out how to set pkg path on Windows.

    On linux:
    export PKG_CONFIG_PATH=/opt/thirdParties/gstreamer/lib/pkgconfig:$PKG_CONFIG_PATH

    it is easier to use pkg config to add packages into a project because all dependencies are taken care of. But you can add all libs manually as well.

    J Offline
    J Offline
    Joe von Habsburg
    wrote on last edited by Joe von Habsburg
    #19

    I download files with msys :

    pacman -S mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-plugins-base \
          mingw-w64-x86_64-gst-plugins-good mingw-w64-x86_64-gst-plugins-bad \
          mingw-w64-x86_64-gst-plugins-ugly mingw-w64-x86_64-gst-libav \
          mingw-w64-x86_64-gst-rtsp-server
    

    and I copy the pkgconfig to lib like that

    image.png

    and gsreamer-1.0.pc and gsteamer-video-1.0.pc exist

    image.png

    cmake like that :

    PKG_CONFIG_PATH=C:/gstreamer/1.0/msvc_x86_64/lib/pkgconfig:$PKG_CONFIG_PATH
    find_package( PkgConfig REQUIRED )
    pkg_search_module( GSTREAMER REQUIRED IMPORTED_TARGET gstreamer-1.0)
    pkg_search_module( GSTREAMER-VIDEO REQUIRED IMPORTED_TARGET gstreamer-video-1.0)
    

    but its not work

    aee5e95a-84a0-49ce-9c13-fc96965b9d94-image.png

    JoeCFDJ 1 Reply Last reply
    0
    • J Joe von Habsburg

      I download files with msys :

      pacman -S mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-plugins-base \
            mingw-w64-x86_64-gst-plugins-good mingw-w64-x86_64-gst-plugins-bad \
            mingw-w64-x86_64-gst-plugins-ugly mingw-w64-x86_64-gst-libav \
            mingw-w64-x86_64-gst-rtsp-server
      

      and I copy the pkgconfig to lib like that

      image.png

      and gsreamer-1.0.pc and gsteamer-video-1.0.pc exist

      image.png

      cmake like that :

      PKG_CONFIG_PATH=C:/gstreamer/1.0/msvc_x86_64/lib/pkgconfig:$PKG_CONFIG_PATH
      find_package( PkgConfig REQUIRED )
      pkg_search_module( GSTREAMER REQUIRED IMPORTED_TARGET gstreamer-1.0)
      pkg_search_module( GSTREAMER-VIDEO REQUIRED IMPORTED_TARGET gstreamer-video-1.0)
      

      but its not work

      aee5e95a-84a0-49ce-9c13-fc96965b9d94-image.png

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

      @Joe-von-Habsburg said in GStreamer with QT6:

      PKG_CONFIG_PATH=C:/gstreamer/1.0/msvc_x86_64/lib/pkgconfig:$PKG_CONFIG_PATH

      ":" is missing in the picture.
      PKG_CONFIG_PATH=C:/gstreamer/1.0/msvc_x86_64/lib/pkgconfig:$PKG_CONFIG_PATH

      J 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @Joe-von-Habsburg said in GStreamer with QT6:

        PKG_CONFIG_PATH=C:/gstreamer/1.0/msvc_x86_64/lib/pkgconfig:$PKG_CONFIG_PATH

        ":" is missing in the picture.
        PKG_CONFIG_PATH=C:/gstreamer/1.0/msvc_x86_64/lib/pkgconfig:$PKG_CONFIG_PATH

        J Offline
        J Offline
        Joe von Habsburg
        wrote on last edited by
        #21

        @JoeCFD said in GStreamer with QT6:

        ":" is missing in the picture.

        I forgot about it and added it. the code shows it as added. but nothing happened. i keep getting the error. i'm sure the solution is very simple in linux. i wish it could be the same in windows.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          anonymus982493
          wrote on last edited by
          #22

          hey, the problem is that you need to write it like this:
          set(PKG_CONFIG_PATH=C:/gstreamer/1.0/msvc_x86_64/lib/pkgconfig:$PKG_CONFIG_PATH)
          this way it should work, I had the same problem last week

          J 1 Reply Last reply
          0
          • A anonymus982493

            hey, the problem is that you need to write it like this:
            set(PKG_CONFIG_PATH=C:/gstreamer/1.0/msvc_x86_64/lib/pkgconfig:$PKG_CONFIG_PATH)
            this way it should work, I had the same problem last week

            J Offline
            J Offline
            Joe von Habsburg
            wrote on last edited by Joe von Habsburg
            #23

            @anonymus982493

            Could not work on me :/

            Where do you install gstreamer and where do you install pkgconfig folder in lib ?

            f621dadd-0954-4365-a16b-b2a86b5e7c91-image.png

            6e3a1454-abd4-4176-89bd-b2796a02469d-image.png

            JoeCFDJ 1 Reply Last reply
            0
            • J Joe von Habsburg

              @anonymus982493

              Could not work on me :/

              Where do you install gstreamer and where do you install pkgconfig folder in lib ?

              f621dadd-0954-4365-a16b-b2a86b5e7c91-image.png

              6e3a1454-abd4-4176-89bd-b2796a02469d-image.png

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

              @Joe-von-Habsburg
              https://stackoverflow.com/questions/10810279/finding-libraries-using-pkg-config-in-windows

              open one of the pc files and check if the prefix is correct.

              The installed pkg config path is basically fixed under lib. Do not try to change it.

              1 Reply Last reply
              0
              • B Offline
                B Offline
                Bala_suresh
                wrote on last edited by
                #25

                Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

                Reason given by package: The command
                  "C:/Program Files/gstreamer/1.0/msvc_x86_64/bin/pkg-config.exe" --dont-define-prefix --define-variable=prefix=C:/Program Files/gstreamer/1.0/msvc_x86_64 --define-variable=libdir=C:/Program Files/gstreamer/1.0/msvc_x86_64/lib --define-variable=includedir=C:/Program Files/gstreamer/1.0/msvc_x86_64/include --version
                failed with output:
                Reason given by package: The command
                 "C:/Program Files/gstreamer/1.0/msvc_x86_64/bin/pkg-config.exe" --dont-define-prefix --define-variable=prefix=C:/Program Files/gstreamer/1.0/msvc_x86_64 --define-variable=libdir=C:/Program Files/gstreamer/1.0/msvc_x86_64/lib --define-variable=includedir=C:/Program Files/gstreamer/1.0/msvc_x86_64/include --version
                failed with output: 
                

                Im facing error while configure that pkgconfig is not there in gstreamer can you share the which gstreamer i need to use to get the pkgconfig for windows

                Christian EhrlicherC 1 Reply Last reply
                0
                • Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #26

                  Install your stuff in paths without spaces

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    Bala_suresh
                    wrote on last edited by
                    #27

                    im getting error from gstreamer pkgcofig not in qt

                    1 Reply Last reply
                    0
                    • Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #28

                      But there are still spaces in there...

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      B 1 Reply Last reply
                      0
                      • Christian EhrlicherC Christian Ehrlicher

                        But there are still spaces in there...

                        B Offline
                        B Offline
                        Bala_suresh
                        wrote on last edited by
                        #29

                        @Christian-Ehrlicher your talking about environment paths right

                        1 Reply Last reply
                        0
                        • B Bala_suresh

                          Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

                          Reason given by package: The command
                            "C:/Program Files/gstreamer/1.0/msvc_x86_64/bin/pkg-config.exe" --dont-define-prefix --define-variable=prefix=C:/Program Files/gstreamer/1.0/msvc_x86_64 --define-variable=libdir=C:/Program Files/gstreamer/1.0/msvc_x86_64/lib --define-variable=includedir=C:/Program Files/gstreamer/1.0/msvc_x86_64/include --version
                          failed with output:
                          Reason given by package: The command
                           "C:/Program Files/gstreamer/1.0/msvc_x86_64/bin/pkg-config.exe" --dont-define-prefix --define-variable=prefix=C:/Program Files/gstreamer/1.0/msvc_x86_64 --define-variable=libdir=C:/Program Files/gstreamer/1.0/msvc_x86_64/lib --define-variable=includedir=C:/Program Files/gstreamer/1.0/msvc_x86_64/include --version
                          failed with output: 
                          

                          Im facing error while configure that pkgconfig is not there in gstreamer can you share the which gstreamer i need to use to get the pkgconfig for windows

                          Christian EhrlicherC Offline
                          Christian EhrlicherC Offline
                          Christian Ehrlicher
                          Lifetime Qt Champion
                          wrote on last edited by
                          #30

                          @Bala_suresh said in GStreamer with QT6:

                          C:/Program Files/gstreamer/1.0/msvc_x86_64/include

                          isn't that obvious enough?

                          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                          Visit the Qt Academy at https://academy.qt.io/catalog

                          B 1 Reply Last reply
                          0
                          • Christian EhrlicherC Christian Ehrlicher

                            @Bala_suresh said in GStreamer with QT6:

                            C:/Program Files/gstreamer/1.0/msvc_x86_64/include

                            isn't that obvious enough?

                            B Offline
                            B Offline
                            Bala_suresh
                            wrote on last edited by
                            #31

                            @Christian-Ehrlicher Screenshot 2025-09-13 144321.png this is my path

                            1 Reply Last reply
                            0
                            • Christian EhrlicherC Offline
                              Christian EhrlicherC Offline
                              Christian Ehrlicher
                              Lifetime Qt Champion
                              wrote on last edited by
                              #32

                              I'm giving up...
                              Run the pkg-config command on the command line and you will see I would guess.

                              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                              Visit the Qt Academy at https://academy.qt.io/catalog

                              1 Reply Last reply
                              0
                              • B Offline
                                B Offline
                                Bala_suresh
                                wrote on last edited by
                                #33

                                can you share the gstreamer link or pkgconfig exe

                                1 Reply Last reply
                                0

                                • Login

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