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.
wrote on 17 Jul 2024, 14:09 last edited by@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
-
wrote on 17 Jul 2024, 15:54 last edited by
If it does not exist, you are unable to use it. I can check it out later for you in my home Windows.
-
If it does not exist, you are unable to use it. I can check it out later for you in my home Windows.
wrote on 17 Jul 2024, 15:55 last edited by@JoeCFD thank you so much, I will wait and research new solutions
-
@JoeCFD thank you so much, I will wait and research new solutions
wrote on 17 Jul 2024, 15:56 last edited by JoeCFD@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.
wrote on 18 Jul 2024, 06:25 last edited by Joe von HabsburgI 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
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-server
and 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
wrote on 18 Jul 2024, 10:46 last edited by 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 -
@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_PATHwrote on 22 Jul 2024, 06:07 last edited by@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.
-
wrote on 22 Jul 2024, 08:28 last edited by
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 weekwrote on 22 Jul 2024, 12:33 last edited by Joe von HabsburgCould 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 ?
wrote on 22 Jul 2024, 21:07 last edited by@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.
24/24