GStreamer with QT6
-
@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
-
@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.
-
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
-
@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 -
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.