GStreamer with QT6
- 
add C:/gstreamer/1.0/msvc_x86_64/bin to PATH on Windows. This enables you to run pkg-config.exe and use pkg-config. Nice that gstreamer includes it for you. 
 go to C:/gstreamer/1.0/msvc_x86_64/lib to find dir pkgconfig. Add C:/gstreamer/1.0/msvc_x86_64/lib/pkgconfig to PKG_CONFIG_PATHDo not forget to add gstreamer plugin path as well in your env. Otherwise, you can not run your gstreamer app. @JoeCFD said in GStreamer with QT6: C:/gstreamer/1.0/msvc_x86_64/bin to PATH on Window it already exists  @JoeCFD said in GStreamer with QT6: C:/gstreamer/1.0/msvc_x86_64/lib to find dir pkgconfig there is no pkg lib     @JoeCFD said in GStreamer with QT6: C:/gstreamer/1.0/msvc_x86_64/lib/pkgconfig its not here. I have only pkg-config exe in C:/gstreamer/1.0/msvc_x86_64/bin/pkg-config.exe 
- 
If it does not exist, you are unable to use it. I can check it out later for you in my home Windows. @JoeCFD thank you so much, I will wait and research new solutions 
- 
@JoeCFD thank you so much, I will wait and research new solutions @Joe-von-Habsburg 
 https://stackoverflow.com/questions/63026758/cannot-compile-gstreamer-on-windows-because-it-is-missing-glib-2-0it can be there. Try to reinstall it in different ways. 
- 
@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_PATHit 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. 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-serverand I copy the pkgconfig to lib like that  and gsreamer-1.0.pc and gsteamer-video-1.0.pc exist  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  
- 
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-serverand I copy the pkgconfig to lib like that  and gsreamer-1.0.pc and gsteamer-video-1.0.pc exist  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  @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
- 
@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@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. 
- 
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
- 
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 weekCould not work on me :/ Where do you install gstreamer and where do you install pkgconfig folder in lib ?   
- 
Could not work on me :/ Where do you install gstreamer and where do you install pkgconfig folder in lib ?   @Joe-von-Habsburg 
 https://stackoverflow.com/questions/10810279/finding-libraries-using-pkg-config-in-windowsopen 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. 
- 
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 
- 
Install your stuff in paths without spaces 
- 
im getting error from gstreamer pkgcofig not in qt 
- 
But there are still spaces in there... 
- 
But there are still spaces in there... @Christian-Ehrlicher your talking about environment paths right 
- 
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 @Bala_suresh said in GStreamer with QT6: C:/Program Files/gstreamer/1.0/msvc_x86_64/include isn't that obvious enough? 
- 
@Bala_suresh said in GStreamer with QT6: C:/Program Files/gstreamer/1.0/msvc_x86_64/include isn't that obvious enough? @Christian-Ehrlicher  this is my path this is my path
- 
I'm giving up... 
 Run the pkg-config command on the command line and you will see I would guess.
- 
can you share the gstreamer link or pkgconfig exe 
 
